diff --git a/src/font.c b/src/font.c index 637be6c..5b3e8a0 100644 --- a/src/font.c +++ b/src/font.c @@ -1,6 +1,10 @@ /* $Id$ */ #include +/** + * Copyright notice: + * "Public domain font. Share and enjoy." + */ MwFont MwFontData[] = { {0, 12, {0, 90, 66, 0, 66, 66, 0, 66, 66, 0, 66, 90, 0, 0}}, /* 0 */ {0, 12, {0, 90, 66, 0, 66, 66, 0, 66, 66, 0, 66, 90, 0, 0}}, /* 1 */ diff --git a/tools/font.c b/tools/font.c index bd8e5ce..7efff31 100644 --- a/tools/font.c +++ b/tools/font.c @@ -2,18 +2,20 @@ #include #include FT_FREETYPE_H #include FT_BITMAP_H +#include FT_BDF_H #include #include int main(int argc, char** argv) { - FT_Library lib; - FT_Face face; - int i; - int ay = 0; - int ax = 0; - int sy = 0; - int sx = 0; + FT_Library lib; + FT_Face face; + int i; + int ay = 0; + int ax = 0; + int sy = 0; + int sx = 0; + BDF_PropertyRec rec; FT_Init_FreeType(&lib); if(FT_New_Face(lib, argv[1], 0, &face)) { @@ -26,9 +28,15 @@ int main(int argc, char** argv) { return 1; } + FT_Get_BDF_Property(face, "COPYRIGHT", &rec); + printf("/* $Id$ */\n"); printf("#include \n"); printf("\n"); + printf("/**\n"); + printf(" * Copyright notice:\n"); + printf(" * \"%s\"\n", rec.u.atom); + printf(" */\n"); printf("MwFont MwFontData[] = {\n"); for(i = 0; i < 0x80; i++) { int y, x;