Hello! These are patches for xfree(xft), fontconfig and freetype. If you apply these patches, you can look bold font with cjk truetype fonts. and you can get good autohint. I thought that I should use cjk use flag at first. but this patch is not so big and xfree need many compile time, so apply the patch always. If you don't like this way, I will rewrite to use cjk use flag as soon as possible. These patches from http://www.kde.gr.jp/~akito/patch/download.html. Please apply these patches. Thank you. Reproducible: Always Steps to Reproduce:
Created attachment 22403 [details, diff] xfree-4.3.0-r3.ebuild.diff diff for the revision 1.91
Created attachment 22404 [details, diff] xft-2.1.1-MakeBold-20030927.patch
Created attachment 22405 [details, diff] fontconfig-2.2.1.ebuild.diff
Created attachment 22407 [details, diff] fontconfig-2.2.1-Bold-conf.patch id=22405 diff for the revision 1.12.
Created attachment 22408 [details, diff] freetype-2.1.5.ebuild.diff diff for the revision 1.3
Created attachment 22409 [details, diff] freetype-2.1.5-autohint-cjkfonts-20031105.patch this is an autohint patch for freetype 2.1.5.
Have these already been added upstream to CVS/newer releases than we have? If not, they probably should be.
not yet added.
Could you please remake xft-2.1.1-MakeBold-20030927.patch so it applies from ${WORKDIR}? In other words, it needs to be from outside xc, so that it can be applied in bulk patching instead of the custom ebuild hack used in this case. Suggested procedure for this is: cd ${WORKDIR}; mkdir -p xc.orig/lib; cp -r xc/lib/Xft xc.orig/lib/; make changes; diff -urN xc.orig/lib/Xft xc/lib/Xft. Thanks for your contribution. Would you like us to submit them upstream, assuming there are no problems with them, or would you prefer to do so?
Created attachment 22581 [details, diff] xft-2.1.1-MakeBold-20030927.patch like this? and I'm not author of these patches, but yes please.
Yes, perfect. Foser, we talked briefly about this. Could you put your input on these patches here please? Also some input from CJK people on how well this works, how useful it is, etc. would be helpful.
Hi, just responding to the request for comment. For Japanese users, the Make bold patch is indispensable, as most japanese fonts come with embedded bitmaps for the smaller sizes, and a bold version fo these characters is not provided. Even windows uses a double striking technique to achieve bold characters for these sizes. Right now, anything that tries to use bold fonts will just use a non-bold version, making it indistinguishable from normal type. I actually posted a message on the fontconfig mailing list a while ago about these patches (or earlier versions of them) but I didn't get any response from Kieth Packard. Maybe you guys can have better luck.
The xlibs@pdx.freedesktop.org list would probably be the proper one for Xft. Not sure about the others.
Ken said almost all what I wanted to say :) It looks quite nice especially when you use desktop environments such as KDE and GNOME. It may cause some problem for non-cjk users but it'll be okay if we use cjk USE flag to decide whether we apply the patches or not. I'm tempted to include the patch, what do you think, foser? Just FYO, I sent an email to the patches' author about contacting upstream but I haven't got a reply yet. (I didn't contact to fontconfig people)
foser: still waiting to hear from you on this?
The cjk fonts patch i'll try to add ASAP (with cjk in USE). The bold fonts stuff i'm not too happy about as you know.
Thanks foser, just trying to make decisions on what's going in xfree-4.3.0-r4.
I just added the cjk autohint patch to freetype-2.1.5-r1, that should close part of this issue. The boldness stuff i'm still not hot about.
I don't find the patches fontconfig-2.2.1-Bold-conf.patch and xft-2.1.1-MakeBold-20030927.patch in the corresponding ebuild directories. PLEASE add them to the portage tree. I don't want to apply them manually and everything got reset after emerge sync. Thanks a lot!
Then use them in your overlay. It's foser's call on those, and he's obviously not very keen on them.
optional embolden has been added to recent fontconfig/xft versions.