1 /****************************************************************************
5 * Auto-fitter dummy routines to be used if no hinting should be
8 * Copyright (C) 2003-2023 by
9 * David Turner, Robert Wilhelm, and Werner Lemberg.
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.
26 af_dummy_hints_init( AF_GlyphHints hints,
27 AF_StyleMetrics metrics )
29 af_glyph_hints_rescale( hints, metrics );
31 hints->x_scale = metrics->scaler.x_scale;
32 hints->y_scale = metrics->scaler.y_scale;
33 hints->x_delta = metrics->scaler.x_delta;
34 hints->y_delta = metrics->scaler.y_delta;
41 af_dummy_hints_apply( FT_UInt glyph_index,
44 AF_StyleMetrics metrics )
48 FT_UNUSED( glyph_index );
52 error = af_glyph_hints_reload( hints, outline );
54 af_glyph_hints_save( hints, outline );
60 AF_DEFINE_WRITING_SYSTEM_CLASS(
61 af_dummy_writing_system_class,
63 AF_WRITING_SYSTEM_DUMMY,
65 sizeof ( AF_StyleMetricsRec ),
67 (AF_WritingSystem_InitMetricsFunc) NULL, /* style_metrics_init */
68 (AF_WritingSystem_ScaleMetricsFunc)NULL, /* style_metrics_scale */
69 (AF_WritingSystem_DoneMetricsFunc) NULL, /* style_metrics_done */
70 (AF_WritingSystem_GetStdWidthsFunc)NULL, /* style_metrics_getstdw */
72 (AF_WritingSystem_InitHintsFunc) af_dummy_hints_init, /* style_hints_init */
73 (AF_WritingSystem_ApplyHintsFunc) af_dummy_hints_apply /* style_hints_apply */