2
* Copyright (C) 2000, Matias Atria
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
#ifndef _MDVI_FONTMAP_H
19
#define _MDVI_FONTMAP_H 1
21
typedef struct _DviFontMapEnt DviFontMapEnt;
22
typedef struct _DviEncoding DviEncoding;
41
char **vector; /* table with exactly 256 strings */
47
struct _DviFontMapEnt {
61
#define MDVI_FMAP_SLANT(x) ((double)(x)->slant / 10000.0)
62
#define MDVI_FMAP_EXTEND(x) ((double)(x)->extend / 10000.0)
64
extern DviEncoding *mdvi_request_encoding __PROTO((const char *));
65
extern void mdvi_release_encoding __PROTO((DviEncoding *, int));
66
extern int mdvi_encode_glyph __PROTO((DviEncoding *, const char *));
67
extern DviFontMapEnt *mdvi_load_fontmap __PROTO((const char *));
68
extern void mdvi_install_fontmap __PROTO((DviFontMapEnt *));
69
extern int mdvi_load_fontmaps __PROTO((void));
70
extern int mdvi_query_fontmap __PROTO((DviFontMapInfo *, const char *));
71
extern void mdvi_flush_encodings __PROTO((void));
72
extern void mdvi_flush_fontmaps __PROTO((void));
74
extern int mdvi_add_fontmap_file __PROTO((const char *, const char *));
77
extern int mdvi_ps_read_fontmap __PROTO((const char *));
78
extern char *mdvi_ps_find_font __PROTO((const char *));
79
extern TFMInfo *mdvi_ps_get_metrics __PROTO((const char *));
80
extern void mdvi_ps_flush_fonts __PROTO((void));
82
#endif /* _MDVI_FONTMAP_H */