w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ftimage.h File Reference

Go to the source code of this file.

Classes

struct  FT_Vector_
 
struct  FT_BBox_
 
struct  FT_Bitmap_
 
struct  FT_Outline_
 
struct  FT_Outline_Funcs_
 
struct  FT_Span_
 
struct  FT_Raster_Params_
 
struct  FT_Raster_Funcs_
 

Macros

#define ft_pixel_mode_none   FT_PIXEL_MODE_NONE
 
#define ft_pixel_mode_mono   FT_PIXEL_MODE_MONO
 
#define ft_pixel_mode_grays   FT_PIXEL_MODE_GRAY
 
#define ft_pixel_mode_pal2   FT_PIXEL_MODE_GRAY2
 
#define ft_pixel_mode_pal4   FT_PIXEL_MODE_GRAY4
 
#define FT_OUTLINE_CONTOURS_MAX   SHRT_MAX
 
#define FT_OUTLINE_POINTS_MAX   SHRT_MAX
 
#define FT_OUTLINE_NONE   0x0
 
#define FT_OUTLINE_OWNER   0x1
 
#define FT_OUTLINE_EVEN_ODD_FILL   0x2
 
#define FT_OUTLINE_REVERSE_FILL   0x4
 
#define FT_OUTLINE_IGNORE_DROPOUTS   0x8
 
#define FT_OUTLINE_SMART_DROPOUTS   0x10
 
#define FT_OUTLINE_INCLUDE_STUBS   0x20
 
#define FT_OUTLINE_OVERLAP   0x40
 
#define FT_OUTLINE_HIGH_PRECISION   0x100
 
#define FT_OUTLINE_SINGLE_PASS   0x200
 
#define ft_outline_none   FT_OUTLINE_NONE
 
#define ft_outline_owner   FT_OUTLINE_OWNER
 
#define ft_outline_even_odd_fill   FT_OUTLINE_EVEN_ODD_FILL
 
#define ft_outline_reverse_fill   FT_OUTLINE_REVERSE_FILL
 
#define ft_outline_ignore_dropouts   FT_OUTLINE_IGNORE_DROPOUTS
 
#define ft_outline_high_precision   FT_OUTLINE_HIGH_PRECISION
 
#define ft_outline_single_pass   FT_OUTLINE_SINGLE_PASS
 
#define FT_CURVE_TAG(flag)   ( flag & 0x03 )
 
#define FT_CURVE_TAG_ON   0x01
 
#define FT_CURVE_TAG_CONIC   0x00
 
#define FT_CURVE_TAG_CUBIC   0x02
 
#define FT_CURVE_TAG_HAS_SCANMODE   0x04
 
#define FT_CURVE_TAG_TOUCH_X   0x08 /* reserved for TrueType hinter */
 
#define FT_CURVE_TAG_TOUCH_Y   0x10 /* reserved for TrueType hinter */
 
#define FT_CURVE_TAG_TOUCH_BOTH
 
#define FT_Curve_Tag_On   FT_CURVE_TAG_ON
 
#define FT_Curve_Tag_Conic   FT_CURVE_TAG_CONIC
 
#define FT_Curve_Tag_Cubic   FT_CURVE_TAG_CUBIC
 
#define FT_Curve_Tag_Touch_X   FT_CURVE_TAG_TOUCH_X
 
#define FT_Curve_Tag_Touch_Y   FT_CURVE_TAG_TOUCH_Y
 
#define FT_Outline_MoveTo_Func   FT_Outline_MoveToFunc
 
#define FT_Outline_LineTo_Func   FT_Outline_LineToFunc
 
#define FT_Outline_ConicTo_Func   FT_Outline_ConicToFunc
 
#define FT_Outline_CubicTo_Func   FT_Outline_CubicToFunc
 
#define FT_IMAGE_TAG(value, _x1, _x2, _x3, _x4)
 
#define ft_glyph_format_none   FT_GLYPH_FORMAT_NONE
 
#define ft_glyph_format_composite   FT_GLYPH_FORMAT_COMPOSITE
 
#define ft_glyph_format_bitmap   FT_GLYPH_FORMAT_BITMAP
 
#define ft_glyph_format_outline   FT_GLYPH_FORMAT_OUTLINE
 
#define ft_glyph_format_plotter   FT_GLYPH_FORMAT_PLOTTER
 
