~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to texk/dvipdfmx/dvipdfmx-20110311/src/pdffont.h

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-07 10:47:49 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20120507104749-p00ot5sajjbkp1hp
Tags: 2011.20120507-1
* new upstream checkout: uptex 1.10
* drop patches for config file inclusion in (x)dvipdfmx, included upstream
* add man page for etex
* include pmpost patches and build it
* adapt/unfuzzify patches for current sources
* disable mtx building, we have prepmx package in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Header: /home/cvsroot/dvipdfmx/src/pdffont.h,v 1.11 2008/11/30 21:12:27 matthias Exp $
2
 
 
3
 
    This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
4
 
 
5
 
    Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
6
 
    the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
7
 
    
8
 
    Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
9
 
 
10
 
    This program is free software; you can redistribute it and/or modify
11
 
    it under the terms of the GNU General Public License as published by
12
 
    the Free Software Foundation; either version 2 of the License, or
13
 
    (at your option) any later version.
14
 
    
15
 
    This program is distributed in the hope that it will be useful,
16
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
    GNU General Public License for more details.
19
 
    
20
 
    You should have received a copy of the GNU General Public License
21
 
    along with this program; if not, write to the Free Software
22
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23
 
*/
24
 
 
25
 
#ifndef _PDFFONT_H_
26
 
#define _PDFFONT_H_
27
 
 
28
 
#include "pdfobj.h"
29
 
#include "fontmap.h"
30
 
#include "pdflimits.h"
31
 
 
32
 
#define PDF_FONT_FONTTYPE_TYPE1    0
33
 
#define PDF_FONT_FONTTYPE_TYPE1C   1
34
 
#define PDF_FONT_FONTTYPE_TYPE3    2
35
 
#define PDF_FONT_FONTTYPE_TRUETYPE 3
36
 
 
37
 
#define PDF_FONT_FONTTYPE_TYPE0    4
38
 
 
39
 
extern void pdf_font_set_verbose (void);
40
 
extern int  pdf_font_get_verbose (void);
41
 
 
42
 
extern void pdf_font_set_dpi (int font_dpi);
43
 
 
44
 
#define PDF_FONT_FLAG_NOEMBED   (1 << 0)
45
 
#define PDF_FONT_FLAG_COMPOSITE (1 << 1)
46
 
#define PDF_FONT_FLAG_BASEFONT  (1 << 2)
47
 
 
48
 
#define PDF_FONT_PARAM_DESIGN_SIZE 1
49
 
#define PDF_FONT_PARAM_POINT_SIZE  2
50
 
 
51
 
typedef struct pdf_font pdf_font;
52
 
 
53
 
/* pdf_open_document() call them. */
54
 
extern void     pdf_init_fonts  (void);
55
 
extern void     pdf_close_fonts (void);
56
 
 
57
 
/* font_name is used when mrec is NULL.
58
 
 * font_scale (point size) used by PK font.
59
 
 * It might be necessary if dvipdfmx supports font format with
60
 
 * various optical sizes supported in the future.
61
 
 */
62
 
extern int      pdf_font_findresource  (const char *font_name,
63
 
                                        double font_scale, fontmap_rec *mrec);
64
 
 
65
 
extern int      pdf_get_font_subtype   (int font_id);
66
 
extern pdf_obj *pdf_get_font_reference (int font_id);
67
 
extern char    *pdf_get_font_usedchars (int font_id);
68
 
 
69
 
#if 0
70
 
extern char    *pdf_get_font_fontname  (int font_id); /* without unique tag */
71
 
#endif
72
 
extern int      pdf_get_font_encoding  (int font_id);
73
 
extern int      pdf_get_font_wmode     (int font_id);
74
 
 
75
 
 
76
 
/* Each font drivers use the followings. */
77
 
extern int      pdf_font_is_in_use      (pdf_font *font);
78
 
 
79
 
extern char    *pdf_font_get_ident      (pdf_font *font);
80
 
extern char    *pdf_font_get_mapname    (pdf_font *font);
81
 
extern char    *pdf_font_get_fontname   (pdf_font *font); /* without unique tag */
82
 
extern char    *pdf_font_get_uniqueTag  (pdf_font *font);
83
 
 
84
 
extern pdf_obj *pdf_font_get_resource   (pdf_font *font);
85
 
extern pdf_obj *pdf_font_get_descriptor (pdf_font *font);
86
 
 
87
 
extern char    *pdf_font_get_usedchars  (pdf_font *font);
88
 
extern int      pdf_font_get_encoding   (pdf_font *font);
89
 
 
90
 
extern int      pdf_font_get_flag       (pdf_font *font, int mask);
91
 
#if 0
92
 
extern int      pdf_font_get_flags      (pdf_font *font);
93
 
#endif
94
 
extern double   pdf_font_get_param      (pdf_font *font, int type);
95
 
 
96
 
extern int      pdf_font_get_index      (pdf_font *font);
97
 
 
98
 
extern int      pdf_font_set_fontname   (pdf_font *font, const char *fontname);
99
 
extern int      pdf_font_set_flags      (pdf_font *font, int flags);
100
 
extern int      pdf_font_set_subtype    (pdf_font *font, int subtype);
101
 
 
102
 
extern void     pdf_font_make_uniqueTag (char *tag);
103
 
 
104
 
#endif /* _PDFFONT_H_ */