mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: clean file path usage in the examples, move all the fonts in the common assets folder (#12736)
This commit is contained in:
@@ -152,7 +152,7 @@ fn on_init(mut app App) {
|
||||
[console]
|
||||
fn main() {
|
||||
println("Press 'q' to quit.")
|
||||
mut font_path := os.resource_abs_path(os.join_path('../assets/fonts/', 'RobotoMono-Regular.ttf'))
|
||||
mut font_path := os.resource_abs_path(os.join_path('..', 'assets', 'fonts', 'RobotoMono-Regular.ttf'))
|
||||
$if android {
|
||||
font_path = 'fonts/RobotoMono-Regular.ttf'
|
||||
}
|
||||
|
Reference in New Issue
Block a user