From 699bf056ea4cf050a7a1551be39220257097013b Mon Sep 17 00:00:00 2001 From: Danny Dulai Date: Fri, 8 Mar 2013 10:41:28 -0500 Subject: [PATCH] CTFontGetGlyphsForCharacters takes UniChars, not chars --- src/CoreText/CTFont.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreText/CTFont.cs b/src/CoreText/CTFont.cs index 1ed43681..1816ef96 100644 --- a/src/CoreText/CTFont.cs +++ b/src/CoreText/CTFont.cs @@ -1878,7 +1878,7 @@ public string[] GetSupportedLanguages () return languages; } - [DllImport (Constants.CoreTextLibrary)] + [DllImport (Constants.CoreTextLibrary, CharSet = CharSet.Unicode)] static extern bool CTFontGetGlyphsForCharacters (IntPtr font, [In] char[] characters, [Out] CGGlyph[] glyphs, int count); public bool GetGlyphsForCharacters (char[] characters, CGGlyph[] glyphs, int count) {