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

Side by Side Diff: src/autofit/aflatin.h

Issue 89753003: Update freetype to latest version of ASOP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 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 | « src/autofit/afindic.c ('k') | src/autofit/aflatin.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 /* aflatin.h */ 3 /* aflatin.h */
4 /* */ 4 /* */
5 /* Auto-fitter hinting routines for latin script (specification). */ 5 /* Auto-fitter hinting routines for latin script (specification). */
6 /* */ 6 /* */
7 /* Copyright 2003-2007, 2009, 2011 by */ 7 /* Copyright 2003-2007, 2009, 2011-2012 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 #ifndef __AFLATIN_H__ 19 #ifndef __AFLATIN_H__
20 #define __AFLATIN_H__ 20 #define __AFLATIN_H__
21 21
22 #include "afhints.h" 22 #include "afhints.h"
23 23
24 24
25 FT_BEGIN_HEADER 25 FT_BEGIN_HEADER
26 26
27 27
28 /* the latin-specific script class */ 28 /* the latin-specific script class */
29 29
30 AF_DECLARE_SCRIPT_CLASS(af_latin_script_class) 30 AF_DECLARE_SCRIPT_CLASS( af_latin_script_class )
31 31
32 32
33 /* constants are given with units_per_em == 2048 in mind */ 33 /* constants are given with units_per_em == 2048 in mind */
34 #define AF_LATIN_CONSTANT( metrics, c ) \ 34 #define AF_LATIN_CONSTANT( metrics, c ) \
35 ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 ) 35 ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )
36 36
37 37
38 /*************************************************************************/ 38 /*************************************************************************/
39 /*************************************************************************/ 39 /*************************************************************************/
40 /***** *****/ 40 /***** *****/
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 FT_LOCAL( FT_Error ) 126 FT_LOCAL( FT_Error )
127 af_latin_metrics_init( AF_LatinMetrics metrics, 127 af_latin_metrics_init( AF_LatinMetrics metrics,
128 FT_Face face ); 128 FT_Face face );
129 129
130 FT_LOCAL( void ) 130 FT_LOCAL( void )
131 af_latin_metrics_scale( AF_LatinMetrics metrics, 131 af_latin_metrics_scale( AF_LatinMetrics metrics,
132 AF_Scaler scaler ); 132 AF_Scaler scaler );
133 133
134 FT_LOCAL( void ) 134 FT_LOCAL( void )
135 af_latin_metrics_init_widths( AF_LatinMetrics metrics, 135 af_latin_metrics_init_widths( AF_LatinMetrics metrics,
136 FT_Face face, 136 FT_Face face );
137 FT_ULong charcode );
138 137
139 FT_LOCAL( void ) 138 FT_LOCAL( void )
140 af_latin_metrics_check_digits( AF_LatinMetrics metrics, 139 af_latin_metrics_check_digits( AF_LatinMetrics metrics,
141 FT_Face face ); 140 FT_Face face );
142 141
143 142
144 /*************************************************************************/ 143 /*************************************************************************/
145 /*************************************************************************/ 144 /*************************************************************************/
146 /***** *****/ 145 /***** *****/
147 /***** L A T I N G L Y P H A N A L Y S I S *****/ 146 /***** L A T I N G L Y P H A N A L Y S I S *****/
(...skipping 19 matching lines...) Expand all
167 AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_VERT_SNAP ) 166 AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_VERT_SNAP )
168 167
169 #define AF_LATIN_HINTS_DO_STEM_ADJUST( h ) \ 168 #define AF_LATIN_HINTS_DO_STEM_ADJUST( h ) \
170 AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_STEM_ADJUST ) 169 AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_STEM_ADJUST )
171 170
172 #define AF_LATIN_HINTS_DO_MONO( h ) \ 171 #define AF_LATIN_HINTS_DO_MONO( h ) \
173 AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_MONO ) 172 AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_MONO )
174 173
175 174
176 /* 175 /*
177 * This shouldn't normally be exported. However, other scripts might 176 * The next functions shouldn't normally be exported. However, other
178 * like to use this function as-is. 177 * scripts might like to use these functions as-is.
179 */ 178 */
180 FT_LOCAL( FT_Error ) 179 FT_LOCAL( FT_Error )
181 af_latin_hints_compute_segments( AF_GlyphHints hints, 180 af_latin_hints_compute_segments( AF_GlyphHints hints,
182 AF_Dimension dim ); 181 AF_Dimension dim );
183 182
184 /*
185 * This shouldn't normally be exported. However, other scripts might
186 * want to use this function as-is.
187 */
188 FT_LOCAL( void ) 183 FT_LOCAL( void )
189 af_latin_hints_link_segments( AF_GlyphHints hints, 184 af_latin_hints_link_segments( AF_GlyphHints hints,
190 AF_Dimension dim ); 185 AF_Dimension dim );
191 186
192 /*
193 * This shouldn't normally be exported. However, other scripts might
194 * want to use this function as-is.
195 */
196 FT_LOCAL( FT_Error ) 187 FT_LOCAL( FT_Error )
197 af_latin_hints_compute_edges( AF_GlyphHints hints, 188 af_latin_hints_compute_edges( AF_GlyphHints hints,
198 AF_Dimension dim ); 189 AF_Dimension dim );
199 190
200 FT_LOCAL( FT_Error ) 191 FT_LOCAL( FT_Error )
201 af_latin_hints_detect_features( AF_GlyphHints hints, 192 af_latin_hints_detect_features( AF_GlyphHints hints,
202 AF_Dimension dim ); 193 AF_Dimension dim );
203 194
204 /* */ 195 /* */
205 196
206 FT_END_HEADER 197 FT_END_HEADER
207 198
208 #endif /* __AFLATIN_H__ */ 199 #endif /* __AFLATIN_H__ */
209 200
210 201
211 /* END */ 202 /* END */
OLDNEW
« no previous file with comments | « src/autofit/afindic.c ('k') | src/autofit/aflatin.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698