2
0
Brucey 3 жил өмнө
parent
commit
3c17a37629

+ 9 - 1
freetypefont.mod/freetypefont.bmx

@@ -96,7 +96,15 @@ Type TFreeTypeFont Extends BRL.Font.TFont
 	Method CharToGlyph:Int( char:Int ) Override
 	Method CharToGlyph:Int( char:Int ) Override
 		Return FT_Get_Char_Index( _ft_face,char )-1
 		Return FT_Get_Char_Index( _ft_face,char )-1
 	End Method
 	End Method
-	
+
+	Method FamilyName:String()
+		return bmx_freetype_Face_family_name(_ft_face)
+	End Method
+
+	Method StyleName:String()
+		return bmx_freetype_Face_style_name(_ft_face)
+	End Method
+
 	Method LoadGlyph:TFreeTypeGlyph( index:Int ) Override
 	Method LoadGlyph:TFreeTypeGlyph( index:Int ) Override
 	
 	
 		Local glyph:TFreeTypeGlyph=_glyphs[index]
 		Local glyph:TFreeTypeGlyph=_glyphs[index]