add comment about cast

This commit is contained in:
Josh Tynjala
2024-01-22 10:43:09 -08:00
parent c58013c5e6
commit f2ef5d0082

View File

@@ -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<Int>
// cast it to Array<Glyph> instead (Glyph is an abstract)
return cast glyphs;
#else
return null;