1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: add license files for fonts

This commit is contained in:
Alexey
2020-03-07 16:14:37 +03:00
committed by GitHub
parent d2ab9d3e77
commit 5827ff0a01
10 changed files with 207 additions and 184 deletions

View File

@@ -54,7 +54,7 @@ fn init(user_data voidptr) {
C.sgl_setup(s)
state.fons = sfons.create(512, 512, 1)
// or use DroidSerif-Regular.ttf
if bytes := os.read_bytes(os.resource_abs_path('assets/ProggyTiny.ttf')) {
if bytes := os.read_bytes(os.resource_abs_path('../assets/fonts/RobotoMono-Regular.ttf')) {
println('loaded font: $bytes.len')
state.font_normal = C.fonsAddFontMem(state.fons, 'sans', bytes.data, bytes.len, false)
}