#define FT_Raster_Span_Func   FT_SpanFunc
 
#define FT_RASTER_FLAG_DEFAULT   0x0
 
#define FT_RASTER_FLAG_AA   0x1
 
#define FT_RASTER_FLAG_DIRECT   0x2
 
#define FT_RASTER_FLAG_CLIP   0x4
 
#define ft_raster_flag_default   FT_RASTER_FLAG_DEFAULT
 
#define ft_raster_flag_aa   FT_RASTER_FLAG_AA
 
#define ft_raster_flag_direct   FT_RASTER_FLAG_DIRECT
 
#define ft_raster_flag_clip   FT_RASTER_FLAG_CLIP
 
#define FT_Raster_New_Func   FT_Raster_NewFunc
 
#define FT_Raster_Done_Func   FT_Raster_DoneFunc
 
#define FT_Raster_Reset_Func   FT_Raster_ResetFunc
 
#define FT_Raster_Set_Mode_Func   FT_Raster_SetModeFunc
 
#define FT_Raster_Render_Func   FT_Raster_RenderFunc
 

Typedefs

typedef struct FT_Vector_ FT_Vector
 
typedef struct FT_BBox_ FT_BBox
 
typedef enum FT_Pixel_Mode_ FT_Pixel_Mode
 
typedef struct FT_Bitmap_ FT_Bitmap
 
typedef struct FT_Outline_ FT_Outline
 
typedef int(* FT_Outline_MoveToFunc) (const FT_Vector *to, void *user)
 
typedef int(* FT_Outline_LineToFunc) (const FT_Vector *to, void *user)
 
typedef int(* FT_Outline_ConicToFunc) (const FT_Vector *control, const FT_Vector *to, void *user)
 
typedef int(* FT_Outline_CubicToFunc) (const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, void *user)
 
typedef struct FT_Outline_Funcs_ FT_Outline_Funcs
 
typedef enum FT_Glyph_Format_ FT_Glyph_Format
 
typedef struct FT_RasterRec_ * FT_Raster
 
typedef struct FT_Span_ FT_Span
 
typedef void(* FT_SpanFunc) (int y, int count, const FT_Span *spans, void *user)
 
typedef int(* FT_Raster_BitTest_Func) (int y, int x, void *user)
 
typedef void(* FT_Raster_BitSet_Func) (int y, int x, void *user)
 
typedef struct FT_Raster_Params_ FT_Raster_Params
 
typedef int(* FT_Raster_NewFunc) (void *memory, FT_Raster *raster)
 
typedef void(* FT_Raster_DoneFunc) (FT_Raster raster)
 
typedef void(* FT_Raster_ResetFunc) (FT_Raster raster, unsigned char *pool_base, unsigned long pool_size)
 
typedef int(* FT_Raster_SetModeFunc) (FT_Raster raster, unsigned long mode, void *args)
 
typedef int(* FT_Raster_RenderFunc) (FT_Raster raster, const FT_Raster_Params *params)
 
typedef struct FT_Raster_Funcs_ FT_Raster_Funcs
 

Enumerations

enum  FT_Pixel_Mode_ {
  FT_PIXEL_MODE_NONE = 0 , FT_PIXEL_MODE_MONO , FT_PIXEL_MODE_GRAY , FT_PIXEL_MODE_GRAY2 ,
  FT_PIXEL_MODE_GRAY4 , FT_PIXEL_MODE_LCD , FT_PIXEL_MODE_LCD_V , FT_PIXEL_MODE_BGRA ,
  FT_PIXEL_MODE_MAX , FT_PIXEL_MODE_NONE = 0 , FT_PIXEL_MODE_MONO , FT_PIXEL_MODE_GRAY ,
  FT_PIXEL_MODE_GRAY2 , FT_PIXEL_MODE_GRAY4 , FT_PIXEL_MODE_LCD , FT_PIXEL_MODE_LCD_V ,
  FT_PIXEL_MODE_BGRA , FT_PIXEL_MODE_MAX
}
 
