zenilib
0.5.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
afwarp.h
Go to the documentation of this file.
1
/***************************************************************************/
2
/* */
3
/* afwarp.h */
4
/* */
5
/* Auto-fitter warping algorithm (specification). */
6
/* */
7
/* Copyright 2006, 2007 by */
8
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
9
/* */
10
/* This file is part of the FreeType project, and may only be used, */
11
/* modified, and distributed under the terms of the FreeType project */
12
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13
/* this file you indicate that you have read the license and */
14
/* understand and accept it fully. */
15
/* */
16
/***************************************************************************/
17
18
19
#ifndef __AFWARP_H__
20
#define __AFWARP_H__
21
22
#include "
afhints.h
"
23
24
FT_BEGIN_HEADER
25
26
#define AF_WARPER_SCALE
27
28
#define AF_WARPER_FLOOR( x ) ( (x) & ~63 )
29
#define AF_WARPER_CEIL( x ) AF_WARPER_FLOOR( (x) + 63 )
30
31
32
typedef
FT_Int32
AF_WarpScore
;
33
34
typedef
struct
AF_WarperRec_
35
{
36
FT_Pos
x1
,
x2
;
37
FT_Pos
t1
,
t2
;
38
FT_Pos
x1min
,
x1max
;
39
FT_Pos
x2min
,
x2max
;
40
FT_Pos
w0
,
wmin
,
wmax
;
41
42
FT_Fixed
best_scale
;
43
FT_Pos
best_delta
;
44
AF_WarpScore
best_score
;
45
AF_WarpScore
best_distort
;
46
47
}
AF_WarperRec
, *
AF_Warper
;
48
49
50
FT_LOCAL
(
void
)
51
af_warper_compute
( AF_Warper warper,
52
AF_GlyphHints
hints,
53
AF_Dimension
dim,
54
FT_Fixed
*a_scale,
55
FT_Fixed
*a_delta );
56
57
58
FT_END_HEADER
59
60
61
#endif
/* __AFWARP_H__ */
62
63
64
/* END */
AF_WarperRec_::x1
FT_Pos x1
Definition:
afwarp.h:36
FT_Pos
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition:
ftimage.h:59
AF_WarperRec_::t1
FT_Pos t1
Definition:
afwarp.h:37
FT_END_HEADER
#define FT_END_HEADER
Definition:
ftheader.h:54
AF_WarperRec_::best_delta
FT_Pos best_delta
Definition:
afwarp.h:43
afhints.h
AF_WarperRec_::x1max
FT_Pos x1max
Definition:
afwarp.h:38
AF_WarperRec_::wmax
FT_Pos wmax
Definition:
afwarp.h:40
AF_WarperRec_::best_distort
AF_WarpScore best_distort
Definition:
afwarp.h:45
AF_WarperRec_::t2
FT_Pos t2
Definition:
afwarp.h:37
AF_WarperRec_::best_scale
FT_Fixed best_scale
Definition:
afwarp.h:42
AF_WarperRec_::x2min
FT_Pos x2min
Definition:
afwarp.h:39
FT_BEGIN_HEADER
#define FT_BEGIN_HEADER
Definition:
ftheader.h:36
AF_WarperRec
struct AF_WarperRec_ AF_WarperRec
FT_LOCAL
#define FT_LOCAL(x)
Definition:
ftconfig.h:466
af_warper_compute
af_warper_compute(AF_Warper warper, AF_GlyphHints hints, AF_Dimension dim, FT_Fixed *a_scale, FT_Fixed *a_delta)
AF_WarpScore
FT_Int32 AF_WarpScore
Definition:
afwarp.h:32
AF_GlyphHintsRec_
Definition:
afhints.h:331
AF_WarperRec_::x2max
FT_Pos x2max
Definition:
afwarp.h:39
AF_WarperRec_
Definition:
afwarp.h:34
AF_WarperRec_::w0
FT_Pos w0
Definition:
afwarp.h:40
AF_WarperRec_::wmin
FT_Pos wmin
Definition:
afwarp.h:40
AF_Dimension
FT_BEGIN_HEADER enum AF_Dimension_ AF_Dimension
FT_Fixed
signed long FT_Fixed
Definition:
fttypes.h:284
AF_Warper
struct AF_WarperRec_ * AF_Warper
AF_WarperRec_::x1min
FT_Pos x1min
Definition:
afwarp.h:38
AF_WarperRec_::best_score
AF_WarpScore best_score
Definition:
afwarp.h:44
AF_WarperRec_::x2
FT_Pos x2
Definition:
afwarp.h:36
zenilib
jni
external
freetype2
src
autofit
afwarp.h
Generated on Thu Oct 3 2013 19:56:02 for zenilib by
1.8.5