zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftcalc.h File Reference
#include <ft2build.h>
#include <FT_FREETYPE_H>

Go to the source code of this file.

Macros

#define F2DOT14_TO_FIXED(x)   ( (FT_Long)(x) << 2 )
 
#define FIXED_TO_INT(x)   ( FT_RoundFix( x ) >> 16 )
 
#define FLOAT_TO_FIXED(x)   ( (FT_Long)( x * 65536.0 ) )
 
#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 ROUND_F26DOT6(x)
 

Functions

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

Macro Definition Documentation

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

Definition at line 166 of file ftcalc.h.

#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 )
#define ROUND_F26DOT6 (   x)
Value:
( x >= 0 ? ( ( (x) + 32 ) & -64 ) \
: ( -( ( 32 - (x) ) & -64 ) ) )
EGLSurface EGLint x
Definition: eglext.h:293

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 921 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 841 of file ftcalc.c.

References ft_multo64().

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

Definition at line 755 of file ftcalc.c.

References FT_MulDiv().

Referenced by cff_face_init().

FT_BEGIN_HEADER FT_SqrtFixed ( FT_Int32  x)

Definition at line 806 of file ftcalc.c.

Referenced by BBox_Cubic_Check(), and TT_Process_Composite_Component().

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

Definition at line 780 of file ftcalc.c.

References FT_MulDiv(), and FT_Pos.

Referenced by cff_face_init().