Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
Main Page
Related Pages
Data Structures
Files
File List
Globals
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
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
;
12
#if 0
13
extern
DviFontInfo
tt_font_info;
14
#endif
15
#ifdef WITH_TYPE1_FONTS
16
extern
DviFontInfo
t1_font_info;
17
#endif
18
extern
DviFontInfo
afm_font_info
;
19
extern
DviFontInfo
tfm_font_info
;
20
extern
DviFontInfo
ofm_font_info
;
21
22
static
struct
fontinfo
{
23
DviFontInfo
*
info
;
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
44
void
mdvi_register_fonts
(
void
)
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
evince-master
backend
dvi
fonts.c
Generated on Thu Jul 13 2017 13:41:44 for Evince by
1.8.4