Keith Packard
2005-Nov-21 08:51 UTC
[Fontconfig] Extra pixel between characters in monospace font
Around 15 o''clock on Jan 10, "Gilles Boccon-Gibod" wrote:> The problem is that when I use the font in a gnome-based application, such > as gnome-terminal, or KDE application like konsole, the glyphs have an > extra single pixel inserted between them, so the spacing is too wide. For > instance, two underscore characters (__), will be displayed with a > one-pixel gap between them.It''s likely that some glyph in the font is wider than expected and pushes all of the other glyphs out a bit; Xft enforces the monospace attribute by setting all of the glyph advance values to the maximum advertised in the font when directed to use monospaced fonts by an application. Firefox doesn''t request monospacing, so the font isn''t adjusted in that environment. Note that the .pcf.gz fonts which work fine for me do not exhibit this problem; it may be an issue with the OpenType transformation application. -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/20050110/ff9d4d3f/attachment.pgp
Gilles Boccon-Gibod
2005-Nov-21 08:51 UTC
[Fontconfig] Extra pixel between characters in monospace font
This problem is puzzling: I have an OpenType font with embedded bitmaps. The font is a monospace font that I use for coding and for my terminal windows. It is in OpenType/Bitmap format, because I am unable to get my gnome-based applications to work with either the PCF, BDF or FON version of this font (see my previous email about that). The problem is that when I use the font in a gnome-based application, such as gnome-terminal, or KDE application like konsole, the glyphs have an extra single pixel inserted between them, so the spacing is too wide. For instance, two underscore characters (__), will be displayed with a one-pixel gap between them. However, freetype shows the font correctly (using ''ftview''), and some applications have no trouble with the font: FireFox is configured to use this font for monospace text, and it shows it perfectly, without the extra spacing. Any idea why this would be ? (I''m attaching two small portions of screen capture to show the problem) -- Gilles -------------- next part -------------- A non-text attachment was scrubbed... Name: sc-bad.gif Type: image/gif Size: 770 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050110/493d6d90/sc-bad.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: sc-good.gif Type: image/gif Size: 559 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050110/493d6d90/sc-good.gif