ReactOS 0.4.15-dev-7934-g1dc8d80
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 2003-2018 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
44 {
46
47 FT_UNUSED( glyph_index );
48
49
51 if ( !error )
53
54 return error;
55 }
56
57
59 af_dummy_writing_system_class,
60
61 AF_WRITING_SYSTEM_DUMMY,
62
63 sizeof ( AF_StyleMetricsRec ),
64
65 (AF_WritingSystem_InitMetricsFunc) NULL, /* style_metrics_init */
66 (AF_WritingSystem_ScaleMetricsFunc)NULL, /* style_metrics_scale */
67 (AF_WritingSystem_DoneMetricsFunc) NULL, /* style_metrics_done */
68 (AF_WritingSystem_GetStdWidthsFunc)NULL, /* style_metrics_getstdw */
69
72 )
73
74
75/* END */
static FT_Error af_dummy_hints_apply(FT_UInt glyph_index, AF_GlyphHints hints, FT_Outline *outline)
Definition: afdummy.c:41
static FT_Error af_dummy_hints_init(AF_GlyphHints hints, AF_StyleMetrics metrics)
Definition: afdummy.c:26
af_glyph_hints_save(AF_GlyphHints hints, FT_Outline *outline)
Definition: afhints.c:1146
af_glyph_hints_rescale(AF_GlyphHints hints, AF_StyleMetrics metrics)
Definition: afhints.c:720
af_glyph_hints_reload(AF_GlyphHints hints, FT_Outline *outline)
Definition: afhints.c:732
FT_Error(* AF_WritingSystem_InitMetricsFunc)(AF_StyleMetrics metrics, FT_Face face)
Definition: aftypes.h:204
void(* AF_WritingSystem_ScaleMetricsFunc)(AF_StyleMetrics metrics, AF_Scaler scaler)
Definition: aftypes.h:208
void(* AF_WritingSystem_DoneMetricsFunc)(AF_StyleMetrics metrics)
Definition: aftypes.h:212
FT_Error(* AF_WritingSystem_InitHintsFunc)(AF_GlyphHints hints, AF_StyleMetrics metrics)
Definition: aftypes.h:221
#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:225
void(* AF_WritingSystem_GetStdWidthsFunc)(AF_StyleMetrics metrics, FT_Pos *stdHW, FT_Pos *stdVW)
Definition: aftypes.h:215
#define NULL
Definition: types.h:112
return FT_Err_Ok
Definition: ftbbox.c:511
#define FT_UNUSED(arg)
Definition: ftconfig.h:101
int FT_Error
Definition: fttypes.h:300
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