[Fontconfig] Get FcPattern from face
akira at tagoh.org
Mon Aug 26 22:42:45 PDT 2013
The workaround for that so far is just to give an empty string as a
filename. that should works enough if a font has SFNT table.
That needs to be improved for other cases.
On Tue, Aug 27, 2013 at 1:04 PM, Pranay Samanta
<pranay.samanta.work at gmail.com> wrote:
> I was using pangoft2 and fontconfig for font rendering and one of my
> requirement was to get PangoFontDescription from memory.
> I found in the documentation FcFreetypeQuery is used to get FcPateern from
> the font file and
> FcFreetypeQueryFace is to get FcPattern from FT_Face.
> But FcFreetypeQueryFace also takes a file name as argument which if not
> given the FcPattern returned is null.
> Initially when I was using Fontconfig 2.8.0 there was no such problem but
> inbthe 2.10.92 release I found there is a function
> FcHashGetSHA256DigestFromFile introduced using the argument file which is
> returning null.
> Please help me if there is any other way to get FcPattern using FT_Face only
> and not the file name.
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
More information about the Fontconfig