Update Files
This commit is contained in:
18
Kha/Sources/kha/Font.hx
Normal file
18
Kha/Sources/kha/Font.hx
Normal file
@ -0,0 +1,18 @@
|
||||
package kha;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
extern class Font implements Resource {
|
||||
function height(fontSize: Int): Float;
|
||||
|
||||
function width(fontSize: Int, str: String): Float;
|
||||
|
||||
function widthOfCharacters(fontSize: Int, characters: Array<Int>, start: Int, length: Int): Float;
|
||||
|
||||
function baseline(fontSize: Int): Float;
|
||||
|
||||
function unload(): Void;
|
||||
|
||||
// Portability warning, this works only on some platforms but can usually read ttf
|
||||
static function fromBytes(bytes: Bytes): Font;
|
||||
}
|
Reference in New Issue
Block a user