afdummy.c

Go to the documentation of this file.
00001 /***************************************************************************/
00002 /*                                                                         */
00003 /*  afdummy.c                                                              */
00004 /*                                                                         */
00005 /*    Auto-fitter dummy routines to be used if no hinting should be        */
00006 /*    performed (body).                                                    */
00007 /*                                                                         */
00008 /*  Copyright 2003, 2004, 2005 by                                          */
00009 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
00010 /*                                                                         */
00011 /*  This file is part of the FreeType project, and may only be used,       */
00012 /*  modified, and distributed under the terms of the FreeType project      */
00013 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
00014 /*  this file you indicate that you have read the license and              */
00015 /*  understand and accept it fully.                                        */
00016 /*                                                                         */
00017 /***************************************************************************/
00018 
00019 
00020 #include "afdummy.h"
00021 #include "afhints.h"
00022 
00023 
00024   static FT_Error
00025   af_dummy_hints_init( AF_GlyphHints     hints,
00026                        AF_ScriptMetrics  metrics )
00027   {
00028     af_glyph_hints_rescale( hints,
00029                             metrics );
00030     return 0;
00031   }
00032 
00033 
00034   static FT_Error
00035   af_dummy_hints_apply( AF_GlyphHints  hints,
00036                         FT_Outline*    outline )
00037   {
00038     FT_UNUSED( hints );
00039     FT_UNUSED( outline );
00040 
00041     return 0;
00042   }
00043 
00044 
00045   AF_DEFINE_SCRIPT_CLASS(af_dummy_script_class,
00046     AF_SCRIPT_NONE,
00047     NULL,
00048 
00049     sizeof( AF_ScriptMetricsRec ),
00050 
00051     (AF_Script_InitMetricsFunc) NULL,
00052     (AF_Script_ScaleMetricsFunc)NULL,
00053     (AF_Script_DoneMetricsFunc) NULL,
00054 
00055     (AF_Script_InitHintsFunc)   af_dummy_hints_init,
00056     (AF_Script_ApplyHintsFunc)  af_dummy_hints_apply
00057   )
00058 
00059 
00060 /* END */

Generated on Tue Jul 5 14:13:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1