-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
[linux] Use fontconfig to locate fonts instead of hardcoding the paths #136
Comments
Font paths are not guaranteed to be the same across different linux systems, this commit introduces Fontconfig support to locate the font files based on their font names. see also: lc-soft#136
I have implemented this functionality in #137 |
Font paths are not guaranteed to be the same across different linux systems, this commit introduces Fontconfig support to locate the font files based on their font names. see also: lc-soft#136
Font paths are not guaranteed to be the same across different linux systems, this commit introduces Fontconfig support to locate the font files based on their font names. see also: lc-soft#136
Font paths are not guaranteed to be the same across different linux systems, this commit introduces Fontconfig support to locate the font files based on their font names. see also: lc-soft#136
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
^ i think this bot is a really bad idea. this will end up closing a lot of feature-request issues or old-but-unfixed bug reports. |
Sorry, I'm test this robot work. I will change configuration of this robot in the later. |
Font paths are not guaranteed to be the same across different linux systems, this commit introduces Fontconfig support to locate the font files based on their font names. see also: #136
Currently, LCUI hard-codes the font paths, like here:
LCUI/src/font/fontlibrary.c
Line 845 in 402bc03
These are not guaranteed to be in the same location across different linux systems.
LCUI/src/font/fontlibrary.c
Line 848 in 402bc03
/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc
on my system.I suggest using Fontconfig, which would allow to match fonts with their names instead of using the absolute paths.
I am preparing a pull request that updates fontlibrary.c to use Fontconfig for you to review.
The text was updated successfully, but these errors were encountered: