From bae5826b65412ebfa354d34024af971e94cd1839 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 12 Jan 2015 16:52:36 +1100 Subject: Fix T42069: Fonts /w non-ascii paths fail in win32 Workaround freetype's use of fopen by swapping FT_New_Face for our own version which uses BLI_fopen. --- source/blender/blenfont/intern/blf_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/blenfont/intern/blf_internal.h') diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index 8cb2d377449..39b3e3397be 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -75,4 +75,11 @@ struct GlyphBLF *blf_glyph_add(struct FontBLF *font, unsigned int index, unsigne void blf_glyph_free(struct GlyphBLF *g); void blf_glyph_render(struct FontBLF *font, struct GlyphBLF *g, float x, float y); +#ifdef WIN32 +/* blf_font_win32_compat.c */ +# ifdef FT_FREETYPE_H +extern FT_Error FT_New_Face__win32_compat(FT_Library library, const char *pathname, FT_Long face_index, FT_Face *aface); +# endif +#endif + #endif /* __BLF_INTERNAL_H__ */ -- cgit v1.2.3