mirror of
git://git.proxmox.com/git/spiceterm.git
synced 2025-08-29 13:27:36 +00:00
iscan all font files (include arabic font)
This commit is contained in:
parent
31b5cce2a6
commit
ca84c6f190
3
Makefile
3
Makefile
@ -18,7 +18,8 @@ genfont: genfont.c
|
|||||||
keysyms.h: genkeysym.pl
|
keysyms.h: genkeysym.pl
|
||||||
./genkeysym.pl >$@
|
./genkeysym.pl >$@
|
||||||
|
|
||||||
glyphs.h: genfont
|
.PHONY: glyphs
|
||||||
|
glyphs: genfont
|
||||||
./genfont > glyphs.h
|
./genfont > glyphs.h
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
19
genfont.c
19
genfont.c
@ -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/iso07.f16.psf.gz", 0); /* Greek */
|
||||||
load_psf_font ("/usr/share/consolefonts/Goha-16.psf.gz", 0); /* Ethiopic */
|
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;
|
int i;
|
||||||
for (i = 0; i < globbuf.gl_pathc; i++) {
|
for (i = 0; i < globbuf.gl_pathc; i++) {
|
||||||
int pc = vt_font_size;
|
int pc = vt_font_size;
|
||||||
load_psf_font (globbuf.gl_pathv[i], 0);
|
load_psf_font (globbuf.gl_pathv[i], 0);
|
||||||
if (vt_font_size > pc) {
|
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);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user