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

Side by Side Diff: src/autofit/afdummy.c

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/afcjk.c ('k') | src/autofit/afglobal.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 /* afdummy.c */ 3 /* afdummy.c */
4 /* */ 4 /* */
5 /* Auto-fitter dummy routines to be used if no hinting should be */ 5 /* Auto-fitter dummy routines to be used if no hinting should be */
6 /* performed (body). */ 6 /* performed (body). */
7 /* */ 7 /* */
8 /* Copyright 2003-2005, 2011 by */ 8 /* Copyright 2003-2005, 2011, 2013 by */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* */ 10 /* */
11 /* This file is part of the FreeType project, and may only be used, */ 11 /* This file is part of the FreeType project, and may only be used, */
12 /* modified, and distributed under the terms of the FreeType project */ 12 /* modified, and distributed under the terms of the FreeType project */
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
14 /* this file you indicate that you have read the license and */ 14 /* this file you indicate that you have read the license and */
15 /* understand and accept it fully. */ 15 /* understand and accept it fully. */
16 /* */ 16 /* */
17 /***************************************************************************/ 17 /***************************************************************************/
18 18
19 19
20 #include "afdummy.h" 20 #include "afdummy.h"
21 #include "afhints.h" 21 #include "afhints.h"
22 #include "aferrors.h" 22 #include "aferrors.h"
23 23
24 24
25 static FT_Error 25 static FT_Error
26 af_dummy_hints_init( AF_GlyphHints hints, 26 af_dummy_hints_init( AF_GlyphHints hints,
27 AF_ScriptMetrics metrics ) 27 AF_ScriptMetrics metrics )
28 { 28 {
29 af_glyph_hints_rescale( hints, 29 af_glyph_hints_rescale( hints,
30 metrics ); 30 metrics );
31 return AF_Err_Ok; 31 return FT_Err_Ok;
32 } 32 }
33 33
34 34
35 static FT_Error 35 static FT_Error
36 af_dummy_hints_apply( AF_GlyphHints hints, 36 af_dummy_hints_apply( AF_GlyphHints hints,
37 FT_Outline* outline ) 37 FT_Outline* outline )
38 { 38 {
39 FT_UNUSED( hints ); 39 FT_UNUSED( hints );
40 FT_UNUSED( outline ); 40 FT_UNUSED( outline );
41 41
42 return AF_Err_Ok; 42 return FT_Err_Ok;
43 } 43 }
44 44
45 45
46 AF_DEFINE_SCRIPT_CLASS( af_dummy_script_class, 46 AF_DEFINE_SCRIPT_CLASS( af_dummy_script_class,
47 AF_SCRIPT_NONE, 47 AF_SCRIPT_DUMMY,
48 NULL, 48 NULL,
49 0,
49 50
50 sizeof ( AF_ScriptMetricsRec ), 51 sizeof ( AF_ScriptMetricsRec ),
51 52
52 (AF_Script_InitMetricsFunc) NULL, 53 (AF_Script_InitMetricsFunc) NULL,
53 (AF_Script_ScaleMetricsFunc)NULL, 54 (AF_Script_ScaleMetricsFunc)NULL,
54 (AF_Script_DoneMetricsFunc) NULL, 55 (AF_Script_DoneMetricsFunc) NULL,
55 56
56 (AF_Script_InitHintsFunc) af_dummy_hints_init, 57 (AF_Script_InitHintsFunc) af_dummy_hints_init,
57 (AF_Script_ApplyHintsFunc) af_dummy_hints_apply 58 (AF_Script_ApplyHintsFunc) af_dummy_hints_apply
58 ) 59 )
59 60
60 61
61 /* END */ 62 /* END */
OLDNEW
« no previous file with comments | « src/autofit/afcjk.c ('k') | src/autofit/afglobal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698