class openfl.text.Font extends Font

Class Fields

static function enumerateFonts(?enumerateDeviceFonts:Bool): Array<Font>

static function fromBytes(bytes:ByteArray): Font

static function fromFile(path:String): Font

static function registerFont(font:Class<Dynamic>): Void

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from Font

var ascender:Int
var descender:Int
var height:Int
var name:String
var numGlyphs:Int
var src:Dynamic
var underlinePosition:Int
var underlineThickness:Int
var unitsPerEM:Int
function decompose():NativeFontData
function getGlyph(character:String):Glyph
function getGlyphMetrics(glyph:Glyph):GlyphMetrics
function getGlyphs(?characters:String):Array<Glyph>
function renderGlyph(glyph:Glyph, fontSize:Int):Image
function renderGlyphs(glyphs:Array<Glyph>, fontSize:Int):Map<Glyph, Image>

function new(?name:String): Void