diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-03-23 22:35:06 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-03-23 22:35:06 +0000 |
commit | d965cf1c26b428c5f69f0fa925ef06e9e3d56fdf (patch) | |
tree | fccb6dc7deafcf204fb00b8611ef27547cafabb4 /Build/source/texk/web2c/xetexdir/XeTeX_mac.c | |
parent | f9f93ae098d3cdbf7824cba24bcb9dc9ab87c0f3 (diff) |
XeTeX 0.9999.1
git-svn-id: svn://tug.org/texlive/trunk@29480 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeX_mac.c')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeX_mac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_mac.c b/Build/source/texk/web2c/xetexdir/XeTeX_mac.c index dc495b14648..44a45692d4b 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeX_mac.c +++ b/Build/source/texk/web2c/xetexdir/XeTeX_mac.c @@ -428,7 +428,7 @@ getFileNameFromCTFont(CTFontRef ctFontRef, int *index) } } - error = FT_New_Face(gFreeTypeLibrary, pathname, 0, &face); + error = FT_New_Face(gFreeTypeLibrary, (char *) pathname, 0, &face); if (!error) { if (face->num_faces > 1) { int num_faces = face->num_faces; @@ -437,7 +437,7 @@ getFileNameFromCTFont(CTFontRef ctFontRef, int *index) *index = -1; FT_Done_Face (face); for (i = 0; i < num_faces; i++) { - error = FT_New_Face (gFreeTypeLibrary, pathname, i, &face); + error = FT_New_Face (gFreeTypeLibrary, (char *) pathname, i, &face); if (!error) { const char *ps_name2 = FT_Get_Postscript_Name(face); if (strcmp(ps_name1, ps_name2) == 0) { @@ -451,7 +451,7 @@ getFileNameFromCTFont(CTFontRef ctFontRef, int *index) } if (*index != -1) - ret = strdup(pathname); + ret = strdup((char *) pathname); } CFRelease(url); } @@ -490,7 +490,7 @@ findDictionaryInArray(CFArrayRef array, const void* nameKey, const char* name, i if (array) { CFStringRef itemName; CFIndex i; - itemName = CFStringCreateWithBytes(NULL, name, nameLength, + itemName = CFStringCreateWithBytes(NULL, (UInt8 *) name, nameLength, kCFStringEncodingUTF8, false); for (i = 0; i < CFArrayGetCount(array); i++) { CFDictionaryRef item = CFArrayGetValueAtIndex(array, i); |