Fix thinko in handling composite glyphs.
[ttfautohint.git] / src / tadummy.c
blob0d0b313dd03dfd8dd2f491a393b7fc64395acdc4
1 /* tadummy.c */
3 /*
4 * Copyright (C) 2011 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_NONE,
47 NULL,
49 sizeof (TA_ScriptMetricsRec),
51 (TA_Script_InitMetricsFunc)NULL,
52 (TA_Script_ScaleMetricsFunc)NULL,
53 (TA_Script_DoneMetricsFunc)NULL,
55 (TA_Script_InitHintsFunc)ta_dummy_hints_init,
56 (TA_Script_ApplyHintsFunc)ta_dummy_hints_apply
59 /* end of tadummy.c */