Roozbeh Pournader
2005-Nov-21 08:50 UTC
[Fontconfig] Fontconfig 2.2.2 and Xft 2.1.4 released
On Fri, 2004-03-12 at 02:36, Keith Packard wrote:> Oops. I accidentally left that in while testing to see that both paths > worked in the code. Can I just respin 2.1.4? Or would people prefer > 2.1.5?Go with 2.1.5. A new different 2.1.4 will create confusion. Or you may go with 2.1.4.1. roozbeh
On Wed, Mar 10, 2004 at 04:05:12PM -0800, Keith Packard wrote:> I Also fixed up Xft to work with fontconfig 2.2.* and with new versions of > FreeType. Version 2.1.4 is available at > > http://freedesktop.org/~xlibs/releaseXft 2.1.4 will break when using some vendor compilers, like those from Sun and SGI. #warning is a GCCism. Either remove or: #ifdef __GNUC__ #warning #endif -- albert chin (china@thewrittenword.com)
On 2004.03.11 23:06 Keith Packard wrote:> > Around 16 o''clock on Mar 11, Albert Chin wrote: > > > Xft 2.1.4 will break when using some vendor compilers, like those from > > Sun and SGI. #warning is a GCCism. Either remove or: > > Oops. I accidentally left that in while testing to see that both paths > worked in the code. Can I just respin 2.1.4? Or would people prefer > 2.1.5?I can cope easily enough, but you won''t be able to let everyone know who has downloaded it. I''d go for 2.1.5 myself. Cheers, -- J. Ali Harlow ali@juiblex.co.uk
Around 14 o''clock on Mar 12, Roozbeh Pournader wrote:> Go with 2.1.5. A new different 2.1.4 will create confusion. Or you may > go with 2.1.4.1.You''re singing with the choir this morning... (I have only three digits for the release number though, so 2.1.4.1 isn''t feasible). -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/20040312/ddfb4648/attachment.pgp
I fixed up fontconfig 2.2 to work with new versions of FreeType and have made a release on that branch. Version 2.2.2 is available at http://freedesktop.org/~fontconfig/release I Also fixed up Xft to work with fontconfig 2.2.* and with new versions of FreeType. Version 2.1.4 is available at http://freedesktop.org/~xlibs/release note that versions prior to 2.1.3 are Xft-*.tar.gz while newer versions are libXft-*.tar.gz -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/20040310/d229932b/attachment.pgp
Around 16 o''clock on Mar 11, Albert Chin wrote:> Xft 2.1.4 will break when using some vendor compilers, like those from > Sun and SGI. #warning is a GCCism. Either remove or:Oops. I accidentally left that in while testing to see that both paths worked in the code. Can I just respin 2.1.4? Or would people prefer 2.1.5? -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/20040311/6fd975ea/attachment.pgp
On Sun, Mar 14, 2004 at 02:43:36PM -0800, Keith Packard wrote:> Yes. What version of FreeType are you using?I''m using FreeType 2.1.7 (upgraded just before I did fontconfig/libXft). Thanks, -- Adam Sampson <azz@us-lot.org> <http://offog.org/>
Around 23 o''clock on Mar 14, Adam Sampson wrote:> I''m using FreeType 2.1.7 (upgraded just before I did fontconfig/libXft).Well, the bdf/pcf handlers in that version are broken. The basic problem is that someone had the bright idea of adding another set of metrics to measure bitmap instances with. We used to have width ??? height ''pixel height'' of the face (basically point/72 * dpi) Now we''ve got width average ''width'' value (spacing to next character) height ascent + descent + leading? x_ppem horizontal pixels in M square y_ppem vertical pixels in M square Note that ''new y_ppem'' == ''old height'' (an M square is generally defined by the nominal height of the face, with a bit of aspect ratio thrown in to whack the horizontal value) The problem is the BDF/PCF loaders were matching sizes passed in against width/height instead of x_ppem/y_ppem. But, the TTF loader matches x_ppem/ y_ppem. It''s just a bug in FreeType. I''m pretty sure it''s been fixed since; I sent a detailed message to them explaining what I found http://www.freetype.org/pipermail/devel/2004-February/010140.html And, as usual, they were quick to help out. To "fix" the problem, you have to take the x_ppem/y_ppem values given to the font selector function and "know" to convert them to width/height values; that means detecting that the font is a BDF/PCF font, that the FreeType version has this bug and walking the bitmap table to convert the values across. Simply backing out the matching code won''t work. The font sizes are now extracted from y_ppem/x_ppem values (which the BDF/PCF loaders set correctly). Passing those values in raw will fail to match just as the current code fails now -- you can''t send x_ppem/y_ppem values and expect the BDF/PCF loaders to find matching entries -- they''re matching against width/height. Probably the best solution would be to have Fontconfig check the version of FreeType and use width/height for really old versions (pre-x_ppem/ y_ppem) when finding out what sizes are available, and then map x_ppem/ y_ppem to width/height when using the BDF/PCF loader from the few versions of FreeType which were broken. -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/20040314/8ce84b5e/attachment.pgp
On Wed, Mar 10, 2004 at 04:05:12PM -0800, Keith Packard wrote:> I fixed up fontconfig 2.2 to work with new versions of FreeType and have > made a release on that branch. Version 2.2.2 is available atUpgrading to these versions of fontconfig and Xft (from fontconfig 2.2.1 and Xft 2.1.1) seems to have caused problems with GTK applications for me. My default font is the bitmap Helvetica that comes with XFree86, and any application that wants to use a size other than the default crashes with an error like: ** (xfce-mcs-manager:21817): WARNING **: Cannot open font file for font Helvetica Bold 14.3994140625 ** (xfce-mcs-manager:21817): WARNING **: Cannot open fallback font, nothing to do Is this Xft change likely to be the culprit? * xftfreetype.c: (_XftSetFace), (XftFontInfoFill): Search for closest bitmap size when font provides only bitmaps Use FC_HINT_STYLE only when available Thanks, -- Adam Sampson <azz@us-lot.org> <http://offog.org/>
Around 22 o''clock on Mar 14, Adam Sampson wrote:> ** (xfce-mcs-manager:21817): WARNING **: Cannot open font file for font > Helvetica Bold 14.3994140625 > > Is this Xft change likely to be the culprit? > > * xftfreetype.c: (_XftSetFace), (XftFontInfoFill): > Search for closest bitmap size when font provides only bitmaps > Use FC_HINT_STYLE only when availableYes. What version of FreeType are you using? They changed the semantics of how bitmap instances were labeled which broke some stuff. It may be that we need to look first at y_ppem/x_ppem and then, failing that, look at width/height. I sent in a patch to FreeType to fix the BDF/PCF loaders to match the TTF loader, I don''t know whether that''s in a released version or not. -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/20040314/2ab950f0/attachment.pgp