fix font and stuff

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@819 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-26 21:21:20 +00:00
parent 1101eb77df
commit b68f0b8aa5
9 changed files with 6005 additions and 3390 deletions

View File

@@ -38,7 +38,7 @@ int main(int argc, char** argv) {
printf(" * \"%s\"\n", rec.u.atom);
printf(" */\n");
printf("MwFont MwFontData[] = {\n");
for(i = 0; i < 0x80; i++) {
for(i = 0; i < 0x100; i++) {
int y, x;
FT_Bitmap bitmap;
unsigned char n;
@@ -62,7 +62,7 @@ int main(int argc, char** argv) {
}
printf("%d%s", n, y == (bitmap.rows - 1) ? "" : ", ");
}
printf("}}%s /* %d */\n", i == (0x80 - 1) ? "" : ", ", i);
printf("}}%s /* %d */\n", i == (0x100 - 1) ? "" : ", ", i);
FT_Bitmap_Done(lib, &bitmap);

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# $Id$
for out in src/text/ttf.c src/text/boldttf.c; do
for out in src/font/ttf.c src/font/boldttf.c; do
echo '/* $Id$ */' > $out
echo '#include <Mw/Milsko.h>' >> $out
echo '' >> $out
@@ -9,6 +9,6 @@ for out in src/text/ttf.c src/text/boldttf.c; do
done
xxd -n MwTTFData -i resource/font/IBMPlexMono.ttf | sed s/_len/Size/ >> src/font/ttf.c
xxd -n MwBoldTTFData -i resource/font/IBMPlexMono-Bold.ttf | sed s/_len/Size/ >> src/font/boldttf.c
for out in src/text/ttf.c src/text/boldttf.c; do
for out in src/font/ttf.c src/font/boldttf.c; do
echo '#endif' >> $out
done