From f2ef5d008212922019db6c053aefe13c5407f74d Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Mon, 22 Jan 2024 10:43:09 -0800 Subject: [PATCH] add comment about cast --- src/lime/text/Font.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lime/text/Font.hx b/src/lime/text/Font.hx index 2d273fb1a1..6a188a181b 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;