blob: c71265131e6178b907cbfefb332bd95047ed0c51 [file] [log] [blame]
Werner Lembergf13516c2005-03-03 17:09:08 +00001/***************************************************************************/
2/* */
3/* afdummy.c */
4/* */
5/* Auto-fitter dummy routines to be used if no hinting should be */
6/* performed (body). */
7/* */
Werner Lemberg332da872011-01-23 12:42:23 +01008/* Copyright 2003-2005, 2011 by */
Werner Lembergf13516c2005-03-03 17:09:08 +00009/* 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
Werner Lemberg8bb07e62004-03-27 08:43:17 +000020#include "afdummy.h"
David Turner8530a222004-06-09 20:18:35 +000021#include "afhints.h"
Werner Lemberg713faec2011-02-03 19:47:13 +010022#include "aferrors.h"
Werner Lemberg8bb07e62004-03-27 08:43:17 +000023
24
25 static FT_Error
26 af_dummy_hints_init( AF_GlyphHints hints,
Werner Lemberg8bb07e62004-03-27 08:43:17 +000027 AF_ScriptMetrics metrics )
28 {
David Turnere664efa2004-06-04 17:41:59 +000029 af_glyph_hints_rescale( hints,
30 metrics );
Werner Lemberg332da872011-01-23 12:42:23 +010031 return AF_Err_Ok;
Werner Lemberg8bb07e62004-03-27 08:43:17 +000032 }
33
Werner Lembergf13516c2005-03-03 17:09:08 +000034
Werner Lemberg8bb07e62004-03-27 08:43:17 +000035 static FT_Error
36 af_dummy_hints_apply( AF_GlyphHints hints,
37 FT_Outline* outline )
38 {
David Turnere664efa2004-06-04 17:41:59 +000039 FT_UNUSED( hints );
40 FT_UNUSED( outline );
41
Werner Lemberg332da872011-01-23 12:42:23 +010042 return AF_Err_Ok;
Werner Lemberg8bb07e62004-03-27 08:43:17 +000043 }
44
45
Werner Lemberg332da872011-01-23 12:42:23 +010046 AF_DEFINE_SCRIPT_CLASS( af_dummy_script_class,
Werner Lemberg8bb07e62004-03-27 08:43:17 +000047 AF_SCRIPT_NONE,
48 NULL,
49
50 sizeof( AF_ScriptMetricsRec ),
Werner Lemberg8bb07e62004-03-27 08:43:17 +000051
Werner Lembergf13516c2005-03-03 17:09:08 +000052 (AF_Script_InitMetricsFunc) NULL,
53 (AF_Script_ScaleMetricsFunc)NULL,
54 (AF_Script_DoneMetricsFunc) NULL,
55
56 (AF_Script_InitHintsFunc) af_dummy_hints_init,
57 (AF_Script_ApplyHintsFunc) af_dummy_hints_apply
Oran Agra59b4af82009-04-05 18:23:38 +030058 )
Werner Lembergb19b0812005-03-02 11:24:23 +000059
60
61/* END */