projects
/
fishladder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new font
[fishladder.git]
/
fontcomp.c
diff --git
a/fontcomp.c
b/fontcomp.c
index ea1fac962c6da60f7abc3588b7b0af713afa70b6..c2d26ac68a1e3c65c97d232027b141282fd23d0d 100644
(file)
--- a/
fontcomp.c
+++ b/
fontcomp.c
@@
-3,6
+3,9
@@
#define VG_TOOLS
#include "vg/vg.h"
#define VG_TOOLS
#include "vg/vg.h"
+#define STB_IMAGE_IMPLEMENTATION
+#include "stb/stb_image.h"
+
// Super basic model compiler
int main( int argc, char *argv[] )
{
// Super basic model compiler
int main( int argc, char *argv[] )
{
@@
-36,7
+39,7
@@
int main( int argc, char *argv[] )
u32 buff = 0;
for( int b = 31; b >= 0; b-- )
{
u32 buff = 0;
for( int b = 31; b >= 0; b-- )
{
- buff |= data[pixel*4
+3
]>128?0x1<<b:0;
+ buff |= data[pixel*4]>128?0x1<<b:0;
pixel++;
if( pixel >= pixel_max )
pixel++;
if( pixel >= pixel_max )
@@
-53,6
+56,8
@@
int main( int argc, char *argv[] )
free(data);
fclose(output);
free(data);
fclose(output);
+
+ vg_success( "Font compiled successfully\n" );
}
else
{
}
else
{