Matching font by unicode coverage

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

 



I'm learning the fontconfig API, and I'm trying to figure out how to do the following.

I have arbitrary Unicode text, and I would like to match a reasonable font to use for displaying it. It's possible that I might need more than one font if, say, the text is a mixture of Latin characters and Asian ideographs.

I see that FC_CHARSET is an option to FcPattern. Does this sound like I'm on the right track:

A) Construct an FcCharset and add all unicode characters in the text to display

B) Add it as a FC_CHARSET value to an FcPattern.

C) Use FcFontList() to search for the matching font.

The developer reference contains the following statement: "Fontconfig uses some of these properties for font matching and font completion. Others are provided as a convenience for the application's rendering mechanism."

So, I guess I'm trying to clarify whether I can use the FC_CHARSET property to search for fonts that have coverage for my unicode text, or if this a non- searchable property, only.

Attachment: pgpKAQUfAnCag.pgp
Description: PGP signature

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

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

  Powered by Linux