I take the silence as an indication that nothing is currently happening in that area. As no one has expressed the desire to implement it I''ll try myself. Br, --jakub> There has been some discussion about adding the synthetic emboldening > (Freetype2) calls to Xft and matching support to Fontconfig. That was in > January 2003. Would someone knowledgeable care to comment on the status? > Would someone be interested in implementing it? > > Br, > > --jakub
Around 10 o''clock on Sep 9, Jakub Pavelek wrote:> I take the silence as an indication that nothing is currently happening > in that area.Fontconfig isn''t involved in rasterization at all. FreeType has some semi-experimental code for this operation; you might see if that works, and if so, we could add suitable fontconfig options to take advantage of it. -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040912/97081a9e/attachment.pgp
There has been some discussion about adding the synthetic emboldening (Freetype2) calls to Xft and matching support to Fontconfig. That was in January 2003. Would someone knowledgeable care to comment on the status? Would someone be interested in implementing it? Br, --jakub
Around 18 o''clock on Nov 29, Jakub Pavelek wrote:> I have tried that and it seems to work fine for my CJK fonts that don''t > have bold face. Changes need to be made to Freetype, Xft and Fontconfig. > Patch for the CVS version of Fontconfig (2.2.96?) is attached.That''s great; thanks for giving this a try. It seems like getting this built into FreeType by default will be the most difficult part of the problem, but getting Fontconfig and Xft support ready for that seems like a reasonable plan. As to your specific fontconfig patch, the only necessary parts are the configuration file changes and the addition of the FC_EMBOLDEN constant to fontconfig.h. All of the code changes are not needed as fontconfig will happily pass through the uninterpreted parts of the pattern to the font rasterizer. You''ll note that FC_MATRIX, which is used for slanting fonts, is given no special handling in the code, aside from an entry in fcname.c (which FC_EMBOLDEN should get). -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20041129/ff5a3bc1/attachment.pgp
> > I take the silence as an indication that nothing is currently happening > > in that area. > > Fontconfig isn''t involved in rasterization at all. FreeType has some > semi-experimental code for this operation; you might see if that works, > and if so, we could add suitable fontconfig options to take advantage of > it. > > -keith >Hi again, I have tried that and it seems to work fine for my CJK fonts that don''t have bold face. Changes need to be made to Freetype, Xft and Fontconfig. Patch for the CVS version of Fontconfig (2.2.96?) is attached. The detection of bold/regular is not as generic as it should be, hope forum can suggest something more elegant. Also, we need to involve all three libs here, step by step. First introduce the change Fontconfig (pattern checking and setting the embolden flag), second change the makefiles for Freetype to link emboldening code to the library and third, check the embolden flag in Xft and call the embolden function when requested. The performance of this is acceptable. The relative slowdown is related to the rendered pixel size and goes from 50% at 12 pixels to 35% at 72 pixels. This is for Chinese characters, western characters perform slightly better, but don''t look good. Br, --jakub -------------- next part -------------- A non-text attachment was scrubbed... Name: fontconfig_2.2.96_synth_emboldening.patch Type: text/x-patch Size: 3415 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20041129/63351e11/fontconfig_2.2.96_synth_emboldening.bin
Around 10 o''clock on Dec 1, Jakub Pavelek wrote:> Do I need to do something more to get part of the patch included? Can > you accept just the relevant part of the patch?It would certainly be easier for me if I just needed to to ''patch -p0 < file'' instead of manually extracting suitable bits, and it would give you a chance to make sure it all still worked as you expected, which seems like a feature for you. As usual, I can use all the help I can get fixing my broken software... -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20041201/d1af4548/attachment.pgp
> > Do I need to do something more to get part of the patch included? Can > > you accept just the relevant part of the patch? > > It would certainly be easier for me if I just needed to to ''patch -p0 < > file'' instead of manually extracting suitable bits, and it would give you > a chance to make sure it all still worked as you expected, which seems > like a feature for you. > > As usual, I can use all the help I can get fixing my broken software... >Please find the revised patch in the attachment. I have run it and seems to work fine. Br, --jakub -------------- next part -------------- A non-text attachment was scrubbed... Name: fontconfig_2.2.96_synth_emboldening.patch Type: text/x-patch Size: 1599 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20041201/38bb938f/fontconfig_2.2.96_synth_emboldening.bin
> > I have tried that and it seems to work fine for my CJK fonts that don''t > > have bold face. Changes need to be made to Freetype, Xft and Fontconfig. > > Patch for the CVS version of Fontconfig (2.2.96?) is attached. > > That''s great; thanks for giving this a try. It seems like getting this > built into FreeType by default will be the most difficult part of the > problem, but getting Fontconfig and Xft support ready for that seems like > a reasonable plan. > > As to your specific fontconfig patch, the only necessary parts are the > configuration file changes and the addition of the FC_EMBOLDEN constant to > fontconfig.h. All of the code changes are not needed as fontconfig will > happily pass through the uninterpreted parts of the pattern to the font > rasterizer. > > You''ll note that FC_MATRIX, which is used for slanting fonts, is given no > special handling in the code, aside from an entry in fcname.c (which > FC_EMBOLDEN should get).Do I need to do something more to get part of the patch included? Can you accept just the relevant part of the patch? Br, --jakub