examples,gg: modify all remaining calls to fons.add_font_mem/3 to use an array.clone()

This commit is contained in:
Delyan Angelov 2025-02-07 14:39:36 +02:00
parent 16a6e45274
commit 10f2fe196a
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 11 additions and 11 deletions

View file

@ -39,7 +39,7 @@ fn init(mut state AppState) {
'RobotoMono-Regular.ttf')))
{
println('loaded font: ${bytes.len}')
state.font_normal = state.font_context.add_font_mem('sans', bytes, false)
state.font_normal = state.font_context.add_font_mem('sans', bytes.clone(), true)
}
}

View file

@ -100,7 +100,7 @@ fn init(mut state AppState) {
'RobotoMono-Regular.ttf')))
{
println('loaded font: ${bytes.len}')
state.font_normal = state.fons.add_font_mem('sans', bytes, false)
state.font_normal = state.fons.add_font_mem('sans', bytes.clone(), true)
}
}