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

Side by Side Diff: src/psaux/t1cmap.c

Issue 23555005: Update freetype to the latest version of Android external/freetype (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 years, 3 months 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/psaux/psobjs.c ('k') | src/psaux/t1decode.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 /* t1cmap.c */ 3 /* t1cmap.c */
4 /* */ 4 /* */
5 /* Type 1 character map support (body). */ 5 /* Type 1 character map support (body). */
6 /* */ 6 /* */
7 /* Copyright 2002, 2003, 2006, 2007 by */ 7 /* Copyright 2002, 2003, 2006, 2007, 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
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 /*************************************************************************/ 258 /*************************************************************************/
259 /*************************************************************************/ 259 /*************************************************************************/
260 /***** *****/ 260 /***** *****/
261 /***** TYPE1 SYNTHETIC UNICODE ENCODING CMAP *****/ 261 /***** TYPE1 SYNTHETIC UNICODE ENCODING CMAP *****/
262 /***** *****/ 262 /***** *****/
263 /*************************************************************************/ 263 /*************************************************************************/
264 /*************************************************************************/ 264 /*************************************************************************/
265 265
266 FT_CALLBACK_DEF( const char * ) 266 FT_CALLBACK_DEF( const char * )
267 t1_get_glyph_name( T1_Face face, 267 psaux_get_glyph_name( T1_Face face,
268 FT_UInt idx ) 268 FT_UInt idx )
269 { 269 {
270 return face->type1.glyph_names[idx]; 270 return face->type1.glyph_names[idx];
271 } 271 }
272 272
273 273
274 FT_CALLBACK_DEF( FT_Error ) 274 FT_CALLBACK_DEF( FT_Error )
275 t1_cmap_unicode_init( PS_Unicodes unicodes ) 275 t1_cmap_unicode_init( PS_Unicodes unicodes )
276 { 276 {
277 T1_Face face = (T1_Face)FT_CMAP_FACE( unicodes ); 277 T1_Face face = (T1_Face)FT_CMAP_FACE( unicodes );
278 FT_Memory memory = FT_FACE_MEMORY( face ); 278 FT_Memory memory = FT_FACE_MEMORY( face );
279 FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->psnames; 279 FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->psnames;
280 280
281 281
282 return psnames->unicodes_init( memory, 282 return psnames->unicodes_init( memory,
283 unicodes, 283 unicodes,
284 face->type1.num_glyphs, 284 face->type1.num_glyphs,
285 (PS_GetGlyphNameFunc)&t1_get_glyph_name, 285 (PS_GetGlyphNameFunc)&psaux_get_glyph_name,
286 (PS_FreeGlyphNameFunc)NULL, 286 (PS_FreeGlyphNameFunc)NULL,
287 (FT_Pointer)face ); 287 (FT_Pointer)face );
288 } 288 }
289 289
290 290
291 FT_CALLBACK_DEF( void ) 291 FT_CALLBACK_DEF( void )
292 t1_cmap_unicode_done( PS_Unicodes unicodes ) 292 t1_cmap_unicode_done( PS_Unicodes unicodes )
293 { 293 {
294 FT_Face face = FT_CMAP_FACE( unicodes ); 294 FT_Face face = FT_CMAP_FACE( unicodes );
295 FT_Memory memory = FT_FACE_MEMORY( face ); 295 FT_Memory memory = FT_FACE_MEMORY( face );
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 (FT_CMap_InitFunc) t1_cmap_unicode_init, 332 (FT_CMap_InitFunc) t1_cmap_unicode_init,
333 (FT_CMap_DoneFunc) t1_cmap_unicode_done, 333 (FT_CMap_DoneFunc) t1_cmap_unicode_done,
334 (FT_CMap_CharIndexFunc)t1_cmap_unicode_char_index, 334 (FT_CMap_CharIndexFunc)t1_cmap_unicode_char_index,
335 (FT_CMap_CharNextFunc) t1_cmap_unicode_char_next, 335 (FT_CMap_CharNextFunc) t1_cmap_unicode_char_next,
336 336
337 NULL, NULL, NULL, NULL, NULL 337 NULL, NULL, NULL, NULL, NULL
338 }; 338 };
339 339
340 340
341 /* END */ 341 /* END */
OLDNEW
« no previous file with comments | « src/psaux/psobjs.c ('k') | src/psaux/t1decode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698