Mercurial > repos > blastem
comparison nuklear_ui/font_android.c @ 1843:13abdc98379e mame_interp
Get Android build target working on mame_interp branch
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 18 Apr 2019 22:06:47 -0700 |
parents | 78abbabfd58d |
children |
comparison
equal
deleted
inserted
replaced
1842:49f65d240299 | 1843:13abdc98379e |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include <stdlib.h> | 2 #include <stdlib.h> |
3 #include <stdint.h> | 3 #include <stdint.h> |
4 #include <limits.h> | 4 #include <limits.h> |
5 #include <string.h> | |
5 #include "../util.h" | 6 #include "../util.h" |
6 #include "../paths.h" | 7 #include "../paths.h" |
7 #include "sfnt.h" | 8 #include "sfnt.h" |
8 | 9 |
9 typedef enum { | 10 typedef enum { |
184 if (ret) { | 185 if (ret) { |
185 return ret; | 186 return ret; |
186 } | 187 } |
187 error: | 188 error: |
188 //try some likely suspects if we failed to parse fonts.xml or failed to find the indicated font | 189 //try some likely suspects if we failed to parse fonts.xml or failed to find the indicated font |
189 ret = try_load_font("/system/fonts/Roboto-Regular.ttf", size_out); | 190 ret = try_load_font(strdup("/system/fonts/Roboto-Regular.ttf"), size_out); |
190 if (!ret) { | 191 if (!ret) { |
191 ret = try_load_font("/system/fonts/DroidSans.ttf", size_out); | 192 ret = try_load_font(strdup("/system/fonts/DroidSans.ttf"), size_out); |
192 } | 193 } |
193 return ret; | 194 return ret; |
194 } | 195 } |