5 static int registered = 0;
7 extern DviFontInfo pk_font_info;
8 extern DviFontInfo pkn_font_info;
9 extern DviFontInfo gf_font_info;
10 extern DviFontInfo vf_font_info;
11 extern DviFontInfo ovf_font_info;
13 extern DviFontInfo tt_font_info;
15 #ifdef WITH_TYPE1_FONTS
16 extern DviFontInfo t1_font_info;
18 extern DviFontInfo afm_font_info;
19 extern DviFontInfo tfm_font_info;
20 extern DviFontInfo ofm_font_info;
22 static struct fontinfo {
27 {&vf_font_info, "Virtual fonts", 0},
28 {&ovf_font_info, "Omega's virtual fonts", 0},
30 {&tt_font_info, "TrueType fonts", 0},
32 #ifdef WITH_TYPE1_FONTS
33 {&t1_font_info, "Type1 PostScript fonts", 0},
35 {&pk_font_info, "Packed bitmap (auto-generated)", 1},
36 {&pkn_font_info, "Packed bitmap", -2},
37 {&gf_font_info, "Metafont's generic font format", 1},
38 {&ofm_font_info, "Omega font metrics", -1},
39 {&tfm_font_info, "TeX font metrics", -1},
40 {&afm_font_info, "Adobe font metrics", -1},
44 void mdvi_register_fonts (void)
46 struct fontinfo *type;
49 for(type = known_fonts; type->info; type++) {
50 mdvi_register_font_type(type->info, type->klass);