> Is there any way to find out whether the font is monospaced to be able > to calculate the text width manually instead of calling > XftTextExtents8 all the time?You can get the FC_SPACING value out of the pattern and check to see what the value is. Note that current fontconfig actually walks through the font to check all of the spacing values so that this setting should be accurate. -keith
Hi, let''s say I have a XftFont object and I''d like to calculate the text width of a certain string of this font. Is there any way to find out whether the font is monospaced to be able to calculate the text width manually instead of calling XftTextExtents8 all the time? Cheers, Matthias -- Matthias Neubauer | Universit?t Freiburg, Institut f?r Informatik | tel +49 761 203 8060 Georges-K?hler-Allee 79, 79110 Freiburg i. Br., Germany | fax +49 761 203 8052