5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-22 13:34:06 +03:00

iscan all font files (include arabic font)

This commit is contained in:
Dietmar Maurer 2013-10-29 13:17:47 +01:00
parent 31b5cce2a6
commit ca84c6f190
3 changed files with 26609 additions and 1483 deletions

View File

@ -18,7 +18,8 @@ genfont: genfont.c
keysyms.h: genkeysym.pl
./genkeysym.pl >$@
glyphs.h: genfont
.PHONY: glyphs
glyphs: genfont
./genfont > glyphs.h
.PHONY: test

View File

@ -190,25 +190,22 @@ main (int argc, char** argv)
load_psf_font ("/usr/share/consolefonts/iso07.f16.psf.gz", 0); /* Greek */
load_psf_font ("/usr/share/consolefonts/Goha-16.psf.gz", 0); /* Ethiopic */
load_psf_font ("/usr/share/consolefonts/Arabic-Fixed16.psf.gz", 0); /* Arabic */
/* fixme: Arabic, Japanese letters ? */
/* fixme: Japanese letters ? */
if (0) {
glob("/usr/share/consolefonts/*", GLOB_ERR, NULL, &globbuf);
glob("/usr/share/consolefonts/*", GLOB_ERR, NULL, &globbuf);
int i;
for (i = 0; i < globbuf.gl_pathc; i++) {
int i;
for (i = 0; i < globbuf.gl_pathc; i++) {
int pc = vt_font_size;
load_psf_font (globbuf.gl_pathv[i], 0);
if (vt_font_size > pc) {
printf ("TEST: %s %d\n", globbuf.gl_pathv[i], vt_font_size - pc);
//fprintf(stderr, "TEST: %s %d\n", globbuf.gl_pathv[i], vt_font_size - pc);
}
}
} else {
print_glyphs ();
}
print_glyphs ();
exit (0);
}

28070
glyphs.h

File diff suppressed because it is too large Load Diff