summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk/ttfenc.h
blob: a72f24f3b33c5b839022da7f4fcccd4ca4ffe461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 *   ttfenc.h
 *
 *   This file is part of the ttf2pk package.
 *
 *   Copyright 1997-1999, 2000 by
 *     Frederic Loyer <loyer@ensta.fr>
 *     Werner Lemberg <wl@gnu.org>
 */

#ifndef TTFENC_H
#define TTFENC_H

#include "ttf2tfm.h"


enum _EncodingScheme
{
  encUnicode,
  encMac,
  encFontSpecific
};
typedef enum _EncodingScheme EncodingScheme;


void set_encoding_scheme(EncodingScheme e, Font *fnt);

char *code_to_adobename(long code);
long adobename_to_code(char *s);

ttfinfo *findglyph(unsigned short g, ttfinfo *p);
ttfinfo *findadobe(char *p, ttfinfo *ap);
ttfinfo *findmappedadobe(char *p, ttfinfo **array);

void replace_glyphs(Font *fnt);
void restore_glyph(encoding *enc, Font *fnt);

#endif /* TTFENC_H */


/* end */