1 | /***************************************************************************/ |
---|
2 | /* */ |
---|
3 | /* t1objs.c */ |
---|
4 | /* */ |
---|
5 | /* Type 1 objects manager (body). */ |
---|
6 | /* */ |
---|
7 | /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ |
---|
8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
---|
9 | /* */ |
---|
10 | /* This file is part of the FreeType project, and may only be used, */ |
---|
11 | /* modified, and distributed under the terms of the FreeType project */ |
---|
12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
---|
13 | /* this file you indicate that you have read the license and */ |
---|
14 | /* understand and accept it fully. */ |
---|
15 | /* */ |
---|
16 | /***************************************************************************/ |
---|
17 | |
---|
18 | |
---|
19 | #include <ft2build.h> |
---|
20 | #include FT_INTERNAL_DEBUG_H |
---|
21 | #include FT_INTERNAL_STREAM_H |
---|
22 | #include FT_TRUETYPE_IDS_H |
---|
23 | |
---|
24 | #include "t1gload.h" |
---|
25 | #include "t1load.h" |
---|
26 | |
---|
27 | #include "t1errors.h" |
---|
28 | |
---|
29 | #ifndef T1_CONFIG_OPTION_NO_AFM |
---|
30 | #include "t1afm.h" |
---|
31 | #endif |
---|
32 | |
---|
33 | #include FT_SERVICE_POSTSCRIPT_CMAPS_H |
---|
34 | #include FT_INTERNAL_POSTSCRIPT_AUX_H |
---|
35 | |
---|
36 | |
---|
37 | /*************************************************************************/ |
---|
38 | /* */ |
---|
39 | /* The macro FT_COMPONENT is used in trace mode. It is an implicit */ |
---|
40 | /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */ |
---|
41 | /* messages during execution. */ |
---|
42 | /* */ |
---|
43 | #undef FT_COMPONENT |
---|
44 | #define FT_COMPONENT trace_t1objs |
---|
45 | |
---|
46 | |
---|
47 | /*************************************************************************/ |
---|
48 | /* */ |
---|
49 | /* SIZE FUNCTIONS */ |
---|
50 | /* */ |
---|
51 | /* note that we store the global hints in the size's "internal" root */ |
---|
52 | /* field */ |
---|
53 | /* */ |
---|
54 | /*************************************************************************/ |
---|
55 | |
---|
56 | |
---|
57 | static PSH_Globals_Funcs |
---|
58 | T1_Size_Get_Globals_Funcs( T1_Size size ) |
---|
59 | { |
---|
60 | T1_Face face = (T1_Face)size->root.face; |
---|
61 | PSHinter_Service pshinter = (PSHinter_Service)face->pshinter; |
---|
62 | FT_Module module; |
---|
63 | |
---|
64 | |
---|
65 | module = FT_Get_Module( size->root.face->driver->root.library, |
---|
66 | "pshinter" ); |
---|
67 | return ( module && pshinter && pshinter->get_globals_funcs ) |
---|
68 | ? pshinter->get_globals_funcs( module ) |
---|
69 | : 0 ; |
---|
70 | } |
---|
71 | |
---|
72 | |
---|
73 | FT_LOCAL_DEF( void ) |
---|
74 | T1_Size_Done( T1_Size size ) |
---|
75 | { |
---|
76 | if ( size->root.internal ) |
---|
77 | { |
---|
78 | PSH_Globals_Funcs funcs; |
---|
79 | |
---|
80 | |
---|
81 | funcs = T1_Size_Get_Globals_Funcs( size ); |
---|
82 | if ( funcs ) |
---|
83 | funcs->destroy( (PSH_Globals)size->root.internal ); |
---|
84 | |
---|
85 | size->root.internal = 0; |
---|
86 | } |
---|
87 | } |
---|
88 | |
---|
89 | |
---|
90 | FT_LOCAL_DEF( FT_Error ) |
---|
91 | T1_Size_Init( T1_Size size ) |
---|
92 | { |
---|
93 | FT_Error error = T1_Err_Ok; |
---|
94 | PSH_Globals_Funcs funcs = T1_Size_Get_Globals_Funcs( size ); |
---|
95 | |
---|
96 | |
---|
97 | if ( funcs ) |
---|
98 | { |
---|
99 | PSH_Globals globals; |
---|
100 | T1_Face face = (T1_Face)size->root.face; |
---|
101 | |
---|
102 | |
---|
103 | error = funcs->create( size->root.face->memory, |
---|
104 | &face->type1.private_dict, &globals ); |
---|
105 | if ( !error ) |
---|
106 | size->root.internal = (FT_Size_Internal)(void*)globals; |
---|
107 | } |
---|
108 | |
---|
109 | return error; |
---|
110 | } |
---|
111 | |
---|
112 | |
---|
113 | FT_LOCAL_DEF( FT_Error ) |
---|
114 | T1_Size_Request( T1_Size size, |
---|
115 | FT_Size_Request req ) |
---|
116 | { |
---|
117 | PSH_Globals_Funcs funcs = T1_Size_Get_Globals_Funcs( size ); |
---|
118 | |
---|
119 | |
---|
120 | FT_Request_Metrics( size->root.face, req ); |
---|
121 | |
---|
122 | if ( funcs ) |
---|
123 | funcs->set_scale( (PSH_Globals)size->root.internal, |
---|
124 | size->root.metrics.x_scale, |
---|
125 | size->root.metrics.y_scale, |
---|
126 | 0, 0 ); |
---|
127 | |
---|
128 | return T1_Err_Ok; |
---|
129 | } |
---|
130 | |
---|
131 | |
---|
132 | /*************************************************************************/ |
---|
133 | /* */ |
---|
134 | /* SLOT FUNCTIONS */ |
---|
135 | /* */ |
---|
136 | /*************************************************************************/ |
---|
137 | |
---|
138 | FT_LOCAL_DEF( void ) |
---|
139 | T1_GlyphSlot_Done( T1_GlyphSlot slot ) |
---|
140 | { |
---|
141 | slot->root.internal->glyph_hints = 0; |
---|
142 | } |
---|
143 | |
---|
144 | |
---|
145 | FT_LOCAL_DEF( FT_Error ) |
---|
146 | T1_GlyphSlot_Init( T1_GlyphSlot slot ) |
---|
147 | { |
---|
148 | T1_Face face; |
---|
149 | PSHinter_Service pshinter; |
---|
150 | |
---|
151 | |
---|
152 | face = (T1_Face)slot->root.face; |
---|
153 | pshinter = (PSHinter_Service)face->pshinter; |
---|
154 | |
---|
155 | if ( pshinter ) |
---|
156 | { |
---|
157 | FT_Module module; |
---|
158 | |
---|
159 | |
---|
160 | module = FT_Get_Module( slot->root.face->driver->root.library, "pshinter" ); |
---|
161 | if (module) |
---|
162 | { |
---|
163 | T1_Hints_Funcs funcs; |
---|
164 | |
---|
165 | funcs = pshinter->get_t1_funcs( module ); |
---|
166 | slot->root.internal->glyph_hints = (void*)funcs; |
---|
167 | } |
---|
168 | } |
---|
169 | return 0; |
---|
170 | } |
---|
171 | |
---|
172 | |
---|
173 | /*************************************************************************/ |
---|
174 | /* */ |
---|
175 | /* FACE FUNCTIONS */ |
---|
176 | /* */ |
---|
177 | /*************************************************************************/ |
---|
178 | |
---|
179 | |
---|
180 | /*************************************************************************/ |
---|
181 | /* */ |
---|
182 | /* <Function> */ |
---|
183 | /* T1_Face_Done */ |
---|
184 | /* */ |
---|
185 | /* <Description> */ |
---|
186 | /* The face object destructor. */ |
---|
187 | /* */ |
---|
188 | /* <Input> */ |
---|
189 | /* face :: A typeless pointer to the face object to destroy. */ |
---|
190 | /* */ |
---|
191 | FT_LOCAL_DEF( void ) |
---|
192 | T1_Face_Done( T1_Face face ) |
---|
193 | { |
---|
194 | FT_Memory memory; |
---|
195 | T1_Font type1; |
---|
196 | |
---|
197 | |
---|
198 | if ( !face ) |
---|
199 | return; |
---|
200 | |
---|
201 | memory = face->root.memory; |
---|
202 | type1 = &face->type1; |
---|
203 | |
---|
204 | #ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT |
---|
205 | /* release multiple masters information */ |
---|
206 | FT_ASSERT( ( face->len_buildchar == 0 ) == ( face->buildchar == NULL ) ); |
---|
207 | |
---|
208 | if ( face->buildchar ) |
---|
209 | { |
---|
210 | FT_FREE( face->buildchar ); |
---|
211 | |
---|
212 | face->buildchar = NULL; |
---|
213 | face->len_buildchar = 0; |
---|
214 | } |
---|
215 | |
---|
216 | T1_Done_Blend( face ); |
---|
217 | face->blend = 0; |
---|
218 | #endif |
---|
219 | |
---|
220 | /* release font info strings */ |
---|
221 | { |
---|
222 | PS_FontInfo info = &type1->font_info; |
---|
223 | |
---|
224 | |
---|
225 | FT_FREE( info->version ); |
---|
226 | FT_FREE( info->notice ); |
---|
227 | FT_FREE( info->full_name ); |
---|
228 | FT_FREE( info->family_name ); |
---|
229 | FT_FREE( info->weight ); |
---|
230 | } |
---|
231 | |
---|
232 | /* release top dictionary */ |
---|
233 | FT_FREE( type1->charstrings_len ); |
---|
234 | FT_FREE( type1->charstrings ); |
---|
235 | FT_FREE( type1->glyph_names ); |
---|
236 | |
---|
237 | FT_FREE( type1->subrs ); |
---|
238 | FT_FREE( type1->subrs_len ); |
---|
239 | |
---|
240 | FT_FREE( type1->subrs_block ); |
---|
241 | FT_FREE( type1->charstrings_block ); |
---|
242 | FT_FREE( type1->glyph_names_block ); |
---|
243 | |
---|
244 | FT_FREE( type1->encoding.char_index ); |
---|
245 | FT_FREE( type1->encoding.char_name ); |
---|
246 | FT_FREE( type1->font_name ); |
---|
247 | |
---|
248 | #ifndef T1_CONFIG_OPTION_NO_AFM |
---|
249 | /* release afm data if present */ |
---|
250 | if ( face->afm_data ) |
---|
251 | T1_Done_Metrics( memory, (AFM_FontInfo)face->afm_data ); |
---|
252 | #endif |
---|
253 | |
---|
254 | /* release unicode map, if any */ |
---|
255 | #if 0 |
---|
256 | FT_FREE( face->unicode_map_rec.maps ); |
---|
257 | face->unicode_map_rec.num_maps = 0; |
---|
258 | face->unicode_map = NULL; |
---|
259 | #endif |
---|
260 | |
---|
261 | face->root.family_name = NULL; |
---|
262 | face->root.style_name = NULL; |
---|
263 | } |
---|
264 | |
---|
265 | |
---|
266 | /*************************************************************************/ |
---|
267 | /* */ |
---|
268 | /* <Function> */ |
---|
269 | /* T1_Face_Init */ |
---|
270 | /* */ |
---|
271 | /* <Description> */ |
---|
272 | /* The face object constructor. */ |
---|
273 | /* */ |
---|
274 | /* <Input> */ |
---|
275 | /* stream :: input stream where to load font data. */ |
---|
276 | /* */ |
---|
277 | /* face_index :: The index of the font face in the resource. */ |
---|
278 | /* */ |
---|
279 | /* num_params :: Number of additional generic parameters. Ignored. */ |
---|
280 | /* */ |
---|
281 | /* params :: Additional generic parameters. Ignored. */ |
---|
282 | /* */ |
---|
283 | /* <InOut> */ |
---|
284 | /* face :: The face record to build. */ |
---|
285 | /* */ |
---|
286 | /* <Return> */ |
---|
287 | /* FreeType error code. 0 means success. */ |
---|
288 | /* */ |
---|
289 | FT_LOCAL_DEF( FT_Error ) |
---|
290 | T1_Face_Init( FT_Stream stream, |
---|
291 | T1_Face face, |
---|
292 | FT_Int face_index, |
---|
293 | FT_Int num_params, |
---|
294 | FT_Parameter* params ) |
---|
295 | { |
---|
296 | FT_Error error; |
---|
297 | FT_Service_PsCMaps psnames; |
---|
298 | PSAux_Service psaux; |
---|
299 | T1_Font type1 = &face->type1; |
---|
300 | PS_FontInfo info = &type1->font_info; |
---|
301 | |
---|
302 | FT_UNUSED( num_params ); |
---|
303 | FT_UNUSED( params ); |
---|
304 | FT_UNUSED( stream ); |
---|
305 | |
---|
306 | |
---|
307 | face->root.num_faces = 1; |
---|
308 | |
---|
309 | FT_FACE_FIND_GLOBAL_SERVICE( face, psnames, POSTSCRIPT_CMAPS ); |
---|
310 | face->psnames = psnames; |
---|
311 | |
---|
312 | face->psaux = FT_Get_Module_Interface( FT_FACE_LIBRARY( face ), |
---|
313 | "psaux" ); |
---|
314 | psaux = (PSAux_Service)face->psaux; |
---|
315 | |
---|
316 | face->pshinter = FT_Get_Module_Interface( FT_FACE_LIBRARY( face ), |
---|
317 | "pshinter" ); |
---|
318 | |
---|
319 | /* open the tokenizer; this will also check the font format */ |
---|
320 | error = T1_Open_Face( face ); |
---|
321 | if ( error ) |
---|
322 | goto Exit; |
---|
323 | |
---|
324 | /* if we just wanted to check the format, leave successfully now */ |
---|
325 | if ( face_index < 0 ) |
---|
326 | goto Exit; |
---|
327 | |
---|
328 | /* check the face index */ |
---|
329 | if ( face_index > 0 ) |
---|
330 | { |
---|
331 | FT_ERROR(( "T1_Face_Init: invalid face index\n" )); |
---|
332 | error = T1_Err_Invalid_Argument; |
---|
333 | goto Exit; |
---|
334 | } |
---|
335 | |
---|
336 | /* now load the font program into the face object */ |
---|
337 | |
---|
338 | /* initialize the face object fields */ |
---|
339 | |
---|
340 | /* set up root face fields */ |
---|
341 | { |
---|
342 | FT_Face root = (FT_Face)&face->root; |
---|
343 | |
---|
344 | |
---|
345 | root->num_glyphs = type1->num_glyphs; |
---|
346 | root->face_index = 0; |
---|
347 | |
---|
348 | root->face_flags = FT_FACE_FLAG_SCALABLE | |
---|
349 | FT_FACE_FLAG_HORIZONTAL | |
---|
350 | FT_FACE_FLAG_GLYPH_NAMES | |
---|
351 | FT_FACE_FLAG_HINTER; |
---|
352 | |
---|
353 | if ( info->is_fixed_pitch ) |
---|
354 | root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH; |
---|
355 | |
---|
356 | if ( face->blend ) |
---|
357 | root->face_flags |= FT_FACE_FLAG_MULTIPLE_MASTERS; |
---|
358 | |
---|
359 | /* XXX: TODO -- add kerning with .afm support */ |
---|
360 | |
---|
361 | |
---|
362 | /* The following code to extract the family and the style is very */ |
---|
363 | /* simplistic and might get some things wrong. For a full-featured */ |
---|
364 | /* algorithm you might have a look at the whitepaper given at */ |
---|
365 | /* */ |
---|
366 | /* http://blogs.msdn.com/text/archive/2007/04/23/wpf-font-selection-model.aspx */ |
---|
367 | |
---|
368 | /* get style name -- be careful, some broken fonts only */ |
---|
369 | /* have a `/FontName' dictionary entry! */ |
---|
370 | root->family_name = info->family_name; |
---|
371 | root->style_name = NULL; |
---|
372 | |
---|
373 | if ( root->family_name ) |
---|
374 | { |
---|
375 | char* full = info->full_name; |
---|
376 | char* family = root->family_name; |
---|
377 | |
---|
378 | |
---|
379 | if ( full ) |
---|
380 | { |
---|
381 | FT_Bool the_same = TRUE; |
---|
382 | |
---|
383 | |
---|
384 | while ( *full ) |
---|
385 | { |
---|
386 | if ( *full == *family ) |
---|
387 | { |
---|
388 | family++; |
---|
389 | full++; |
---|
390 | } |
---|
391 | else |
---|
392 | { |
---|
393 | if ( *full == ' ' || *full == '-' ) |
---|
394 | full++; |
---|
395 | else if ( *family == ' ' || *family == '-' ) |
---|
396 | family++; |
---|
397 | else |
---|
398 | { |
---|
399 | the_same = FALSE; |
---|
400 | |
---|
401 | if ( !*family ) |
---|
402 | root->style_name = full; |
---|
403 | break; |
---|
404 | } |
---|
405 | } |
---|
406 | } |
---|
407 | |
---|
408 | if ( the_same ) |
---|
409 | root->style_name = (char *)"Regular"; |
---|
410 | } |
---|
411 | } |
---|
412 | else |
---|
413 | { |
---|
414 | /* do we have a `/FontName'? */ |
---|
415 | if ( type1->font_name ) |
---|
416 | root->family_name = type1->font_name; |
---|
417 | } |
---|
418 | |
---|
419 | if ( !root->style_name ) |
---|
420 | { |
---|
421 | if ( info->weight ) |
---|
422 | root->style_name = info->weight; |
---|
423 | else |
---|
424 | /* assume `Regular' style because we don't know better */ |
---|
425 | root->style_name = (char *)"Regular"; |
---|
426 | } |
---|
427 | |
---|
428 | /* compute style flags */ |
---|
429 | root->style_flags = 0; |
---|
430 | if ( info->italic_angle ) |
---|
431 | root->style_flags |= FT_STYLE_FLAG_ITALIC; |
---|
432 | if ( info->weight ) |
---|
433 | { |
---|
434 | if ( !ft_strcmp( info->weight, "Bold" ) || |
---|
435 | !ft_strcmp( info->weight, "Black" ) ) |
---|
436 | root->style_flags |= FT_STYLE_FLAG_BOLD; |
---|
437 | } |
---|
438 | |
---|
439 | /* no embedded bitmap support */ |
---|
440 | root->num_fixed_sizes = 0; |
---|
441 | root->available_sizes = 0; |
---|
442 | |
---|
443 | root->bbox.xMin = type1->font_bbox.xMin >> 16; |
---|
444 | root->bbox.yMin = type1->font_bbox.yMin >> 16; |
---|
445 | root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFFU ) >> 16; |
---|
446 | root->bbox.yMax = ( type1->font_bbox.yMax + 0xFFFFU ) >> 16; |
---|
447 | |
---|
448 | /* Set units_per_EM if we didn't set it in parse_font_matrix. */ |
---|
449 | if ( !root->units_per_EM ) |
---|
450 | root->units_per_EM = 1000; |
---|
451 | |
---|
452 | root->ascender = (FT_Short)( root->bbox.yMax ); |
---|
453 | root->descender = (FT_Short)( root->bbox.yMin ); |
---|
454 | |
---|
455 | root->height = (FT_Short)( ( root->units_per_EM * 12 ) / 10 ); |
---|
456 | if ( root->height < root->ascender - root->descender ) |
---|
457 | root->height = (FT_Short)( root->ascender - root->descender ); |
---|
458 | |
---|
459 | /* now compute the maximum advance width */ |
---|
460 | root->max_advance_width = |
---|
461 | (FT_Short)( root->bbox.xMax ); |
---|
462 | { |
---|
463 | FT_Pos max_advance; |
---|
464 | |
---|
465 | |
---|
466 | error = T1_Compute_Max_Advance( face, &max_advance ); |
---|
467 | |
---|
468 | /* in case of error, keep the standard width */ |
---|
469 | if ( !error ) |
---|
470 | root->max_advance_width = (FT_Short)max_advance; |
---|
471 | else |
---|
472 | error = T1_Err_Ok; /* clear error */ |
---|
473 | } |
---|
474 | |
---|
475 | root->max_advance_height = root->height; |
---|
476 | |
---|
477 | root->underline_position = (FT_Short)info->underline_position; |
---|
478 | root->underline_thickness = (FT_Short)info->underline_thickness; |
---|
479 | } |
---|
480 | |
---|
481 | { |
---|
482 | FT_Face root = &face->root; |
---|
483 | |
---|
484 | |
---|
485 | if ( psnames && psaux ) |
---|
486 | { |
---|
487 | FT_CharMapRec charmap; |
---|
488 | T1_CMap_Classes cmap_classes = psaux->t1_cmap_classes; |
---|
489 | FT_CMap_Class clazz; |
---|
490 | |
---|
491 | |
---|
492 | charmap.face = root; |
---|
493 | |
---|
494 | /* first of all, try to synthesize a Unicode charmap */ |
---|
495 | charmap.platform_id = 3; |
---|
496 | charmap.encoding_id = 1; |
---|
497 | charmap.encoding = FT_ENCODING_UNICODE; |
---|
498 | |
---|
499 | FT_CMap_New( cmap_classes->unicode, NULL, &charmap, NULL ); |
---|
500 | |
---|
501 | /* now, generate an Adobe Standard encoding when appropriate */ |
---|
502 | charmap.platform_id = 7; |
---|
503 | clazz = NULL; |
---|
504 | |
---|
505 | switch ( type1->encoding_type ) |
---|
506 | { |
---|
507 | case T1_ENCODING_TYPE_STANDARD: |
---|
508 | charmap.encoding = FT_ENCODING_ADOBE_STANDARD; |
---|
509 | charmap.encoding_id = TT_ADOBE_ID_STANDARD; |
---|
510 | clazz = cmap_classes->standard; |
---|
511 | break; |
---|
512 | |
---|
513 | case T1_ENCODING_TYPE_EXPERT: |
---|
514 | charmap.encoding = FT_ENCODING_ADOBE_EXPERT; |
---|
515 | charmap.encoding_id = TT_ADOBE_ID_EXPERT; |
---|
516 | clazz = cmap_classes->expert; |
---|
517 | break; |
---|
518 | |
---|
519 | case T1_ENCODING_TYPE_ARRAY: |
---|
520 | charmap.encoding = FT_ENCODING_ADOBE_CUSTOM; |
---|
521 | charmap.encoding_id = TT_ADOBE_ID_CUSTOM; |
---|
522 | clazz = cmap_classes->custom; |
---|
523 | break; |
---|
524 | |
---|
525 | case T1_ENCODING_TYPE_ISOLATIN1: |
---|
526 | charmap.encoding = FT_ENCODING_ADOBE_LATIN_1; |
---|
527 | charmap.encoding_id = TT_ADOBE_ID_LATIN_1; |
---|
528 | clazz = cmap_classes->unicode; |
---|
529 | break; |
---|
530 | |
---|
531 | default: |
---|
532 | ; |
---|
533 | } |
---|
534 | |
---|
535 | if ( clazz ) |
---|
536 | FT_CMap_New( clazz, NULL, &charmap, NULL ); |
---|
537 | |
---|
538 | #if 0 |
---|
539 | /* Select default charmap */ |
---|
540 | if (root->num_charmaps) |
---|
541 | root->charmap = root->charmaps[0]; |
---|
542 | #endif |
---|
543 | } |
---|
544 | } |
---|
545 | |
---|
546 | Exit: |
---|
547 | return error; |
---|
548 | } |
---|
549 | |
---|
550 | |
---|
551 | /*************************************************************************/ |
---|
552 | /* */ |
---|
553 | /* <Function> */ |
---|
554 | /* T1_Driver_Init */ |
---|
555 | /* */ |
---|
556 | /* <Description> */ |
---|
557 | /* Initializes a given Type 1 driver object. */ |
---|
558 | /* */ |
---|
559 | /* <Input> */ |
---|
560 | /* driver :: A handle to the target driver object. */ |
---|
561 | /* */ |
---|
562 | /* <Return> */ |
---|
563 | /* FreeType error code. 0 means success. */ |
---|
564 | /* */ |
---|
565 | FT_LOCAL_DEF( FT_Error ) |
---|
566 | T1_Driver_Init( T1_Driver driver ) |
---|
567 | { |
---|
568 | FT_UNUSED( driver ); |
---|
569 | |
---|
570 | return T1_Err_Ok; |
---|
571 | } |
---|
572 | |
---|
573 | |
---|
574 | /*************************************************************************/ |
---|
575 | /* */ |
---|
576 | /* <Function> */ |
---|
577 | /* T1_Driver_Done */ |
---|
578 | /* */ |
---|
579 | /* <Description> */ |
---|
580 | /* Finalizes a given Type 1 driver. */ |
---|
581 | /* */ |
---|
582 | /* <Input> */ |
---|
583 | /* driver :: A handle to the target Type 1 driver. */ |
---|
584 | /* */ |
---|
585 | FT_LOCAL_DEF( void ) |
---|
586 | T1_Driver_Done( T1_Driver driver ) |
---|
587 | { |
---|
588 | FT_UNUSED( driver ); |
---|
589 | } |
---|
590 | |
---|
591 | |
---|
592 | /* END */ |
---|