相关文章推荐
气宇轩昂的豆腐  ·  解决:ImportError: ...·  3 年前    · 
俊逸的米饭  ·  FFmpeg 不完全实战 - 知乎·  3 年前    · 
酷酷的水煮鱼  ·  Flask ORM ...·  3 年前    · 

Primary font ignores the fontconfig's charset property. #30

@huyuehui

Description

I reported an issue several days ago. Maybe at that time I didn't make myself clear. I guess that the following source blocks cause this issue.

In src/ft/mod.rs :
In my case, the function load_face_with_glyph(...) has never been called. Because in face_for_glyph(...), it always returns early inside the 'if let' block.

In the get_face(...) function, the 'coverage' of the 'Fallbacklist' struct doesn't include the charset of the primary font. So setting the charset property of the first matched font (the primary font) in fonts.conf doesn't work if no fallback is happened.