Fix font family name

This commit is contained in:
Joshua Granick
2015-08-29 22:00:35 -07:00
parent 2c3a4fdcb6
commit 6e570deddc
2 changed files with 3 additions and 3 deletions

View File

@@ -269,11 +269,11 @@ namespace lime {
}
HxString lime_font_get_family_name (double fontHandle) {
value lime_font_get_family_name (double fontHandle) {
#ifdef LIME_FREETYPE
Font *font = (Font*)(intptr_t)fontHandle;
return HxString ((const char*)font->GetFamilyName ());
return alloc_wstring (font->GetFamilyName ());
#else
return 0;
#endif