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
Task Type Feature Request
Category Packages: Current
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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.
Comment by Mark Lam (sunshine) - Sunday, 16 October 2005, 08:32 GMT
I also commit a report for requesting add the rule to /etc/fonts/fonts.conf

http://bugs.archlinux.org/index.php?do=details&id=3342
Comment by Mark Lam (sunshine) - Monday, 17 October 2005, 13:03 GMT
There are 2 screenshots show embold font and no embold font in firefox

no embold font

http://img412.imageshack.us/my.php?image=noembold7tl.png

embold font

http://img398.imageshack.us/my.php?image=embold4fr.png


Comment by Mark Lam (sunshine) - Wednesday, 19 October 2005, 11:38 GMT
To check whether embold font works should install Chinese font first

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.

Comment by Mark Lam (sunshine) - Sunday, 01 January 2006, 09:03 GMT
As far as I know,the problem fixed in modular libXft 2.1.8.2 .

Loading...