Keith Packard
2005-Nov-21 08:51 UTC
[Fontconfig] Reg. fontconfig and adding a new font for Greek
On Wed, 2005-08-17 at 17:19 +0300, Konstantinos Margaritis wrote:> On ????? 16 ????????? 2005 20:38, Keith Packard wrote: > > You can verify which font is selected for your locale by using > > > > $ fc-match :lang=el-GR > > > > This should present the first font in your environment which fully > > supports Greek. > > > > In any case, pango should never display little boxes if you have a > > greek font on your machine as it will always search through all > > available fonts when the requested font is missing a glyph. > > Right, found the problem. Apparently some fonts register themselves as > supporting the Greek glyphs, which is false, and fontconfig/pango > uses these assuming that this is the case. I''ll file a bug report to > these fonts:Fontconfig actually does reasonably careful checks for each font, ignoring glyphs which are advertised in the mapping but which do not contain an outline (a common case for sub-setted fonts).> ttf-bistream-vera (Bitstream fonts) > gsfonts (all the Nimbus fonts)Fontconfig says that these do not support the el-GR locale.> But, as I don''t know the response of the font maintainers yet, maybe > it would be possible to apply some sort of filtering in the > fontconfig package? just an idea.It looks like fontconfig has already done this work. -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050817/0eb294a4/attachment.pgp
Keith Packard
2005-Nov-21 08:51 UTC
[Fontconfig] Reg. fontconfig and adding a new font for Greek
On Sat, 2005-08-13 at 22:18 +0300, Konstantinos Margaritis wrote:> (Resending to the list on Keith''s request) > > Hi, > I haven''t sent this as a bug report because I''m not sure yet how to > do it. But here is the situation. I understand that fontconfig > manages the prefered font list for X, or pango or some font rendering > engine for that matter, I''m not really into the specifics. In general > this works fine, but we have a problem with greek locale el_GR, or > rather the display of greek glyphs. > > Unless I create a local.conf file that overrides the serif/sans-serif > families with the MgOpen (package ttf-mgopen) or the FreeSans > (ttf-freefont) fonts or any other font supporting greek glyphs), the > greek glyphs don''t appear at all, only squares.Fontconfig should select a font based on the locale unless the application overrides that by specifying a language in the font selection pattern. You can verify which font is selected for your locale by using $ fc-match :lang=el-GR This should present the first font in your environment which fully supports Greek. In any case, pango should never display little boxes if you have a greek font on your machine as it will always search through all available fonts when the requested font is missing a glyph.> I''d gladly send a patch, if I knew a bit more about how it works. Is > it just a case of adding FreeSans/FreeSerif and the MgOpen* fonts in > the fonts.conf? If so, FreeSans/FreeSerif is already there, but > apparently another font takes precedense and erroneously reports of > supporting greek glyphs, while it can''t. I''ll try to play around with > the priority in this, but if you know another way, then I''d be > interested in knowing about it.You shouldn''t have to edit your configuration to get a working font automatically. -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050816/baffb44d/attachment.pgp
Konstantinos Margaritis
2005-Nov-21 08:51 UTC
[Fontconfig] Reg. fontconfig and adding a new font for Greek
(Resending to the list on Keith''s request) Hi, I haven''t sent this as a bug report because I''m not sure yet how to do it. But here is the situation. I understand that fontconfig manages the prefered font list for X, or pango or some font rendering engine for that matter, I''m not really into the specifics. In general this works fine, but we have a problem with greek locale el_GR, or rather the display of greek glyphs. Unless I create a local.conf file that overrides the serif/sans-serif families with the MgOpen (package ttf-mgopen) or the FreeSans (ttf-freefont) fonts or any other font supporting greek glyphs), the greek glyphs don''t appear at all, only squares. I''d gladly send a patch, if I knew a bit more about how it works. Is it just a case of adding FreeSans/FreeSerif and the MgOpen* fonts in the fonts.conf? If so, FreeSans/FreeSerif is already there, but apparently another font takes precedense and erroneously reports of supporting greek glyphs, while it can''t. I''ll try to play around with the priority in this, but if you know another way, then I''d be interested in knowing about it. Thanks Konstantinos -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050813/c3033288/attachment.pgp