enum  FT_Glyph_Format_ {
  FT_GLYPH_FORMAT_NONE = ( ( (unsigned long) 0 << 24 ) | ( (unsigned long) 0 << 16 ) | ( (unsigned long) 0 << 8 ) | (unsigned long) 0 ) , FT_GLYPH_FORMAT_COMPOSITE = ( ( (unsigned long) 'c' << 24 ) | ( (unsigned long) 'o' << 16 ) | ( (unsigned long) 'm' << 8 ) | (unsigned long) 'p' ) , FT_GLYPH_FORMAT_BITMAP = ( ( (unsigned long) 'b' << 24 ) | ( (unsigned long) 'i' << 16 ) | ( (unsigned long) 't' << 8 ) | (unsigned long) 's' ) , FT_GLYPH_FORMAT_OUTLINE = ( ( (unsigned long) 'o' << 24 ) | ( (unsigned long) 'u' << 16 ) | ( (unsigned long) 't' << 8 ) | (unsigned long) 'l' ) ,
  FT_GLYPH_FORMAT_PLOTTER = ( ( (unsigned long) 'p' << 24 ) | ( (unsigned long) 'l' << 16 ) | ( (unsigned long) 'o' << 8 ) | (unsigned long) 't' ) , FT_GLYPH_FORMAT_NONE = ( ( (unsigned long) 0 << 24 ) | ( (unsigned long) 0 << 16 ) | ( (unsigned long) 0 << 8 ) | (unsigned long) 0 ) , FT_GLYPH_FORMAT_COMPOSITE = ( ( (unsigned long) 'c' << 24 ) | ( (unsigned long) 'o' << 16 ) | ( (unsigned long) 'm' << 8 ) | (unsigned long) 'p' ) , FT_GLYPH_FORMAT_BITMAP = ( ( (unsigned long) 'b' << 24 ) | ( (unsigned long) 'i' << 16 ) | ( (unsigned long) 't' << 8 ) | (unsigned long) 's' ) ,
  FT_GLYPH_FORMAT_OUTLINE = ( ( (unsigned long) 'o' << 24 ) | ( (unsigned long) 'u' << 16 ) | ( (unsigned long) 't' << 8 ) | (unsigned long) 'l' ) , FT_GLYPH_FORMAT_PLOTTER = ( ( (unsigned long) 'p' << 24 ) | ( (unsigned long) 'l' << 16 ) | ( (unsigned long) 'o' << 8 ) | (unsigned long) 't' )
}
 

Variables

FT_BEGIN_HEADER typedef signed long FT_Pos
 

Macro Definition Documentation

◆ FT_CURVE_TAG

#define FT_CURVE_TAG (   flag)    ( flag & 0x03 )

Definition at line 459 of file ftimage.h.

◆ FT_CURVE_TAG_CONIC

#define FT_CURVE_TAG_CONIC   0x00

Definition at line 463 of file ftimage.h.

◆ FT_Curve_Tag_Conic

#define FT_Curve_Tag_Conic   FT_CURVE_TAG_CONIC

Definition at line 479 of file ftimage.h.

◆ FT_CURVE_TAG_CUBIC

#define FT_CURVE_TAG_CUBIC   0x02

Definition at line 464 of file ftimage.h.

◆ FT_Curve_Tag_Cubic

#define FT_Curve_Tag_Cubic   FT_CURVE_TAG_CUBIC

Definition at line 480 of file ftimage.h.

◆ FT_CURVE_TAG_HAS_SCANMODE

#define FT_CURVE_TAG_HAS_SCANMODE   0x04

Definition at line 466 of file ftimage.h.

◆ FT_CURVE_TAG_ON

#define FT_CURVE_TAG_ON   0x01

Definition at line 462 of file ftimage.h.

◆ FT_Curve_Tag_On

#define FT_Curve_Tag_On   FT_CURVE_TAG_ON

Definition at line 478 of file ftimage.h.

◆ FT_CURVE_TAG_TOUCH_BOTH

#define FT_CURVE_TAG_TOUCH_BOTH
Value:
FT_CURVE_TAG_TOUCH_Y )
#define FT_CURVE_TAG_TOUCH_X
Definition: ftimage.h:468

Definition at line 471 of file ftimage.h.

◆ FT_CURVE_TAG_TOUCH_X

#define FT_CURVE_TAG_TOUCH_X   0x08 /* reserved for TrueType hinter */

Definition at line 468 of file ftimage.h.

◆ FT_Curve_Tag_Touch_X

#define FT_Curve_Tag_Touch_X   FT_CURVE_TAG_TOUCH_X

Definition at line 481 of file ftimage.h.

◆ FT_CURVE_TAG_TOUCH_Y

