FS#3341 - libxft-embold patch for xorg to support artificial bold font
Attached to Project:
Arch Linux
Opened by Mark Lam (sunshine) - Sunday, 16 October 2005, 08:11 GMT
Last edited by Judd Vinet (judd) - Monday, 17 October 2005, 02:19 GMT
Opened by Mark Lam (sunshine) - Sunday, 16 October 2005, 08:11 GMT
Last edited by Judd Vinet (judd) - Monday, 17 October 2005, 02:19 GMT
|
Details
Hi
Libxft-embold patch for letting libXft 2.1.7 pick up FT_GlyphSlot_Embolden of freetype 2.1.10.This patch depends on JGC's xft-2.1.7.patch in CURRENT cvs .Libxft-embold is very important,because some font only have "Regular" style,no bold style. In particular CJK font are usual only have "Regular" style. The new version of freetype(reeftype2.1.10) have added FT_GlyphSlot_Embolden API so it can mulated bold style font if font is regular style only,FT_GlyphSlot_Embolden API must work with fontconfig 2.3.X and libXft. Fontconfig 2.3.2 and reeftype2.1.10 are in arch Repo and luckly JGC have backported libxft 2.1.7 to xorg 6.8.2 . So just let libxft to pick up FT_GlyphSlot_Embolden,and libxft-embold patch do that. After patched and rebuilded the xorg 6.8.2. It need add rule to /etc/fonts/font.conf or local.conf to make artificial emboldening of glyphs work . rule : <match target="font"> <!-- check to see if the font is just regular --> <test name="weight" compare="less_eq"> <int>100</int> </test> <!-- check to see if the pattern requests bold --> <test target="pattern" name="weight" compare="more_eq"> <int>180</int> </test> <!-- set the embolden flag --> <edit name="embolden" mode="assign"> <bool>true</bool> </edit> </match> It is very painful thing that Opera, Firefox can't display bold style font when browing webpage :-( ,and will very exciting if Arch has artificial embold font support by default :-). By now only SUSE and Mandriva have artificial embold font support by default,Even Not Fedora core 4 and Ubuntu 5.10. |
This task depends upon
Closed by Jan de Groot (JGC)
Sunday, 01 January 2006, 10:59 GMT
Reason for closing: Implemented
Additional comments about closing: Since the patch is backported from Xorg 6.9 CVS, the patch should be merged upstream in modular xorg 7.0.
Sunday, 01 January 2006, 10:59 GMT
Reason for closing: Implemented
Additional comments about closing: Since the patch is backported from Xorg 6.9 CVS, the patch should be merged upstream in modular xorg 7.0.
http://bugs.archlinux.org/index.php?do=details&id=3342
no embold font
http://img412.imageshack.us/my.php?image=noembold7tl.png
embold font
http://img398.imageshack.us/my.php?image=embold4fr.png
pacman -S ttf-arphic-uming
then open the follow link in Firefox/Opera or others.
http://www.linuxfans.org/nuke/modules.php?name=Forums
If embold font works,it will look like screenshot No2,
if embold font doesn't works it will look like screenshot No1.