mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 18:33:30 +00:00
ttf support
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@473 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -96,7 +96,7 @@ sub generate {
|
||||
print(OUT "LD = $link\n");
|
||||
print(OUT "\n");
|
||||
print(OUT
|
||||
"CFLAGS = ${inc}include ${def}_MILSKO ${def}USE_GDI ${def}USE_STB_IMAGE ${def}STBI_NO_SIMD\n"
|
||||
"CFLAGS = ${inc}include ${def}_MILSKO ${def}USE_GDI ${def}USE_STB_TRUETYPE ${def}USE_STB_IMAGE ${def}STBI_NO_SIMD\n"
|
||||
);
|
||||
print(OUT "LDFLAGS = $dll");
|
||||
print(OUT "\n");
|
||||
|
||||
@@ -7,8 +7,8 @@ for out in src/text/ttf.c src/text/boldttf.c; do
|
||||
echo '' >> $out
|
||||
echo '#ifdef USE_STB_TRUETYPE' >> $out
|
||||
done
|
||||
xxd -n MwBoldTTFData -i resource/mononoki.ttf >> src/text/ttf.c
|
||||
xxd -n MwTTFData -i resource/mononoki-Bold.ttf >> src/text/boldttf.c
|
||||
xxd -n MwBoldTTFData -i resource/mononoki.ttf | sed s/_len/Size/ >> src/text/ttf.c
|
||||
xxd -n MwTTFData -i resource/mononoki-Bold.ttf | sed s/_len/Size/ >> src/text/boldttf.c
|
||||
for out in src/text/ttf.c src/text/boldttf.c; do
|
||||
echo '#endif' >> $out
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user