#define FT_CURVE_TAG_TOUCH_Y   0x10 /* reserved for TrueType hinter */

Definition at line 469 of file ftimage.h.

◆ FT_Curve_Tag_Touch_Y

#define FT_Curve_Tag_Touch_Y   FT_CURVE_TAG_TOUCH_Y

Definition at line 482 of file ftimage.h.

◆ ft_glyph_format_bitmap

#define ft_glyph_format_bitmap   FT_GLYPH_FORMAT_BITMAP

Definition at line 759 of file ftimage.h.

◆ ft_glyph_format_composite

#define ft_glyph_format_composite   FT_GLYPH_FORMAT_COMPOSITE

Definition at line 758 of file ftimage.h.

◆ ft_glyph_format_none

#define ft_glyph_format_none   FT_GLYPH_FORMAT_NONE

Definition at line 757 of file ftimage.h.

◆ ft_glyph_format_outline

#define ft_glyph_format_outline   FT_GLYPH_FORMAT_OUTLINE

Definition at line 760 of file ftimage.h.

◆ ft_glyph_format_plotter

#define ft_glyph_format_plotter   FT_GLYPH_FORMAT_PLOTTER

Definition at line 761 of file ftimage.h.

◆ FT_IMAGE_TAG

#define FT_IMAGE_TAG (   value,
  _x1,
  _x2,
  _x3,
  _x4 
)
Value:
value = ( ( (unsigned long)_x1 << 24 ) | \
( (unsigned long)_x2 << 16 ) | \
( (unsigned long)_x3 << 8 ) | \
(unsigned long)_x4 )
Definition: obx.h:51

Definition at line 698 of file ftimage.h.

◆ FT_Outline_ConicTo_Func

#define FT_Outline_ConicTo_Func   FT_Outline_ConicToFunc

Definition at line 575 of file ftimage.h.

◆ FT_OUTLINE_CONTOURS_MAX

#define FT_OUTLINE_CONTOURS_MAX   SHRT_MAX

Definition at line 353 of file ftimage.h.

◆ FT_Outline_CubicTo_Func

#define FT_Outline_CubicTo_Func   FT_Outline_CubicToFunc

Definition at line 612 of file ftimage.h.

◆ FT_OUTLINE_EVEN_ODD_FILL

#define FT_OUTLINE_EVEN_ODD_FILL   0x2

Definition at line 436 of file ftimage.h.

◆ ft_outline_even_odd_fill

#define ft_outline_even_odd_fill   FT_OUTLINE_EVEN_ODD_FILL

Definition at line 451 of file ftimage.h.

◆ FT_OUTLINE_HIGH_PRECISION

#define FT_OUTLINE_HIGH_PRECISION   0x100

Definition at line 443 of file ftimage.h.

◆ ft_outline_high_precision

#define ft_outline_high_precision   FT_OUTLINE_HIGH_PRECISION

Definition at line 454 of file ftimage.h.

◆ FT_OUTLINE_IGNORE_DROPOUTS

#define FT_OUTLINE_IGNORE_DROPOUTS   0x8

Definition at line 438 of file ftimage.h.

◆ ft_outline_ignore_dropouts

#define ft_outline_ignore_dropouts   FT_OUTLINE_IGNORE_DROPOUTS

Definition at line 453 of file ftimage.h.

◆ FT_OUTLINE_INCLUDE_STUBS

#define FT_OUTLINE_INCLUDE_STUBS   0x20

Definition at line 440 of file ftimage.h.

◆ FT_Outline_LineTo_Func

#define FT_Outline_LineTo_Func   FT_Outline_LineToFunc

Definition at line 540 of file ftimage.h.

◆ FT_Outline_MoveTo_Func

#define FT_Outline_MoveTo_Func   FT_Outline_MoveToFunc

Definition at line 511 of file ftimage.h.

◆ FT_OUTLINE_NONE

#define FT_OUTLINE_NONE   0x0

Definition at line 434 of file ftimage.h.

◆ ft_outline_none

#define ft_outline_none   FT_OUTLINE_NONE

Definition at line 449 of file ftimage.h.

◆ FT_OUTLINE_OVERLAP

#define FT_OUTLINE_OVERLAP   0x40

Definition at line 441 of file ftimage.h.

◆ FT_OUTLINE_OWNER

#define FT_OUTLINE_OWNER   0x1

Definition at line 435 of file ftimage.h.

