vlang / ui

A cross-platform UI library written in V
MIT License
2.32k stars 154 forks source link

fix android default font path #383

Closed ghost closed 3 years ago

ghost commented 3 years ago

$if android { font_path = 'fonts/RobotoMono-Regular.ttf' always requires assets/fonts/RobotoMono-Regular.ttf to be present. But Android only requires assets/foo_font.ttf for custom font if needed. And gg.system_font_path() correctly gets system font. So removed what leads to confusion. This fixes https://github.com/Larpon/jni/issues/7#issuecomment-908591761

Fixed some code-style issues.

larpon commented 3 years ago

Looks good to me - always nice to get rid of code :slightly_smiling_face: