Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

18
Kha/Sources/kha/Font.hx Normal file
View 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;
}