[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] Patch: enable UTF8 path names on Windows
From: |
Aras Pranckevicius |
Subject: |
[ft-devel] Patch: enable UTF8 path names on Windows |
Date: |
Thu, 9 Apr 2009 11:49:07 +0300 |
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
fopen-windows-utf8.diff
Description: Binary data
- [ft-devel] Patch: enable UTF8 path names on Windows,
Aras Pranckevicius <=