diff --git a/src/lime/text/Font.hx b/src/lime/text/Font.hx index 2d273fb1a..6a188a181 100644 --- a/src/lime/text/Font.hx +++ b/src/lime/text/Font.hx @@ -189,6 +189,8 @@ class Font { #if (lime_cffi && !macro) var glyphs:Dynamic = NativeCFFI.lime_font_get_glyph_indices(src, characters); + // lime_font_get_glyph_indices returns Array + // cast it to Array instead (Glyph is an abstract) return cast glyphs; #else return null;