[Top][All Lists]

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

Re: [ft] FT_New_Face

From: Brian Weed
Subject: Re: [ft] FT_New_Face
Date: Sat, 16 Sep 2006 20:52:57 -0400
User-agent: Thunderbird (Windows/20060909)

Hartwig Wiesmann wrote:

the file path parameter is a pointer to a constant char type. A lot of OS are not using ASCII characters but Unicode to describe the file name and its path. Is there any workaround to have also access to font files that have non-ASCII characters in their file names?

AFAIK, FT_New_Face eventually just calls fopen()...

On Win32 if you compile FreeType with _MBCS (a win32 define), then you can pass Multi-Byte-Character-Strings (which can be represented with a CHAR *). On MacOS, I think the default is UTF-8 (which can also be represented by a CHAR *).

I store all strings as UTF-8 (regardless of platform), and convert to MBCS on Win32 as needed.


reply via email to

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