Debian Codegraph @

texk/ttf2pk2/ttfenc.h

raw
1 /*
2 * ttfenc.h
3 *
4 * This file is part of the ttf2pk package.
5 *
6 * Copyright 1997-1999, 2000 by
7 * Frederic Loyer <[email protected]>
8 * Werner Lemberg <[email protected]>
9 */
10
11 #ifndef TTFENC_H
12 #define TTFENC_H
13
14 #include "ttf2tfm.h"
15
16
17 enum _EncodingScheme
18 {
19 encUnicode,
20 encMac,
21 encFontSpecific
22 };
23 typedef enum _EncodingScheme EncodingScheme;
24
25
26 void set_encoding_scheme(EncodingScheme e, Font *fnt);
27
28 const char *code_to_adobename(long code);
29 long adobename_to_code(const char *s);
30
31 ttfinfo *findglyph(unsigned short g, ttfinfo *p);
32 ttfinfo *findadobe(const char *p, ttfinfo *ap);
33 ttfinfo *findmappedadobe(const char *p, ttfinfo **array);
34
35 void replace_glyphs(Font *fnt);
36 void restore_glyph(encoding *enc, Font *fnt);
37
38 #endif /* TTFENC_H */
39
40
41 /* end */