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

Font weight combination in font list #32

Open
guoyunhe opened this issue Dec 27, 2016 · 0 comments
Open

Font weight combination in font list #32

guoyunhe opened this issue Dec 27, 2016 · 0 comments
Assignees
Labels

Comments

@guoyunhe
Copy link
Owner

Usually fonts are packaged like "Droid Sans", which contains all thin, bold, italic font styles.

However, some fonts like "Noto Sans CJK SC" will present like:

spectacle v20432

Seven font weights are listed as seven font names. If you choose "Noto Sans CJK SC Regular", the effect of fontconfig is not the same as "Noto Sans CJK SC". Some application will use wrong font weight in result.

Possible solutions:

  1. Just cut off font weight suffix: Thin, Light, Medium, Regular, Bold, Black, etc. The disadvantage is that nobody knows if here wiil be other rare suffix like "Very Very Bold", "A Little Thin".
  2. Use other API to get font list, instead of Java SE system class. However, availavle APIs for Java is not easy to find.
@guoyunhe guoyunhe added the bug label Dec 27, 2016
@guoyunhe guoyunhe self-assigned this Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant