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

Side by Side Diff: third_party/freetype/src/sfnt/sfntpic.h

Issue 1413673003: Update bundled freetype to 2.6.1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: DEPS for corpus Created 5 years, 1 month 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/sfnt/sfnt.c ('k') | third_party/freetype/src/sfnt/sfntpic.c » ('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 /* sfntpic.h */ 3 /* sfntpic.h */
4 /* */ 4 /* */
5 /* The FreeType position independent code services for sfnt module. */ 5 /* The FreeType position independent code services for sfnt module. */
6 /* */ 6 /* */
7 /* Copyright 2009, 2012 by */ 7 /* Copyright 2009-2015 by */
8 /* Oran Agra and Mickey Gabel. */ 8 /* Oran Agra and Mickey Gabel. */
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 #ifndef __SFNTPIC_H__ 19 #ifndef __SFNTPIC_H__
20 #define __SFNTPIC_H__ 20 #define __SFNTPIC_H__
21 21
22 22
23 FT_BEGIN_HEADER
24
25 #include FT_INTERNAL_PIC_H 23 #include FT_INTERNAL_PIC_H
26 24
27 25
28 #ifndef FT_CONFIG_OPTION_PIC 26 #ifndef FT_CONFIG_OPTION_PIC
29 27
30 #define SFNT_SERVICES_GET sfnt_services 28 #define SFNT_SERVICES_GET sfnt_services
31 #define SFNT_SERVICE_GLYPH_DICT_GET sfnt_service_glyph_dict 29 #define SFNT_SERVICE_GLYPH_DICT_GET sfnt_service_glyph_dict
32 #define SFNT_SERVICE_PS_NAME_GET sfnt_service_ps_name 30 #define SFNT_SERVICE_PS_NAME_GET sfnt_service_ps_name
33 #define TT_SERVICE_CMAP_INFO_GET tt_service_get_cmap_info 31 #define TT_SERVICE_CMAP_INFO_GET tt_service_get_cmap_info
34 #define SFNT_SERVICES_GET sfnt_services
35 #define TT_CMAP_CLASSES_GET tt_cmap_classes 32 #define TT_CMAP_CLASSES_GET tt_cmap_classes
36 #define SFNT_SERVICE_SFNT_TABLE_GET sfnt_service_sfnt_table 33 #define SFNT_SERVICE_SFNT_TABLE_GET sfnt_service_sfnt_table
37 #define SFNT_SERVICE_BDF_GET sfnt_service_bdf 34 #define SFNT_SERVICE_BDF_GET sfnt_service_bdf
38 #define SFNT_INTERFACE_GET sfnt_interface 35 #define SFNT_INTERFACE_GET sfnt_interface
39 36
40 #else /* FT_CONFIG_OPTION_PIC */ 37 #else /* FT_CONFIG_OPTION_PIC */
41 38
42 /* some include files required for members of sfntModulePIC */ 39 /* some include files required for members of sfntModulePIC */
43 #include FT_SERVICE_GLYPH_DICT_H 40 #include FT_SERVICE_GLYPH_DICT_H
44 #include FT_SERVICE_POSTSCRIPT_NAME_H 41 #include FT_SERVICE_POSTSCRIPT_NAME_H
45 #include FT_SERVICE_SFNT_H 42 #include FT_SERVICE_SFNT_H
46 #include FT_SERVICE_TT_CMAP_H 43 #include FT_SERVICE_TT_CMAP_H
47 44
48 #ifdef TT_CONFIG_OPTION_BDF 45 #ifdef TT_CONFIG_OPTION_BDF
49 #include "ttbdf.h" 46 #include "ttbdf.h"
50 #include FT_SERVICE_BDF_H 47 #include FT_SERVICE_BDF_H
51 #endif 48 #endif
52 49
53 #include FT_INTERNAL_DEBUG_H 50 #include FT_INTERNAL_DEBUG_H
54 #include FT_INTERNAL_STREAM_H 51 #include FT_INTERNAL_STREAM_H
55 #include FT_INTERNAL_SFNT_H 52 #include FT_INTERNAL_SFNT_H
56 #include "ttcmap.h" 53 #include "ttcmap.h"
57 54
58 55
56 FT_BEGIN_HEADER
57
59 typedef struct sfntModulePIC_ 58 typedef struct sfntModulePIC_
60 { 59 {
61 FT_ServiceDescRec* sfnt_services; 60 FT_ServiceDescRec* sfnt_services;
62 FT_Service_GlyphDictRec sfnt_service_glyph_dict; 61 FT_Service_GlyphDictRec sfnt_service_glyph_dict;
63 FT_Service_PsFontNameRec sfnt_service_ps_name; 62 FT_Service_PsFontNameRec sfnt_service_ps_name;
64 FT_Service_TTCMapsRec tt_service_get_cmap_info; 63 FT_Service_TTCMapsRec tt_service_get_cmap_info;
65 TT_CMap_Class* tt_cmap_classes; 64 TT_CMap_Class* tt_cmap_classes;
66 FT_Service_SFNT_TableRec sfnt_service_sfnt_table; 65 FT_Service_SFNT_TableRec sfnt_service_sfnt_table;
67 #ifdef TT_CONFIG_OPTION_BDF 66 #ifdef TT_CONFIG_OPTION_BDF
68 FT_Service_BDFRec sfnt_service_bdf; 67 FT_Service_BDFRec sfnt_service_bdf;
69 #endif 68 #endif
70 SFNT_Interface sfnt_interface; 69 SFNT_Interface sfnt_interface;
71 70
72 } sfntModulePIC; 71 } sfntModulePIC;
73 72
74 73
75 #define GET_PIC( lib ) \ 74 #define GET_PIC( lib ) \
76 ( (sfntModulePIC*)( (lib)->pic_container.sfnt ) ) 75 ( (sfntModulePIC*)( (lib)->pic_container.sfnt ) )
77 76
78 #define SFNT_SERVICES_GET \ 77 #define SFNT_SERVICES_GET \
79 ( GET_PIC( library )->sfnt_services ) 78 ( GET_PIC( library )->sfnt_services )
80 #define SFNT_SERVICE_GLYPH_DICT_GET \ 79 #define SFNT_SERVICE_GLYPH_DICT_GET \
81 ( GET_PIC( library )->sfnt_service_glyph_dict ) 80 ( GET_PIC( library )->sfnt_service_glyph_dict )
82 #define SFNT_SERVICE_PS_NAME_GET \ 81 #define SFNT_SERVICE_PS_NAME_GET \
83 ( GET_PIC( library )->sfnt_service_ps_name ) 82 ( GET_PIC( library )->sfnt_service_ps_name )
84 #define TT_SERVICE_CMAP_INFO_GET \ 83 #define TT_SERVICE_CMAP_INFO_GET \
85 ( GET_PIC( library )->tt_service_get_cmap_info ) 84 ( GET_PIC( library )->tt_service_get_cmap_info )
86 #define SFNT_SERVICES_GET \
87 ( GET_PIC( library )->sfnt_services )
88 #define TT_CMAP_CLASSES_GET \ 85 #define TT_CMAP_CLASSES_GET \
89 ( GET_PIC( library )->tt_cmap_classes ) 86 ( GET_PIC( library )->tt_cmap_classes )
90 #define SFNT_SERVICE_SFNT_TABLE_GET \ 87 #define SFNT_SERVICE_SFNT_TABLE_GET \
91 ( GET_PIC( library )->sfnt_service_sfnt_table ) 88 ( GET_PIC( library )->sfnt_service_sfnt_table )
92 #define SFNT_SERVICE_BDF_GET \ 89 #define SFNT_SERVICE_BDF_GET \
93 ( GET_PIC( library )->sfnt_service_bdf ) 90 ( GET_PIC( library )->sfnt_service_bdf )
94 #define SFNT_INTERFACE_GET \ 91 #define SFNT_INTERFACE_GET \
95 ( GET_PIC( library )->sfnt_interface ) 92 ( GET_PIC( library )->sfnt_interface )
96 93
97 94
98 /* see sfntpic.c for the implementation */ 95 /* see sfntpic.c for the implementation */
99 void 96 void
100 sfnt_module_class_pic_free( FT_Library library ); 97 sfnt_module_class_pic_free( FT_Library library );
101 98
102 FT_Error 99 FT_Error
103 sfnt_module_class_pic_init( FT_Library library ); 100 sfnt_module_class_pic_init( FT_Library library );
104 101
102
103 FT_END_HEADER
104
105 #endif /* FT_CONFIG_OPTION_PIC */ 105 #endif /* FT_CONFIG_OPTION_PIC */
106 106
107 /* */ 107 /* */
108 108
109 FT_END_HEADER
110
111 #endif /* __SFNTPIC_H__ */ 109 #endif /* __SFNTPIC_H__ */
112 110
113 111
114 /* END */ 112 /* END */
OLDNEW
« no previous file with comments | « third_party/freetype/src/sfnt/sfnt.c ('k') | third_party/freetype/src/sfnt/sfntpic.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698