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

Fontfamily cannot show some characters as browser effect #7429

Closed
nissansz opened this issue Sep 30, 2023 · 6 comments
Closed

Fontfamily cannot show some characters as browser effect #7429

nissansz opened this issue Sep 30, 2023 · 6 comments

Comments

@nissansz
Copy link

J007-日文毛笔.zip
There are fonts, which cannot display some characters even with font family.
image

Test string: をも資资儲储議议歷历權权
Upper is pillow draw
lower is edge browse render

Any method to replace font for unshown characters?

@radarhere
Copy link
Member

For context, when you talk about 'font family', you are referring to the functionality of #6926, allowing missing characters in one font to be replaced by fonts in backup fonts.

It would seem that the darker characters in your first image are from the font you've attached, and the thinner characters are from a font you haven't provided.

When you say 'replace font for unshown characters', I don't know what you mean. If you would like the correct characters to appear, but they aren't, then the simplest explanation is the fonts you are using don't have the characters you're requesting, and you need to find another font. Given that you already believe that the attached font doesn't have all the characters you're after, do you have any reason to believe this isn't the case for these additional characters?

@nissansz
Copy link
Author

Do you mean if a character is not in font char list, it will not be shown by itself or other backup font in same font family?
If so, any method to judge which character is missing when drawing text, so as to define backup font as the font for display the missing character?

@radarhere
Copy link
Member

I think you're fundamentally asking about the functionality of #6926, and as I have said before, you use it at your own risk. I don't think it is reasonable to expect it to always work, given that it hasn't been merged yet. If you have feedback on the PR, you're free to leave comments there.

@nissansz
Copy link
Author

Yes. If I want to use below method to draw text for each char. is it slower than fontfamily?

Iterate all chacters in a string,
judge each character to see whether it is in the char list of a desire font,
if not in the list, specify the backup font to draw the character, then continue

@radarhere
Copy link
Member

If you have questions about #6926, please ask them there. I don't think it is reasonable for us to support functionality that hasn't been finished yet.

@nissansz
Copy link
Author

ok

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

2 participants