◆ ft_outline_owner

#define ft_outline_owner   FT_OUTLINE_OWNER

Definition at line 450 of file ftimage.h.

◆ FT_OUTLINE_POINTS_MAX

#define FT_OUTLINE_POINTS_MAX   SHRT_MAX

Definition at line 354 of file ftimage.h.

◆ FT_OUTLINE_REVERSE_FILL

#define FT_OUTLINE_REVERSE_FILL   0x4

Definition at line 437 of file ftimage.h.

◆ ft_outline_reverse_fill

#define ft_outline_reverse_fill   FT_OUTLINE_REVERSE_FILL

Definition at line 452 of file ftimage.h.

◆ FT_OUTLINE_SINGLE_PASS

#define FT_OUTLINE_SINGLE_PASS   0x200

Definition at line 444 of file ftimage.h.

◆ ft_outline_single_pass

#define ft_outline_single_pass   FT_OUTLINE_SINGLE_PASS

Definition at line 455 of file ftimage.h.

◆ FT_OUTLINE_SMART_DROPOUTS

#define FT_OUTLINE_SMART_DROPOUTS   0x10

Definition at line 439 of file ftimage.h.

◆ ft_pixel_mode_grays

#define ft_pixel_mode_grays   FT_PIXEL_MODE_GRAY

Definition at line 200 of file ftimage.h.

◆ ft_pixel_mode_mono

#define ft_pixel_mode_mono   FT_PIXEL_MODE_MONO

Definition at line 199 of file ftimage.h.

◆ ft_pixel_mode_none

#define ft_pixel_mode_none   FT_PIXEL_MODE_NONE

Definition at line 198 of file ftimage.h.

◆ ft_pixel_mode_pal2

#define ft_pixel_mode_pal2   FT_PIXEL_MODE_GRAY2

Definition at line 201 of file ftimage.h.

◆ ft_pixel_mode_pal4

#define ft_pixel_mode_pal4   FT_PIXEL_MODE_GRAY4

Definition at line 202 of file ftimage.h.

◆ FT_Raster_Done_Func

#define FT_Raster_Done_Func   FT_Raster_DoneFunc

Definition at line 1098 of file ftimage.h.

◆ FT_RASTER_FLAG_AA

#define FT_RASTER_FLAG_AA   0x1

Definition at line 967 of file ftimage.h.

◆ ft_raster_flag_aa

#define ft_raster_flag_aa   FT_RASTER_FLAG_AA

Definition at line 974 of file ftimage.h.

◆ FT_RASTER_FLAG_CLIP

#define FT_RASTER_FLAG_CLIP   0x4

Definition at line 969 of file ftimage.h.

◆ ft_raster_flag_clip

#define ft_raster_flag_clip   FT_RASTER_FLAG_CLIP

Definition at line 976 of file ftimage.h.

◆ FT_RASTER_FLAG_DEFAULT

#define FT_RASTER_FLAG_DEFAULT   0x0

Definition at line 966 of file ftimage.h.

◆ ft_raster_flag_default

#define ft_raster_flag_default   FT_RASTER_FLAG_DEFAULT

Definition at line 973 of file ftimage.h.

◆ FT_RASTER_FLAG_DIRECT

#define FT_RASTER_FLAG_DIRECT   0x2

Definition at line 968 of file ftimage.h.

◆ ft_raster_flag_direct

#define ft_raster_flag_direct   FT_RASTER_FLAG_DIRECT

Definition at line 975 of file ftimage.h.

◆ FT_Raster_New_Func

#define FT_Raster_New_Func   FT_Raster_NewFunc

Definition at line 1080 of file ftimage.h.

◆ FT_Raster_Render_Func

#define FT_Raster_Render_Func   FT_Raster_RenderFunc

Definition at line 1199 of file ftimage.h.

◆ FT_Raster_Reset_Func

#define FT_Raster_Reset_Func   FT_Raster_ResetFunc

Definition at line 1134 of file ftimage.h.

◆ FT_Raster_Set_Mode_Func

#define FT_Raster_Set_Mode_Func   FT_Raster_SetModeFunc

Definition at line 1162 of file ftimage.h.

◆ FT_Raster_Span_Func

#define FT_Raster_Span_Func   FT_SpanFunc

Definition at line 903 of file ftimage.h.

Typedef Documentation

◆ FT_BBox

typedef struct FT_BBox_ FT_BBox

