ReactOS 0.4.16-dev-1025-gd3456f5
afdummy.c
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * afdummy.c
4 *
5 * Auto-fitter dummy routines to be used if no hinting should be
6 * performed (body).
7 *
8 * Copyright (C) 2003-2019 by
9 * 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
20#include "afdummy.h"
21#include "afhints.h"
22#include "aferrors.h"
23
24
25 static FT_Error
28 {
30
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;
35
36 return FT_Err_Ok;
37 }
38
39
40 static FT_Error
45 {
47
48 FT_UNUSED( glyph_index );
50
51
53 if ( !error )
55
56 return error;
57 }
58
59
61 af_dummy_writing_system_class,
62
63 AF_WRITING_SYSTEM_DUMMY,
64
65 sizeof ( AF_StyleMetricsRec ),
66
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 */
71
74 )
75
76
77/* END */
static FT_Error af_dummy_hints_init(AF_GlyphHints hints, AF_StyleMetrics metrics)
Definition: afdummy.c:26
static FT_Error af_dummy_hints_apply(FT_UInt glyph_index, AF_GlyphHints hints, FT_Outline *outline, AF_StyleMetrics metrics)
Definition: afdummy.c:41
af_glyph_hints_save(AF_GlyphHints hints, FT_Outline *outline)
Definition: afhints.c:1184
af_glyph_hints_rescale(AF_GlyphHints hints, AF_StyleMetrics metrics)
Definition: afhints.c:750
af_glyph_hints_reload(AF_GlyphHints hints, FT_Outline *outline)
Definition: afhints.c:762
FT_Error(* AF_WritingSystem_InitMetricsFunc)(AF_StyleMetrics metrics, FT_Face face)
Definition: aftypes.h:206
void(* AF_WritingSystem_ScaleMetricsFunc)(AF_StyleMetrics metrics, AF_Scaler scaler)
Definition: aftypes.h:210
void(* AF_WritingSystem_DoneMetricsFunc)(AF_StyleMetrics metrics)
Definition: aftypes.h:214
FT_Error(* AF_WritingSystem_InitHintsFunc)(AF_GlyphHints hints, AF_StyleMetrics metrics)
Definition: aftypes.h:223
#define AF_DEFINE_WRITING_SYSTEM_CLASS( writing_system_class, system, m_size, m_init, m_scale, m_done, m_stdw, h_init, h_apply)
Definition: aftypes.h:495
FT_Error(* AF_WritingSystem_ApplyHintsFunc)(FT_UInt glyph_index, AF_GlyphHints hints, FT_Outline *outline, AF_StyleMetrics metrics)
Definition: aftypes.h:227
void(* AF_WritingSystem_GetStdWidthsFunc)(AF_StyleMetrics metrics, FT_Pos *stdHW, FT_Pos *stdVW)
Definition: aftypes.h:217
#define NULL
Definition: types.h:112
return FT_Err_Ok
Definition: ftbbox.c:527
#define FT_UNUSED(arg)
Definition: ftconfig.h:100
int FT_Error
Definition: fttypes.h:299
unsigned int FT_UInt
Definition: fttypes.h:231
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
Definition: glext.h:11745
#define error(str)
Definition: mkdosfs.c:1605
namespace GUID const ADDRINFOEXW * hints
Definition: sock.c:80
Definition: mesh.c:5330