Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts with Chinese characters? #20

Closed
charlesroddie opened this issue Sep 15, 2018 · 8 comments
Closed

Fonts with Chinese characters? #20

charlesroddie opened this issue Sep 15, 2018 · 8 comments
Labels
Resolution/Answered The provided question has been answered. Type/Question

Comments

@charlesroddie
Copy link
Collaborator

How hard would it be to allow Chinese text in text mode?
Would this be done by allowing the usage of an arbitrary font?
Would there be any additional work needed?

@charlesroddie charlesroddie changed the title Chinese fonts for text Fonts with Chinese characters? Sep 15, 2018
@Happypig375
Copy link
Collaborator

Happypig375 commented Sep 16, 2018

Loading a font that supports Chinese glyphs into CSharpMath.Settings.GlobalTypefaces or (Some TextPainter/MathPainter).LocalTypefaces via new Typography.OpenFont.OpenFontReader().Read(stream) should work.

@Happypig375
Copy link
Collaborator

By the way, as shown in the bottom of the README, I plan to create a CSharpMath.Fonts package that would be a collection of fonts to support all Unicode codepoints in 0.2.0.

@Happypig375
Copy link
Collaborator

Did that method work?

@charlesroddie
Copy link
Collaborator Author

I can't read it but it looks to me like it works:
mh7optr

@Happypig375
Copy link
Collaborator

The text definitely makes sense. That means it is definitely working! 👏

@Happypig375 Happypig375 added the Resolution/Answered The provided question has been answered. label Sep 17, 2018
@Happypig375
Copy link
Collaborator

By the way, the number should use a dot (.) as the decimal separator. Maybe it should depend on the Chinese CultureInfo specifically instead of the default CurrentCulture of ToString?

@charlesroddie
Copy link
Collaborator Author

I think that's because it was done on @FoggyFinder 's system using Russian settings.

@Happypig375
Copy link
Collaborator

That makes sense. Guess it isn't all that important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution/Answered The provided question has been answered. Type/Question
Projects
None yet
Development

No branches or pull requests

2 participants