Hi,
There was a thread about Freetype unable to open font files with
non-ASCII file names on Windows, with a proposed solution:
http://lists.gnu.org/archive/html/freetype/2006-09/msg00036.html

Now I had to revisit this problem (because we use Freetype, and it
can't open those files on Windows). I did the same approach: on
Windows, do not map ft_fopen directly to fopen(), instead map to a
function that first tries fopen(), and if that fails converts path
from UTF-8 into UTF-16 and tries _wfopen().

Attached a patch (against Freetype 2.2.1). Tested to compile (using
Visual Studio 2003) and work on Windows. Might not work on Windows 9x
systems though (they don't have Unicode support built in).


--
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info

Attachment: fopen-windows-utf8.diff
Description: Binary data

_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to