add comment about cast
This commit is contained in:
@@ -189,6 +189,8 @@ class Font
|
|||||||
{
|
{
|
||||||
#if (lime_cffi && !macro)
|
#if (lime_cffi && !macro)
|
||||||
var glyphs:Dynamic = NativeCFFI.lime_font_get_glyph_indices(src, characters);
|
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;
|
return cast glyphs;
|
||||||
#else
|
#else
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user