00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __AFWARP_H__
00020 #define __AFWARP_H__
00021
00022 #include "afhints.h"
00023
00024 FT_BEGIN_HEADER
00025
00026 #define AF_WARPER_SCALE
00027
00028 #define AF_WARPER_FLOOR( x ) ( (x) & ~63 )
00029 #define AF_WARPER_CEIL( x ) AF_WARPER_FLOOR( (x) + 63 )
00030
00031
00032 typedef FT_Int32 AF_WarpScore;
00033
00034 typedef struct AF_WarperRec_
00035 {
00036 FT_Pos x1, x2;
00037 FT_Pos t1, t2;
00038 FT_Pos x1min, x1max;
00039 FT_Pos x2min, x2max;
00040 FT_Pos w0, wmin, wmax;
00041
00042 FT_Fixed best_scale;
00043 FT_Pos best_delta;
00044 AF_WarpScore best_score;
00045 AF_WarpScore best_distort;
00046
00047 } AF_WarperRec, *AF_Warper;
00048
00049
00050 FT_LOCAL( void )
00051 af_warper_compute( AF_Warper warper,
00052 AF_GlyphHints hints,
00053 AF_Dimension dim,
00054 FT_Fixed *a_scale,
00055 FT_Fixed *a_delta );
00056
00057
00058 FT_END_HEADER
00059
00060
00061 #endif
00062
00063
00064