We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdebf93 commit b49a339Copy full SHA for b49a339
haxe/ui/backend/AssetsBase.hx
@@ -48,8 +48,9 @@ class AssetsBase {
48
}
49
50
private function getFontInternal(resourceId:String, callback:FontInfo->Void):Void {
51
- if (Reflect.hasField(Assets.fonts, resourceId)) {
52
- callback({ data: cast Reflect.field(Assets.fonts, resourceId) });
+ var font = Assets.fonts.get(resourceId);
+ if (font != null) {
53
+ callback({ data: font });
54
} else {
55
callback(null);
56
0 commit comments