[Xft] text width of monospaced fonts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux