~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/freetype/src/type1/t1driver.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/*                                                                         */
5
5
/*    Type 1 driver interface (body).                                      */
6
6
/*                                                                         */
7
 
/*  Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007 by                   */
 
7
/*  Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007, 2009 by             */
8
8
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
9
9
/*                                                                         */
10
10
/*  This file is part of the FreeType project, and may only be used,       */
84
84
    return 0;
85
85
  }
86
86
 
 
87
 
87
88
  static const FT_Service_GlyphDictRec  t1_service_glyph_dict =
88
89
  {
89
90
    (FT_GlyphDict_GetNameFunc)  t1_get_glyph_name,
91
92
  };
92
93
 
93
94
 
94
 
 /*
95
 
  *  POSTSCRIPT NAME SERVICE
96
 
  *
97
 
  */
 
95
  /*
 
96
   *  POSTSCRIPT NAME SERVICE
 
97
   *
 
98
   */
98
99
 
99
100
  static const char*
100
101
  t1_get_ps_name( T1_Face  face )
102
103
    return (const char*) face->type1.font_name;
103
104
  }
104
105
 
 
106
 
105
107
  static const FT_Service_PsFontNameRec  t1_service_ps_name =
106
108
  {
107
109
    (FT_PsName_GetFunc)t1_get_ps_name
108
110
  };
109
111
 
110
112
 
111
 
 /*
112
 
  *  MULTIPLE MASTERS SERVICE
113
 
  *
114
 
  */
 
113
  /*
 
114
   *  MULTIPLE MASTERS SERVICE
 
115
   *
 
116
   */
115
117
 
116
118
#ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT
117
119
  static const FT_Service_MultiMastersRec  t1_service_multi_masters =
125
127
#endif
126
128
 
127
129
 
128
 
 /*
129
 
  *  POSTSCRIPT INFO SERVICE
130
 
  *
131
 
  */
 
130
  /*
 
131
   *  POSTSCRIPT INFO SERVICE
 
132
   *
 
133
   */
132
134
 
133
135
  static FT_Error
134
136
  t1_ps_get_font_info( FT_Face          face,
135
137
                       PS_FontInfoRec*  afont_info )
136
138
  {
137
139
    *afont_info = ((T1_Face)face)->type1.font_info;
138
 
    return 0;
 
140
 
 
141
    return T1_Err_Ok;
 
142
  }
 
143
 
 
144
 
 
145
  static FT_Error
 
146
  t1_ps_get_font_extra( FT_Face           face,
 
147
                        PS_FontExtraRec*  afont_extra )
 
148
  {
 
149
    *afont_extra = ((T1_Face)face)->type1.font_extra;
 
150
 
 
151
    return T1_Err_Ok;
139
152
  }
140
153
 
141
154
 
143
156
  t1_ps_has_glyph_names( FT_Face  face )
144
157
  {
145
158
    FT_UNUSED( face );
 
159
 
146
160
    return 1;
147
161
  }
148
162
 
152
166
                          PS_PrivateRec*  afont_private )
153
167
  {
154
168
    *afont_private = ((T1_Face)face)->type1.private_dict;
155
 
    return 0;
 
169
 
 
170
    return T1_Err_Ok;
156
171
  }
157
172
 
158
173
 
159
174
  static const FT_Service_PsInfoRec  t1_service_ps_info =
160
175
  {
161
176
    (PS_GetFontInfoFunc)   t1_ps_get_font_info,
 
177
    (PS_GetFontExtraFunc)  t1_ps_get_font_extra,
162
178
    (PS_HasGlyphNamesFunc) t1_ps_has_glyph_names,
163
179
    (PS_GetFontPrivateFunc)t1_ps_get_font_private,
164
180
  };
165
181
 
 
182
 
166
183
#ifndef T1_CONFIG_OPTION_NO_AFM
167
184
  static const FT_Service_KerningRec  t1_service_kerning =
168
185
  {
170
187
  };
171
188
#endif
172
189
 
173
 
 /*
174
 
  *  SERVICE LIST
175
 
  *
176
 
  */
 
190
 
 
191
  /*
 
192
   *  SERVICE LIST
 
193
   *
 
194
   */
177
195
 
178
196
  static const FT_ServiceDescRec  t1_services[] =
179
197
  {
304
322
    (FT_Face_GetKerningFunc)  Get_Kerning,
305
323
    (FT_Face_AttachFunc)      T1_Read_Metrics,
306
324
#endif
307
 
    (FT_Face_GetAdvancesFunc) 0,
 
325
    (FT_Face_GetAdvancesFunc) T1_Get_Advances,
308
326
    (FT_Size_RequestFunc)     T1_Size_Request,
309
327
    (FT_Size_SelectFunc)      0
310
328
  };