Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: third_party/freetype/src/type1/t1driver.c

Issue 815103002: Update freetype to 2.5.4. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Adjust GYP and GN Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/freetype/src/type1/t1driver.h ('k') | third_party/freetype/src/type1/t1errors.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* t1driver.c */ 3 /* t1driver.c */
4 /* */ 4 /* */
5 /* Type 1 driver interface (body). */ 5 /* Type 1 driver interface (body). */
6 /* */ 6 /* */
7 /* Copyright 1996-2004, 2006, 2007, 2009, 2011, 2013 by */ 7 /* Copyright 1996-2004, 2006, 2007, 2009, 2011, 2013, 2014 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 "t1driver.h" 20 #include "t1driver.h"
21 #include "t1gload.h" 21 #include "t1gload.h"
22 #include "t1load.h" 22 #include "t1load.h"
23 23
24 #include "t1errors.h" 24 #include "t1errors.h"
25 25
26 #ifndef T1_CONFIG_OPTION_NO_AFM 26 #ifndef T1_CONFIG_OPTION_NO_AFM
27 #include "t1afm.h" 27 #include "t1afm.h"
28 #endif 28 #endif
29 29
30 #include "../../include/freetype/internal/ftdebug.h" 30 #include FT_INTERNAL_DEBUG_H
31 #include "../../include/freetype/internal/ftstream.h" 31 #include FT_INTERNAL_STREAM_H
32 32
33 #include "../../include/freetype/internal/services/svmm.h" 33 #include FT_SERVICE_MULTIPLE_MASTERS_H
34 #include "../../include/freetype/internal/services/svgldict.h" 34 #include FT_SERVICE_GLYPH_DICT_H
35 #include "../../include/freetype/internal/services/svxf86nm.h" 35 #include FT_SERVICE_XFREE86_NAME_H
36 #include "../../include/freetype/internal/services/svpostnm.h" 36 #include FT_SERVICE_POSTSCRIPT_NAME_H
37 #include "../../include/freetype/internal/services/svpscmap.h" 37 #include FT_SERVICE_POSTSCRIPT_CMAPS_H
38 #include "../../include/freetype/internal/services/svpsinfo.h" 38 #include FT_SERVICE_POSTSCRIPT_INFO_H
39 #include "../../include/freetype/internal/services/svkern.h" 39 #include FT_SERVICE_KERNING_H
40 40
41 41
42 /*************************************************************************/ 42 /*************************************************************************/
43 /* */ 43 /* */
44 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */ 44 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
45 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */ 45 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
46 /* messages during execution. */ 46 /* messages during execution. */
47 /* */ 47 /* */
48 #undef FT_COMPONENT 48 #undef FT_COMPONENT
49 #define FT_COMPONENT trace_t1driver 49 #define FT_COMPONENT trace_t1driver
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 retval = (FT_Long)( ft_strlen( type1->font_info.weight ) + 1 ); 550 retval = (FT_Long)( ft_strlen( type1->font_info.weight ) + 1 );
551 if ( value && value_len >= retval ) 551 if ( value && value_len >= retval )
552 ft_memcpy( value, (void *)( type1->font_info.weight ), retval ); 552 ft_memcpy( value, (void *)( type1->font_info.weight ), retval );
553 break; 553 break;
554 554
555 case PS_DICT_ITALIC_ANGLE: 555 case PS_DICT_ITALIC_ANGLE:
556 retval = sizeof ( type1->font_info.italic_angle ); 556 retval = sizeof ( type1->font_info.italic_angle );
557 if ( value && value_len >= retval ) 557 if ( value && value_len >= retval )
558 *((FT_Long *)value) = type1->font_info.italic_angle; 558 *((FT_Long *)value) = type1->font_info.italic_angle;
559 break; 559 break;
560
561 default:
562 break;
563 } 560 }
564 561
565 return retval; 562 return retval;
566 } 563 }
567 564
568 565
569 static const FT_Service_PsInfoRec t1_service_ps_info = 566 static const FT_Service_PsInfoRec t1_service_ps_info =
570 { 567 {
571 (PS_GetFontInfoFunc) t1_ps_get_font_info, 568 (PS_GetFontInfoFunc) t1_ps_get_font_info,
572 (PS_GetFontExtraFunc) t1_ps_get_font_extra, 569 (PS_GetFontExtraFunc) t1_ps_get_font_extra,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 Get_Kerning, 714 Get_Kerning,
718 T1_Read_Metrics, 715 T1_Read_Metrics,
719 #endif 716 #endif
720 T1_Get_Advances, 717 T1_Get_Advances,
721 T1_Size_Request, 718 T1_Size_Request,
722 0 /* FT_Size_SelectFunc */ 719 0 /* FT_Size_SelectFunc */
723 }; 720 };
724 721
725 722
726 /* END */ 723 /* END */
OLDNEW
« no previous file with comments | « third_party/freetype/src/type1/t1driver.h ('k') | third_party/freetype/src/type1/t1errors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698