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

@ -2,6 +2,7 @@ module main
import gg2 as gg
import gx
import os
const (
win_width = 600
@ -24,7 +25,7 @@ fn main() {
window_title: 'Empty window'
frame_fn: frame
user_data: app
font_path: 'examples/tetris/RobotoMono-Regular.ttf'
font_path: os.resource_abs_path('assets/fonts/RobotoMono-Regular.ttf')
})
app.gg.run()
}
@ -47,4 +48,3 @@ fn (app &App) draw() {
app.gg.draw_rect(10, 10, 100, 30, gx.blue)
app.gg.draw_empty_rect(10, 150, 80, 40, gx.green)
}