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

Japanese fonts are not displayed correctly when Skia is enabled. #313

Open
freeonterminate opened this issue Apr 14, 2024 · 0 comments
Open

Comments

@freeonterminate
Copy link

freeonterminate commented Apr 14, 2024

When Skia is enabled, Chinese fonts are used to render Japanese characters.

Please see the attached file.
I have only tested this with FireMonkey, but it likely presents the same issue with VCL as well (it's just not publicly known because it's on Windows).
I have confirmed the issue on Android only, but it is likely affecting other platforms as well.

This issue occurs because the ISkTextStyle passed when creating a Paragraph does not have a Locale set.
As a solution, it seems better to create a property called Locale in TSkTextSetting.
(This is because the device's Locale and the user's or intended Locale do not necessarily match.)

SkiaDis

SkiaEna

@freeonterminate freeonterminate changed the title When Skia is enabled, the fonts do not display correctly. Japanese fonts are not displayed correctly when Skia is enabled. Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant