2074 {
2078#ifdef DEBUG_HINTER
2080#endif
2082
2083
2084
2087
2088#ifdef DEBUG_HINTER
2089
2090 memory = globals->memory;
2091
2092 if ( ps_debug_glyph )
2093 {
2096 }
2097
2100
2101 ps_debug_glyph = glyph;
2102
2103#endif
2104
2108
2109
2110
2111
2112 {
2115
2118
2121
2124
2126
2127
2128 scaled =
FT_MulFix( globals->blues.normal_top.zones->org_ref, y_scale );
2130
2131 if ( fitted != 0 && scaled != fitted )
2132 {
2134
2135 y_scale =
FT_MulDiv( y_scale, fitted, scaled );
2136
2137 if ( fitted < scaled )
2138 x_scale -= x_scale / 50;
2139
2141 }
2142
2145
2148
2151
2153
2154 for ( dimension = 0; dimension < 2; dimension++ )
2155 {
2156
2158
2159
2161
2162
2165 dimension,
2166 glyph );
2167
2168
2170 if ( dimension == 1 )
2175
2176
2178
2179 if ( rescale )
2181 old_x_scale, old_y_scale, 0, 0 );
2182 }
2183 }
2184
2186
2187#ifndef DEBUG_HINTER
2189#endif
2190
2192 }
FT_MulDiv(FT_Long a, FT_Long b, FT_Long c)
FT_MulFix(FT_Long a, FT_Long b)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
static char memory[1024 *256]
static void psh_glyph_interpolate_other_points(PSH_Glyph glyph, FT_Int dimension)
static void psh_glyph_compute_extrema(PSH_Glyph glyph)
static void psh_glyph_interpolate_strong_points(PSH_Glyph glyph, FT_Int dimension)
static void psh_glyph_find_strong_points(PSH_Glyph glyph, FT_Int dimension)
static void psh_glyph_find_blue_points(PSH_Blues blues, PSH_Glyph glyph)
static void psh_glyph_save_points(PSH_Glyph glyph, FT_Int dimension)
static void psh_glyph_done(PSH_Glyph glyph)
static void psh_glyph_load_points(PSH_Glyph glyph, FT_Int dimension)
static void psh_hint_table_align_hints(PSH_Hint_Table table, PSH_Globals globals, FT_Int dimension, PSH_Glyph glyph)
static void psh_glyph_interpolate_normal_points(PSH_Glyph glyph, FT_Int dimension)
static FT_Error psh_glyph_init(PSH_Glyph glyph, FT_Outline *outline, PS_Hints ps_hints, PSH_Globals globals)
psh_globals_set_scale(PSH_Globals globals, FT_Fixed x_scale, FT_Fixed y_scale, FT_Fixed x_delta, FT_Fixed y_delta)
PSH_Hint_TableRec hint_tables[2]