◆ FT_Bitmap

typedef struct FT_Bitmap_ FT_Bitmap

◆ FT_Glyph_Format

◆ FT_Outline

typedef struct FT_Outline_ FT_Outline

◆ FT_Outline_ConicToFunc

typedef int(* FT_Outline_ConicToFunc) (const FT_Vector *control, const FT_Vector *to, void *user)

@functype: FT_Outline_ConicToFunc

@description: A function pointer type used to describe the signature of a 'conic to' function during outline walking or decomposition.

A 'conic to' is emitted to indicate a second-order Bezier arc in the outline.

@input: control :: An intermediate control point between the last position and the new target in to.

to :: A pointer to the target end point of the conic arc.

user :: A typeless pointer, which is passed from the caller of the decomposition function.

Returns
: Error code. 0~means success.

Definition at line 570 of file ftimage.h.

◆ FT_Outline_CubicToFunc

typedef int(* FT_Outline_CubicToFunc) (const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, void *user)

@functype: FT_Outline_CubicToFunc

@description: A function pointer type used to describe the signature of a 'cubic to' function during outline walking or decomposition.

A 'cubic to' is emitted to indicate a third-order Bezier arc.

@input: control1 :: A pointer to the first Bezier control point.

control2 :: A pointer to the second Bezier control point.

to :: A pointer to the target end point.

user :: A typeless pointer, which is passed from the caller of the decomposition function.

Returns
: Error code. 0~means success.

Definition at line 606 of file ftimage.h.

◆ FT_Outline_Funcs

◆ FT_Outline_LineToFunc

typedef int(* FT_Outline_LineToFunc) (const FT_Vector *to, void *user)

@functype: FT_Outline_LineToFunc

@description: A function pointer type used to describe the signature of a 'line to' function during outline walking/decomposition.

A 'line to' is emitted to indicate a segment in the outline.

@input: to :: A pointer to the target point of the 'line to'.

user :: A typeless pointer, which is passed from the caller of the decomposition function.

Returns
: Error code. 0~means success.

Definition at line 536 of file ftimage.h.

◆ FT_Outline_MoveToFunc

typedef int(* FT_Outline_MoveToFunc) (const FT_Vector *to, void *user)

@functype: FT_Outline_MoveToFunc

@description: A function pointer type used to describe the signature of a 'move to' function during outline walking/decomposition.

A 'move to' is emitted to start a new contour in an outline.

@input: to :: A pointer to the target point of the 'move to'.

user :: A typeless pointer, which is passed from the caller of the decomposition function.

Returns
: Error code. 0~means success.

Definition at line 507 of file ftimage.h.

◆ FT_Pixel_Mode

◆ FT_Raster

typedef struct FT_RasterRec_* FT_Raster

A raster is a scan converter, in charge of rendering an outline into a bitmap. This section contains the public API for rasters.

Note that in FreeType 2, all rasters are now encapsulated within specific modules called 'renderers'. See ftrender.h for more details on renderers.

Definition at line 828 of file ftimage.h.

◆ FT_Raster_BitSet_Func

typedef void(* FT_Raster_BitSet_Func) (int y, int x, void *user)

@functype: FT_Raster_BitSet_Func

@description: Deprecated, unimplemented.

Definition at line 928 of file ftimage.h.

◆ FT_Raster_BitTest_Func

typedef int(* FT_Raster_BitTest_Func) (int y, int x, void *user)

@functype: FT_Raster_BitTest_Func

@description: Deprecated, unimplemented.

Definition at line 914 of file ftimage.h.

◆ FT_Raster_DoneFunc

typedef void(* FT_Raster_DoneFunc) (FT_Raster raster)

@functype: FT_Raster_DoneFunc

@description: A function used to destroy a given raster object.

@input: raster :: A handle to the raster object.

Definition at line 1095 of file ftimage.h.

◆ FT_Raster_Funcs

◆ FT_Raster_NewFunc

typedef int(* FT_Raster_NewFunc) (void *memory, FT_Raster *raster)

@functype: FT_Raster_NewFunc

@description: A function used to create a new raster object.

@input: memory :: A handle to the memory allocator.

@output: raster :: A handle to the new raster object.

Returns
: Error code. 0~means success.
Note
: The memory parameter is a typeless pointer in order to avoid un-wanted dependencies on the rest of the FreeType code. In practice, it is an @FT_Memory object, i.e., a handle to the standard FreeType memory allocator. However, this field can be completely ignored by a given raster implementation.

