Detecting whether a font is a fallback

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



Suppose I call FcFontMatch on a font pattern with a family name that doesn't exist on my system. I get some default system font.

Is there a reliable way to tell whether the FcPattern I get is for a fallback font like this? I could compare the two FC_FAMILY values, but it seems that Fontconfig does some case transformations — and possibly other things like replacing dashes? Is there a simple way to know if two FC_FAMILY strings match? Is there a better approach that I'm missing?

This is for LilyPond, which has ways of configuring fonts, and where we'd like to display a warning if a font is not found (unlike a GUI application, which just wants to display the text even if it's in a suboptimal font).



Attachment: signature.asc
Description: This is a digitally signed message part

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

  Powered by Linux