Red Hat Bugzilla – Bug 167383
Embedded fonts are not used by default when AA is turned on
Last modified: 2007-11-30 17:11:12 EST
Description of problem:
In the current version (rawhide) of fontconfig and libraries combinations, the
application will not use emdedded fonts in TTF anymore even if one is available.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. LANG=zh_TW.UTF-8 gedit
2. Check the font glyphs
2. disable AA
Fonts are not embedded bitmap in the default font size
Fonts should be embedded bitmap in the default font size
FC4 is fine.
We have "rh_prefer_bitmaps" option in /etc/fonts/conf.d/50-no-hint-fonts.conf to
disable embedded bitmap for particular font. (Japanese is currently being
disabled on bitmap)
Please See bug 164374
Created attachment 121966 [details]
sample fonts.conf to disable the antialias for Japanese say
Attached file is to disable the antialias for Japanese. it works for me after
put it as .fonts.conf under $HOME. for other languages which prefer the bitmap
font rather than the antialiased outline font, you need to modify the pixelsize
to something what these fonts actually supports. FYI.
In FC4, we can enable antialiasing outline font, but when the size of the glyphs
has the embedded bitmap font, we then use the bitmap glyph instead of the
outline glyph. This should be the behaviour.
Created attachment 122438 [details]
Patch to change rh_prefer_bitmaps to embeddedbitmap
This patch changes all instances of rh_prefer_bitmaps to embeddedbitmap. It
also disables hinting and enables the embedded bitmap option for the 2 new
Chinese fonts. As mentioned in bug
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164374 The embedded bitmap
directive AFAIK won't work until cairo is modified to support it. There patches
around such as this one
http://lists.freedesktop.org/archives/cairo/2005-September/005404.html to do
this but I'm yet to test them(soon hopefully).
Added dependance on bug #165939 because the fontconfig configuration files
currently alias AR PL ZenKai Uni as the default sans-serif font and it should be
AR PL ShanHeiSun Uni. It effects this bug because only AR PL ShanHeiSun Uni has
This is a major feature for Chinese for FC5 that has been tested for a while. It
would be helpful to include now before FC5 releases.
Carl, ping here. There's a patch and it seems to be important for Chinese.
Please comment on what we should do. Thanks.
Both of the patches are obselete, the patches in bug 165939 included the fixes
for the fontconfig configuration side of the problem. This bug is still
dependant on getting the fontconfig "embeddedbitmap" option supported by cairo.
There is a patch for cairo that I found on the cairo mailinglist that is
attached to bug 176910 but I am waiting for feedback from Carl or others about
the patch. I think we could also consider patching Xft to support the
embeddedbitmap option if it doesn't already.