freetype-envision icon indicating copy to clipboard operation
freetype-envision copied to clipboard

CJK characters rendering issue with sans-serif fonts

Open maximilionus opened this issue 3 months ago • 1 comments

About

As stated in the issue title, rendering of some CJK (Chinese/Japanese/Korean) characters with sizes within the stem-darkening range will be partially corrupted with Sans-serif fonts. It is currently unknown what is causing this problem.

Suggestion

This issue can probably be solved by disabling the hinting for all CJK fonts with a special fontconfig entry, but this solution seems a bit hard-coded and would completely disable stem darkening for these fonts. There has to be a better way.

Screenshots

  • Sans-serif issues: Screenshot from 2024-03-28 17-35-34

    Replicate:

    pango-view -t 你好 --font 'sans'
    
  • Serif: Screenshot from 2024-03-28 17-40-46

    Replicate:

    pango-view -t 你好 --font 'serif'
    

maximilionus avatar Mar 22 '24 13:03 maximilionus