freetype
[Top][All Lists]
Advanced

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

Re: [ft] opening a face from limited information


From: mpsuzuki
Subject: Re: [ft] opening a face from limited information
Date: Wed, 9 Aug 2006 10:17:41 +0900

Hi,

On Tue, 08 Aug 2006 02:18:34 -0400
"Philip Deets" <address@hidden> wrote:
><http://www.wxwindows.org/manuals/2.6.3/wx_wxfont.html>.

>Is there any way to make a freetype face from a wxFont instance?

According to the page, wxFont instance only shows abstract
informations like family classification, weight, flags to
synthesize, and character encodings.

Therefore, if I were forced to open a FreeType face for
given wxFont instance, I will have to scan all font directories,
open all font files, and compare informations of Panose entry
in OS/2 table of each font file, versus given wxFont:
        wxFontFamily    -> Family, Serif
        wxFontWeight    -> Weight
        wxEncoding      -> UnicodeRange, CodePageRange

However, looking at the encoding list of wxFontEncoding,
the design wxFontEncoding enumerator is focussed to
8bit encodings for Roman-derived scripts. Most of them
are not supported by TrueType font. And, FreeType does
not provide code-convertor with such legacy encodings,
therefore, you have to implement the code convertor by
yourself.

I think such scanning is heavy process. Using fontconfig
will work faster.

Regards,
mpsuzuki




reply via email to

[Prev in Thread] Current Thread [Next in Thread]