From 9655639fd551c1e7d9063d19f2d837361789640c Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Wed, 1 Oct 2025 09:25:34 +0000 Subject: [PATCH] font git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@102 b9cfdab3-6d41-4d17-bbe4-086880011989 --- tools/font.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/font.c b/tools/font.c index 7efff31..bf2a786 100644 --- a/tools/font.c +++ b/tools/font.c @@ -50,6 +50,9 @@ int main(int argc, char** argv) { FT_Bitmap_Convert(lib, &face->glyph->bitmap, &bitmap, 1); printf("\t{%d, %d, {", face->glyph->bitmap_left, face->glyph->bitmap_top); + for(y = 0; y < atoi(argv[2]) - bitmap.rows; y++){ + printf("0%s", y == atoi(argv[2]) - 1 ? "" : ", "); + } for(y = 0; y < bitmap.rows; y++) { n = 0; for(x = 0; x < bitmap.width; x++) {