Definition at line 1076 of file ftimage.h.

◆ FT_Raster_Params

◆ FT_Raster_RenderFunc

typedef int(* FT_Raster_RenderFunc) (FT_Raster raster, const FT_Raster_Params *params)

@functype: FT_Raster_RenderFunc

@description: Invoke a given raster to scan-convert a given glyph image into a target bitmap.

@input: raster :: A handle to the raster object.

params :: A pointer to an @FT_Raster_Params structure used to store the rendering parameters.

Returns
: Error code. 0~means success.
Note
: The exact format of the source image depends on the raster's glyph format defined in its @FT_Raster_Funcs structure. It can be an @FT_Outline or anything else in order to support a large array of glyph formats.

Note also that the render function can fail and return a FT_Err_Unimplemented_Feature error code if the raster used does not support direct composition.

Definition at line 1195 of file ftimage.h.

◆ FT_Raster_ResetFunc

typedef void(* FT_Raster_ResetFunc) (FT_Raster raster, unsigned char *pool_base, unsigned long pool_size)

@functype: FT_Raster_ResetFunc

@description: FreeType used to provide an area of memory called the 'render pool' available to all registered rasterizers. This was not thread safe, however, and now FreeType never allocates this pool.

This function is called after a new raster object is created.

@input: raster :: A handle to the new raster object.

pool_base :: Previously, the address in memory of the render pool. Set this to NULL.

pool_size :: Previously, the size in bytes of the render pool. Set this to 0.

Note
: Rasterizers should rely on dynamic or stack allocation if they want to (a handle to the memory allocator is passed to the rasterizer constructor).

Definition at line 1129 of file ftimage.h.

◆ FT_Raster_SetModeFunc

typedef int(* FT_Raster_SetModeFunc) (FT_Raster raster, unsigned long mode, void *args)

@functype: FT_Raster_SetModeFunc

@description: This function is a generic facility to change modes or attributes in a given raster. This can be used for debugging purposes, or simply to allow implementation-specific 'features' in a given raster module.

@input: raster :: A handle to the new raster object.

mode :: A 4-byte tag used to name the mode or property.

args :: A pointer to the new mode/property to use.

Definition at line 1157 of file ftimage.h.

◆ FT_Span

typedef struct FT_Span_ FT_Span

◆ FT_SpanFunc

typedef void(* FT_SpanFunc) (int y, int count, const FT_Span *spans, void *user)

@functype: FT_SpanFunc

@description: A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the gray pixel spans on each scan line.

@input: y :: The scanline's upward y~coordinate.

count :: The number of spans to draw on this scanline.

spans :: A table of count spans to draw on the scanline.

user :: User-supplied data that is passed to the callback.

Note
: This callback allows client applications to directly render the gray spans of the anti-aliased bitmap to any kind of surfaces.

This can be used to write anti-aliased outlines directly to a given background bitmap, and even perform translucency.

Definition at line 897 of file ftimage.h.

◆ FT_Vector

typedef struct FT_Vector_ FT_Vector

Enumeration Type Documentation

◆ FT_Glyph_Format_

Enumerator
FT_GLYPH_FORMAT_NONE 
FT_GLYPH_FORMAT_COMPOSITE 
FT_GLYPH_FORMAT_BITMAP 
FT_GLYPH_FORMAT_OUTLINE 
FT_GLYPH_FORMAT_PLOTTER 
FT_GLYPH_FORMAT_NONE 
FT_GLYPH_FORMAT_COMPOSITE 
FT_GLYPH_FORMAT_BITMAP 
FT_GLYPH_FORMAT_OUTLINE 
FT_GLYPH_FORMAT_PLOTTER 

Definition at line 743 of file ftimage.h.

◆ FT_Pixel_Mode_

Enumerator
FT_PIXEL_MODE_NONE 
FT_PIXEL_MODE_MONO 
FT_PIXEL_MODE_GRAY 
FT_PIXEL_MODE_GRAY2 
FT_PIXEL_MODE_GRAY4 
FT_PIXEL_MODE_LCD 
FT_PIXEL_MODE_LCD_V 
FT_PIXEL_MODE_BGRA 
FT_PIXEL_MODE_MAX 
FT_PIXEL_MODE_NONE 
FT_PIXEL_MODE_MONO 
FT_PIXEL_MODE_GRAY 
FT_PIXEL_MODE_GRAY2 
FT_PIXEL_MODE_GRAY4 
FT_PIXEL_MODE_LCD 
FT_PIXEL_MODE_LCD_V 
FT_PIXEL_MODE_BGRA 
FT_PIXEL_MODE_MAX 

