OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* cidobjs.c */ | 3 /* cidobjs.c */ |
4 /* */ | 4 /* */ |
5 /* CID objects manager (body). */ | 5 /* CID objects manager (body). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 1996-2006, 2008, 2010-2011, 2013 by */ | 7 /* Copyright 1996-2006, 2008, 2010-2011, 2013 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 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 */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
18 | 18 |
19 #include "../../include/ft2build.h" | 19 #include <ft2build.h> |
20 #include "../../include/freetype/internal/ftdebug.h" | 20 #include FT_INTERNAL_DEBUG_H |
21 #include "../../include/freetype/internal/ftstream.h" | 21 #include FT_INTERNAL_STREAM_H |
22 | 22 |
23 #include "cidgload.h" | 23 #include "cidgload.h" |
24 #include "cidload.h" | 24 #include "cidload.h" |
25 | 25 |
26 #include "../../include/freetype/internal/services/svpscmap.h" | 26 #include FT_SERVICE_POSTSCRIPT_CMAPS_H |
27 #include "../../include/freetype/internal/psaux.h" | 27 #include FT_INTERNAL_POSTSCRIPT_AUX_H |
28 #include "../../include/freetype/internal/pshints.h" | 28 #include FT_INTERNAL_POSTSCRIPT_HINTS_H |
29 | 29 |
30 #include "ciderrs.h" | 30 #include "ciderrs.h" |
31 | 31 |
32 | 32 |
33 /*************************************************************************/ | 33 /*************************************************************************/ |
34 /* */ | 34 /* */ |
35 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */ | 35 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */ |
36 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */ | 36 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */ |
37 /* messages during execution. */ | 37 /* messages during execution. */ |
38 /* */ | 38 /* */ |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 /* set up root face fields */ | 348 /* set up root face fields */ |
349 { | 349 { |
350 CID_FaceInfo cid = &face->cid; | 350 CID_FaceInfo cid = &face->cid; |
351 PS_FontInfo info = &cid->font_info; | 351 PS_FontInfo info = &cid->font_info; |
352 | 352 |
353 | 353 |
354 cidface->num_glyphs = cid->cid_count; | 354 cidface->num_glyphs = cid->cid_count; |
355 cidface->num_charmaps = 0; | 355 cidface->num_charmaps = 0; |
356 | 356 |
357 cidface->face_index = face_index; | 357 cidface->face_index = face_index; |
358 cidface->face_flags = FT_FACE_FLAG_SCALABLE | /* scalable outlines */ | 358 |
359 FT_FACE_FLAG_HORIZONTAL | /* horizontal data */ | 359 cidface->face_flags |= FT_FACE_FLAG_SCALABLE | /* scalable outlines */ |
360 FT_FACE_FLAG_HINTER; /* has native hinter */ | 360 FT_FACE_FLAG_HORIZONTAL | /* horizontal data */ |
| 361 FT_FACE_FLAG_HINTER; /* has native hinter */ |
361 | 362 |
362 if ( info->is_fixed_pitch ) | 363 if ( info->is_fixed_pitch ) |
363 cidface->face_flags |= FT_FACE_FLAG_FIXED_WIDTH; | 364 cidface->face_flags |= FT_FACE_FLAG_FIXED_WIDTH; |
364 | 365 |
365 /* XXX: TODO: add kerning with .afm support */ | 366 /* XXX: TODO: add kerning with .afm support */ |
366 | 367 |
367 /* get style name -- be careful, some broken fonts only */ | 368 /* get style name -- be careful, some broken fonts only */ |
368 /* have a /FontName dictionary entry! */ | 369 /* have a /FontName dictionary entry! */ |
369 cidface->family_name = info->family_name; | 370 cidface->family_name = info->family_name; |
370 /* assume "Regular" style if we don't know better */ | 371 /* assume "Regular" style if we don't know better */ |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 /* driver :: A handle to the target CID driver. */ | 483 /* driver :: A handle to the target CID driver. */ |
483 /* */ | 484 /* */ |
484 FT_LOCAL_DEF( void ) | 485 FT_LOCAL_DEF( void ) |
485 cid_driver_done( FT_Module driver ) | 486 cid_driver_done( FT_Module driver ) |
486 { | 487 { |
487 FT_UNUSED( driver ); | 488 FT_UNUSED( driver ); |
488 } | 489 } |
489 | 490 |
490 | 491 |
491 /* END */ | 492 /* END */ |
OLD | NEW |