ftcalc.h File Reference

#include <ft2build.h>

Go to the source code of this file.

Defines

#define INT_TO_F26DOT6(x)   ( (FT_Long)(x) << 6 )
#define INT_TO_F2DOT14(x)   ( (FT_Long)(x) << 14 )
#define INT_TO_FIXED(x)   ( (FT_Long)(x) << 16 )
#define F2DOT14_TO_FIXED(x)   ( (FT_Long)(x) << 2 )
#define FLOAT_TO_FIXED(x)   ( (FT_Long)( x * 65536.0 ) )
#define FIXED_TO_INT(x)   ( FT_RoundFix( x ) >> 16 )
#define ROUND_F26DOT6(x)

Functions

FT_BEGIN_HEADER FT_SqrtFixed (FT_Int32 x)
 FT_Matrix_Multiply_Scaled (const FT_Matrix *a, FT_Matrix *b, FT_Long scaling)
 FT_Vector_Transform_Scaled (FT_Vector *vector, const FT_Matrix *matrix, FT_Long scaling)
 ft_corner_orientation (FT_Pos in_x, FT_Pos in_y, FT_Pos out_x, FT_Pos out_y)
 ft_corner_is_flat (FT_Pos in_x, FT_Pos in_y, FT_Pos out_x, FT_Pos out_y)


Define Documentation

#define F2DOT14_TO_FIXED ( x   )     ( (FT_Long)(x) << 2 )

Definition at line 166 of file ftcalc.h.

#define FIXED_TO_INT ( x   )     ( FT_RoundFix( x ) >> 16 )

Definition at line 168 of file ftcalc.h.

Referenced by cid_load_glyph(), cid_slot_load_glyph(), ps_hints_t1stem3(), t1_builder_add_point(), T1_Face_Init(), T1_Get_Advances(), t1_hints_stem(), T1_Load_Glyph(), T1_Parse_Glyph_And_Get_Char_String(), T1_Set_Var_Design(), t1operator_seac(), and t2_hints_stems().

#define FLOAT_TO_FIXED ( x   )     ( (FT_Long)( x * 65536.0 ) )

Definition at line 167 of file ftcalc.h.

#define INT_TO_F26DOT6 ( x   )     ( (FT_Long)(x) << 6 )

Definition at line 163 of file ftcalc.h.

#define INT_TO_F2DOT14 ( x   )     ( (FT_Long)(x) << 14 )

Definition at line 164 of file ftcalc.h.

#define INT_TO_FIXED ( x   )     ( (FT_Long)(x) << 16 )

Definition at line 165 of file ftcalc.h.

Referenced by cid_load_glyph(), mm_axis_unmap(), T1_Get_MM_Var(), and T1_Parse_Glyph_And_Get_Char_String().

#define ROUND_F26DOT6 ( x   ) 

Value:

( x >= 0 ? (    ( (x) + 32 ) & -64 )     \
                                        : ( -( ( 32 - (x) ) & -64 ) ) )

Definition at line 170 of file ftcalc.h.


Function Documentation

ft_corner_is_flat ( FT_Pos  in_x,
FT_Pos  in_y,
FT_Pos  out_x,
FT_Pos  out_y 
)

Definition at line 920 of file ftcalc.c.

References FT_Pos.

Referenced by af_glyph_hints_reload().

ft_corner_orientation ( FT_Pos  in_x,
FT_Pos  in_y,
FT_Pos  out_x,
FT_Pos  out_y 
)

Definition at line 840 of file ftcalc.c.

References ft_multo64(), FT_Int64_::hi, FT_Int64_::lo, and result().

Referenced by af_glyph_hints_compute_inflections().

FT_Matrix_Multiply_Scaled ( const FT_Matrix a,
FT_Matrix b,
FT_Long  scaling 
)

Definition at line 754 of file ftcalc.c.

References FT_MulDiv(), RooFitShortHand::L(), and xy.

Referenced by cff_face_init().

FT_BEGIN_HEADER FT_SqrtFixed ( FT_Int32  x  ) 

Definition at line 805 of file ftcalc.c.

Referenced by BBox_Cubic_Check().

FT_Vector_Transform_Scaled ( FT_Vector vector,
const FT_Matrix matrix,
FT_Long  scaling 
)

Definition at line 779 of file ftcalc.c.

References FT_MulDiv(), FT_Pos, and RooFitShortHand::L().

Referenced by cff_face_init().


Generated on Tue Jul 5 15:58:19 2011 for ROOT_528-00b_version by  doxygen 1.5.1