Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
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-2005, 2011, 2013 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
26  af_dummy_hints_init( AF_GlyphHints hints,
28  {
30  metrics );
31  return FT_Err_Ok;
32  }
33 
34 
35  static FT_Error
36  af_dummy_hints_apply( AF_GlyphHints hints,
37  FT_Outline* outline )
38  {
39  FT_UNUSED( hints );
40  FT_UNUSED( outline );
41 
42  return FT_Err_Ok;
43  }
44 
45 
46  AF_DEFINE_SCRIPT_CLASS( af_dummy_script_class,
48  NULL,
49  0,
50 
51  sizeof ( AF_ScriptMetricsRec ),
52 
56 
57  (AF_Script_InitHintsFunc) af_dummy_hints_init,
58  (AF_Script_ApplyHintsFunc) af_dummy_hints_apply
59  )
60 
61 
62 /* END */
int FT_Error
Definition: fttypes.h:296
#define NULL
Definition: ftobjs.h:61
void(* AF_Script_DoneMetricsFunc)(AF_ScriptMetrics metrics)
Definition: aftypes.h:274
#define FT_UNUSED(arg)
Definition: ftconfig.h:76
return FT_Err_Ok
Definition: ftbbox.c:645
FT_Error(* AF_Script_InitHintsFunc)(AF_GlyphHints hints, AF_ScriptMetrics metrics)
Definition: aftypes.h:278
#define AF_DEFINE_SCRIPT_CLASS(script_class, script_, ranges, def_char, m_size, m_init, m_scale, m_done, h_init, h_apply)
Definition: aftypes.h:323
void(* AF_Script_ApplyHintsFunc)(AF_GlyphHints hints, FT_Outline *outline, AF_ScriptMetrics metrics)
Definition: aftypes.h:282
FT_Error(* AF_Script_InitMetricsFunc)(AF_ScriptMetrics metrics, FT_Face face)
Definition: aftypes.h:266
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
void(* AF_Script_ScaleMetricsFunc)(AF_ScriptMetrics metrics, AF_Scaler scaler)
Definition: aftypes.h:270
af_glyph_hints_rescale(AF_GlyphHints hints, AF_ScriptMetrics metrics)
Definition: afhints.c:581