Synchronize with FreeType.
[ttfautohint.git] / lib / tadummy.c
blob9e784e0a3f4d85f3f3e52736a76742f569087157
1 /* tadummy.c */
3 /*
4 * Copyright (C) 2011-2012 by Werner Lemberg.
6 * This file is part of the ttfautohint library, and may only be used,
7 * modified, and distributed under the terms given in `COPYING'. By
8 * continuing to use, modify, or distribute this file you indicate that you
9 * have read `COPYING' and understand and accept it fully.
11 * The file `COPYING' mentioned in the previous paragraph is distributed
12 * with the ttfautohint library.
16 /* originally file `afdummy.c' (2011-Mar-28) from FreeType */
18 /* heavily modified 2011 by Werner Lemberg <wl@gnu.org> */
20 #include "tadummy.h"
21 #include "tahints.h"
24 static FT_Error
25 ta_dummy_hints_init(TA_GlyphHints hints,
26 TA_ScriptMetrics metrics)
28 ta_glyph_hints_rescale(hints, metrics);
29 return FT_Err_Ok;
33 static FT_Error
34 ta_dummy_hints_apply(TA_GlyphHints hints,
35 FT_Outline* outline)
37 FT_UNUSED(hints);
38 FT_UNUSED(outline);
40 return FT_Err_Ok;
44 const TA_ScriptClassRec ta_dummy_script_class =
46 TA_SCRIPT_DUMMY,
47 NULL,
50 sizeof (TA_ScriptMetricsRec),
52 (TA_Script_InitMetricsFunc)NULL,
53 (TA_Script_ScaleMetricsFunc)NULL,
54 (TA_Script_DoneMetricsFunc)NULL,
56 (TA_Script_InitHintsFunc)ta_dummy_hints_init,
57 (TA_Script_ApplyHintsFunc)ta_dummy_hints_apply
60 /* end of tadummy.c */