Re: Get font family name using font file name

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

 



On 06/09/2010 10:42 PM, deokjin kim wrote:
> Dear all,
> 
> I want to get font family name using font file name.
> 
> In order to do it I used FcFileScan API and it works properly.
> 
> But FcFileScan API takes too much time. (more than 1 second)

That's weird.  What kind of font / machine?  Do other fonts take as long?


> I want to reduce this time.
> 
> Would you please advice another method or APIs?

If the font is in a directory cached by fontconfig, you can use FcFontList()
with a pattern having FC_FILE set to the file name.

behdad


> BR,
> 
> Deokjin kim
_______________________________________________
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