Definition at line 180 of file ftimage.h.

Variable Documentation

◆ FT_Pos

FT_BEGIN_HEADER typedef signed long FT_Pos

ftimage.h

FreeType glyph image formats and default raster interface (specification).

Copyright (C) 1996-2020 by David Turner, Robert Wilhelm, and Werner Lemberg.

This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully. Note: A 'raster' is simply a scan-line converter, used to render FT_Outlines into FT_Bitmaps.

Examples
/dev/shm/warix/file_cache/windows/misc/w32tex-src.tar.xz/ktx/libs/freetype/include/freetype/freetype.h, /dev/shm/warix/file_cache/windows/misc/w32tex-src.tar.xz/ktx/libs/freetype/include/freetype/ftoutln.h, /dev/shm/warix/file_cache/windows/misc/w32tex-src.tar.xz/ptx/libs/freetype/include/freetype/freetype.h, and /dev/shm/warix/file_cache/windows/misc/w32tex-src.tar.xz/ptx/libs/freetype/include/freetype/ftoutln.h.

Definition at line 57 of file ftimage.h.

Referenced by _cairo_ft_scaled_glyph_init(), af_direction_compute(), af_glyph_hints_align_strong_points(), af_glyph_hints_reload(), af_iup_interp(), af_iup_shift(), af_latin_align_linked_edge(), af_latin_compute_stem_width(), af_latin_hint_edges(), af_latin_hints_apply(), af_latin_hints_compute_blue_edges(), af_latin_hints_compute_edges(), af_latin_hints_compute_segments(), af_latin_hints_link_segments(), af_latin_metrics_init_blues(), af_latin_metrics_init_widths(), af_latin_metrics_scale_dim(), af_latin_snap_width(), af_latin_sort_blue(), af_loader_embolden_glyph_in_slot(), af_loader_load_glyph(), af_sort_and_quantize_widths(), af_sort_pos(), BDF_Face_Init(), BDF_Glyph_Load(), cf2_blues_init(), cf2_getBlueValues(), cf2_getFamilyBlues(), cf2_getFamilyOtherBlues(), cf2_getOtherBlues(), cf2_interpT2CharString(), cff_size_request(), cff_slot_load(), compute_glyph_metrics(), cubic_peak(), FcFreeTypeSpacing(), FNT_Load_Glyph(), FT_Bitmap_Blend(), ft_bitmap_glyph_bbox(), ft_conic_split(), ft_corner_is_flat(), ft_cubic_split(), FT_Get_Kerning(), FT_GlyphSlot_Embolden(), ft_glyphslot_grid_fit_metrics(), ft_glyphslot_preset_bitmap(), FT_Matrix_Invert(), FT_Outline_Decompose(), FT_Outline_Get_CBox(), FT_Outline_Get_Orientation(), ft_raster1_render(), ft_smooth_raster_lcd(), ft_smooth_raster_lcdv(), ft_smooth_render(), ft_synthesize_vertical_metrics(), ft_trig_prenorm(), FT_Vector_NormLen(), FT_Vector_Rotate(), FT_Vector_Transform(), FT_Vector_Transform_Scaled(), ftc_snode_load(), gray_raster_render(), gxv_prop_zero_advance_validate(), SplashFTFont::makeGlyph(), PCF_Glyph_Load(), pfr_face_init(), pfr_slot_load(), psh_blues_scale_zones(), psh_blues_snap_stem(), psh_compute_dir(), psh_dimension_quantize_len(), psh_globals_scale_widths(), psh_glyph_compute_inflections(), psh_glyph_find_blue_points(), psh_glyph_init(), psh_glyph_interpolate_normal_points(), psh_glyph_interpolate_other_points(), psh_glyph_interpolate_strong_points(), psh_hint_align(), psh_hint_table_find_strong_points(), T1_Face_Init(), t1_hints_stem(), t1_make_subfont(), t2_hints_stems(), TT_Load_Simple_Glyph(), and TT_Process_Composite_Component().