• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /***************************************************************************/
2 /*                                                                         */
3 /*  afdummy.c                                                              */
4 /*                                                                         */
5 /*    Auto-fitter dummy routines to be used if no hinting should be        */
6 /*    performed (body).                                                    */
7 /*                                                                         */
8 /*  Copyright 2003, 2004, 2005 by                                          */
9 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
10 /*                                                                         */
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      */
13 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
14 /*  this file you indicate that you have read the license and              */
15 /*  understand and accept it fully.                                        */
16 /*                                                                         */
17 /***************************************************************************/
18 
19 
20 #include "afdummy.h"
21 #include "afhints.h"
22 
23 
24   static FT_Error
af_dummy_hints_init(AF_GlyphHints hints,AF_ScriptMetrics metrics)25   af_dummy_hints_init( AF_GlyphHints     hints,
26                        AF_ScriptMetrics  metrics )
27   {
28     af_glyph_hints_rescale( hints,
29                             metrics );
30     return 0;
31   }
32 
33 
34   static FT_Error
af_dummy_hints_apply(AF_GlyphHints hints,FT_Outline * outline)35   af_dummy_hints_apply( AF_GlyphHints  hints,
36                         FT_Outline*    outline )
37   {
38     FT_UNUSED( hints );
39     FT_UNUSED( outline );
40 
41     return 0;
42   }
43 
44 
45   FT_CALLBACK_TABLE_DEF const AF_ScriptClassRec
46   af_dummy_script_class =
47   {
48     AF_SCRIPT_NONE,
49     NULL,
50 
51     sizeof( AF_ScriptMetricsRec ),
52 
53     (AF_Script_InitMetricsFunc) NULL,
54     (AF_Script_ScaleMetricsFunc)NULL,
55     (AF_Script_DoneMetricsFunc) NULL,
56 
57     (AF_Script_InitHintsFunc)   af_dummy_hints_init,
58     (AF_Script_ApplyHintsFunc)  af_dummy_hints_apply
59   };
60 
61 
62 /* END */
63