Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
fonts.c
Go to the documentation of this file.
1 #include "config.h"
2 #include "fonts.h"
3 #include "mdvi.h"
4 
5 static int registered = 0;
6 
12 #if 0
13 extern DviFontInfo tt_font_info;
14 #endif
15 #ifdef WITH_TYPE1_FONTS
16 extern DviFontInfo t1_font_info;
17 #endif
21 
22 static struct fontinfo {
24  char *desc;
25  int klass;
26 } known_fonts[] = {
27  {&vf_font_info, "Virtual fonts", 0},
28  {&ovf_font_info, "Omega's virtual fonts", 0},
29 #if 0
30  {&tt_font_info, "TrueType fonts", 0},
31 #endif
32 #ifdef WITH_TYPE1_FONTS
33  {&t1_font_info, "Type1 PostScript fonts", 0},
34 #endif
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},
41  {0, 0}
42 };
43 
45 {
46  struct fontinfo *type;
47 
48  if (!registered) {
49  for(type = known_fonts; type->info; type++) {
50  mdvi_register_font_type(type->info, type->klass);
51  }
52  registered = 1;
53  }
54  return;
55 }
56 
57