mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples,gg: modify all remaining calls to fons.add_font_mem/3 to use an array.clone()
This commit is contained in:
parent
16a6e45274
commit
10f2fe196a
3 changed files with 11 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue