Bug 24960

Summary: enabling embedded bitmaps should not require antialias=false
Product: fontconfig Reporter: Qianqian Fang <fangqq>
Component: libraryAssignee: fontconfig-bugs
Status: RESOLVED NOTOURBUG QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira
Version: 2_1   
Hardware: Other   
OS: All   
URL: https://bugs.launchpad.net/ubuntu/+source/ttf-wqy-zenhei/+bug/475240
Whiteboard:
i915 platform: i915 features:

Description Qianqian Fang 2009-11-06 10:32:24 UTC
When enabling the embedded bitmaps in a truetype font using fontconfig, one has to set both "embeddedbitmap=true" and "antialias=false". The first one does not work without the second one. 

However there are cases where the font has only partial glyphs have bitmaps, in these cases, if one choose to use those embedded bitmaps, those glyphs that do not have embedded bitmaps will be shown without AA, which is ugly in many cases.

You can find an example of this in a recent Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/ttf-wqy-zenhei/+bug/475240

IMO, embeddedbitmap should work without changing antialias. The best scenario should be setting embeddedbitmap=true will give the embedded bitmaps a higher priority in a glyph-by-glyph basis: if they present, then use them; otherwise, fallback to antialias/hintstyle/autohint settings.
Comment 1 Akira TAGOH 2012-04-09 00:32:39 UTC
Since fontconfig isn't a rendering library, here is the wrong place to report such things. FWIW looking at the latest cairo code, the embeddedbitmap seems applied only when the antialias is enabled: http://cgit.freedesktop.org/cairo/tree/src/cairo-ft-font.c#n1605

I don't know if it still persist but you better try it again and report it to the rendering library you use.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.