Browse Source

sdf: switch font format from bmp to png

K. Lange 7 months ago
parent
commit
802ae6a616

BIN
base/usr/share/fonts/sdf_bold.sdf


BIN
base/usr/share/fonts/sdf_bold_oblique.sdf


BIN
base/usr/share/fonts/sdf_mono.sdf


BIN
base/usr/share/fonts/sdf_mono_bold.sdf


BIN
base/usr/share/fonts/sdf_mono_bold_oblique.sdf


BIN
base/usr/share/fonts/sdf_mono_oblique.sdf


BIN
base/usr/share/fonts/sdf_oblique.sdf


BIN
base/usr/share/fonts/sdf_thin.sdf


+ 1 - 1
lib/graphics.c

@@ -422,7 +422,7 @@ int load_sprite(sprite_t * sprite, char * filename) {
 
 	char * ext = extension_from_filename(filename);
 
-	if (!strcmp(ext,"png")) return load_sprite_png(sprite, filename);
+	if (!strcmp(ext,"png") || !strcmp(ext,"sdf")) return load_sprite_png(sprite, filename);
 	if (!strcmp(ext,"jpg") || !strcmp(ext,"jpeg")) return load_sprite_jpg(sprite, filename);
 
 	/* Fall back to bitmap */