Add fontIndex parameter to fontstash that controls which font in a TTC to load

This commit is contained in:
Karl Zylinski
2025-10-10 23:40:29 +02:00
parent 79912b3a98
commit a4350b41ae
3 changed files with 13 additions and 5 deletions
+1
View File
@@ -5,6 +5,7 @@ AddFontPath :: proc(
ctx: ^FontContext,
name: string,
path: string,
fontIndex: int = 0,
) -> int {
panic("fontstash.AddFontPath is unsupported on the JS target")
}