Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Enumerations | Variables
ftimage.h File Reference
#include <ft2build.h>

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_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 & 3 )
 
#define FT_CURVE_TAG_ON   1
 
#define FT_CURVE_TAG_CONIC   0
 
#define FT_CURVE_TAG_CUBIC   2
 
#define FT_CURVE_TAG_HAS_SCANMODE   4
 
#define FT_CURVE_TAG_TOUCH_X   8 /* reserved for the TrueType hinter */
 
#define FT_CURVE_TAG_TOUCH_Y   16 /* reserved for the 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_MAX
}
 
enum  FT_Glyph_Format_ { FT_IMAGE_TAG =( FT_GLYPH_FORMAT_NONE, 0, 0, 0, 0 ), FT_IMAGE_TAG =( FT_GLYPH_FORMAT_NONE, 0, 0, 0, 0 ), FT_IMAGE_TAG =( FT_GLYPH_FORMAT_NONE, 0, 0, 0, 0 ), FT_IMAGE_TAG =( FT_GLYPH_FORMAT_NONE, 0, 0, 0, 0 ) }
 

Variables

FT_BEGIN_HEADER typedef signed long FT_Pos
 

Macro Definition Documentation

◆ FT_CURVE_TAG

#define FT_CURVE_TAG (   flag)    ( flag & 3 )

◆ FT_CURVE_TAG_CONIC

#define FT_CURVE_TAG_CONIC   0

◆ FT_Curve_Tag_Conic

#define FT_Curve_Tag_Conic   FT_CURVE_TAG_CONIC

Definition at line 529 of file ftimage.h.

◆ FT_CURVE_TAG_CUBIC

#define FT_CURVE_TAG_CUBIC   2

◆ FT_Curve_Tag_Cubic

#define FT_Curve_Tag_Cubic   FT_CURVE_TAG_CUBIC

Definition at line 530 of file ftimage.h.

◆ FT_CURVE_TAG_HAS_SCANMODE

#define FT_CURVE_TAG_HAS_SCANMODE   4

Definition at line 520 of file ftimage.h.

◆ FT_CURVE_TAG_ON

#define FT_CURVE_TAG_ON   1

◆ FT_Curve_Tag_On

#define FT_Curve_Tag_On   FT_CURVE_TAG_ON

Definition at line 528 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:522

Definition at line 525 of file ftimage.h.

◆ FT_CURVE_TAG_TOUCH_X

#define FT_CURVE_TAG_TOUCH_X   8 /* reserved for the TrueType hinter */

Definition at line 522 of file ftimage.h.

◆ FT_Curve_Tag_Touch_X

#define FT_Curve_Tag_Touch_X   FT_CURVE_TAG_TOUCH_X

Definition at line 531 of file ftimage.h.

◆ FT_CURVE_TAG_TOUCH_Y

#define FT_CURVE_TAG_TOUCH_Y   16 /* reserved for the TrueType hinter */

Definition at line 523 of file ftimage.h.

◆ FT_Curve_Tag_Touch_Y

#define FT_Curve_Tag_Touch_Y   FT_CURVE_TAG_TOUCH_Y

Definition at line 532 of file ftimage.h.

◆ ft_glyph_format_bitmap

#define ft_glyph_format_bitmap   FT_GLYPH_FORMAT_BITMAP

Definition at line 808 of file ftimage.h.

◆ ft_glyph_format_composite

#define ft_glyph_format_composite   FT_GLYPH_FORMAT_COMPOSITE

Definition at line 807 of file ftimage.h.

◆ ft_glyph_format_none

#define ft_glyph_format_none   FT_GLYPH_FORMAT_NONE

Definition at line 806 of file ftimage.h.

◆ ft_glyph_format_outline

#define ft_glyph_format_outline   FT_GLYPH_FORMAT_OUTLINE

Definition at line 809 of file ftimage.h.

◆ ft_glyph_format_plotter

#define ft_glyph_format_plotter   FT_GLYPH_FORMAT_PLOTTER

Definition at line 810 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 )
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
GLsizei const GLfloat * value

Definition at line 732 of file ftimage.h.

◆ FT_Outline_ConicTo_Func

#define FT_Outline_ConicTo_Func   FT_Outline_ConicToFunc

Definition at line 618 of file ftimage.h.

◆ FT_OUTLINE_CONTOURS_MAX

#define FT_OUTLINE_CONTOURS_MAX   SHRT_MAX

Definition at line 398 of file ftimage.h.

Referenced by FT_GlyphLoader_CheckPoints().

◆ FT_Outline_CubicTo_Func

#define FT_Outline_CubicTo_Func   FT_Outline_CubicToFunc

Definition at line 651 of file ftimage.h.

◆ FT_OUTLINE_EVEN_ODD_FILL

#define FT_OUTLINE_EVEN_ODD_FILL   0x2

Definition at line 476 of file ftimage.h.

◆ ft_outline_even_odd_fill

#define ft_outline_even_odd_fill   FT_OUTLINE_EVEN_ODD_FILL

Definition at line 506 of file ftimage.h.

◆ FT_OUTLINE_HIGH_PRECISION

#define FT_OUTLINE_HIGH_PRECISION   0x100

Definition at line 482 of file ftimage.h.

Referenced by cid_slot_load_glyph(), pfr_slot_load(), and T1_Load_Glyph().

◆ ft_outline_high_precision

#define ft_outline_high_precision   FT_OUTLINE_HIGH_PRECISION

Definition at line 509 of file ftimage.h.

◆ FT_OUTLINE_IGNORE_DROPOUTS

#define FT_OUTLINE_IGNORE_DROPOUTS   0x8

Definition at line 478 of file ftimage.h.

◆ ft_outline_ignore_dropouts

#define ft_outline_ignore_dropouts   FT_OUTLINE_IGNORE_DROPOUTS

Definition at line 508 of file ftimage.h.

◆ FT_OUTLINE_INCLUDE_STUBS

#define FT_OUTLINE_INCLUDE_STUBS   0x20

Definition at line 480 of file ftimage.h.

◆ FT_Outline_LineTo_Func

#define FT_Outline_LineTo_Func   FT_Outline_LineToFunc

Definition at line 586 of file ftimage.h.

◆ FT_Outline_MoveTo_Func

#define FT_Outline_MoveTo_Func   FT_Outline_MoveToFunc

Definition at line 559 of file ftimage.h.

◆ FT_OUTLINE_NONE

#define FT_OUTLINE_NONE   0x0

Definition at line 474 of file ftimage.h.

◆ ft_outline_none

#define ft_outline_none   FT_OUTLINE_NONE

Definition at line 504 of file ftimage.h.

◆ FT_OUTLINE_OWNER

#define FT_OUTLINE_OWNER   0x1

◆ ft_outline_owner

#define ft_outline_owner   FT_OUTLINE_OWNER

Definition at line 505 of file ftimage.h.

◆ FT_OUTLINE_POINTS_MAX

#define FT_OUTLINE_POINTS_MAX   SHRT_MAX

Definition at line 399 of file ftimage.h.

Referenced by FT_GlyphLoader_CheckPoints().

◆ FT_OUTLINE_REVERSE_FILL

#define FT_OUTLINE_REVERSE_FILL   0x4

Definition at line 477 of file ftimage.h.

Referenced by cid_slot_load_glyph(), FT_Outline_Reverse(), pfr_slot_load(), and T1_Load_Glyph().

◆ ft_outline_reverse_fill

#define ft_outline_reverse_fill   FT_OUTLINE_REVERSE_FILL

Definition at line 507 of file ftimage.h.

◆ FT_OUTLINE_SINGLE_PASS

#define FT_OUTLINE_SINGLE_PASS   0x200

Definition at line 483 of file ftimage.h.

◆ ft_outline_single_pass

#define ft_outline_single_pass   FT_OUTLINE_SINGLE_PASS

Definition at line 510 of file ftimage.h.

◆ FT_OUTLINE_SMART_DROPOUTS

#define FT_OUTLINE_SMART_DROPOUTS   0x10

Definition at line 479 of file ftimage.h.

◆ ft_pixel_mode_grays

#define ft_pixel_mode_grays   FT_PIXEL_MODE_GRAY

Definition at line 205 of file ftimage.h.

◆ ft_pixel_mode_mono

#define ft_pixel_mode_mono   FT_PIXEL_MODE_MONO

Definition at line 204 of file ftimage.h.

◆ ft_pixel_mode_none

#define ft_pixel_mode_none   FT_PIXEL_MODE_NONE

Definition at line 203 of file ftimage.h.

◆ ft_pixel_mode_pal2

#define ft_pixel_mode_pal2   FT_PIXEL_MODE_GRAY2

Definition at line 206 of file ftimage.h.

◆ ft_pixel_mode_pal4

#define ft_pixel_mode_pal4   FT_PIXEL_MODE_GRAY4

Definition at line 207 of file ftimage.h.

◆ FT_Raster_Done_Func

#define FT_Raster_Done_Func   FT_Raster_DoneFunc

Definition at line 1164 of file ftimage.h.

◆ FT_RASTER_FLAG_AA

#define FT_RASTER_FLAG_AA   0x1

Definition at line 1043 of file ftimage.h.

Referenced by FT_Outline_Get_Bitmap().

◆ ft_raster_flag_aa

#define ft_raster_flag_aa   FT_RASTER_FLAG_AA

Definition at line 1049 of file ftimage.h.

◆ FT_RASTER_FLAG_CLIP

#define FT_RASTER_FLAG_CLIP   0x4

Definition at line 1045 of file ftimage.h.

◆ ft_raster_flag_clip

#define ft_raster_flag_clip   FT_RASTER_FLAG_CLIP

Definition at line 1051 of file ftimage.h.

◆ FT_RASTER_FLAG_DEFAULT

#define FT_RASTER_FLAG_DEFAULT   0x0

Definition at line 1042 of file ftimage.h.

◆ ft_raster_flag_default

#define ft_raster_flag_default   FT_RASTER_FLAG_DEFAULT

Definition at line 1048 of file ftimage.h.

◆ FT_RASTER_FLAG_DIRECT

#define FT_RASTER_FLAG_DIRECT   0x2

Definition at line 1044 of file ftimage.h.

◆ ft_raster_flag_direct

#define ft_raster_flag_direct   FT_RASTER_FLAG_DIRECT

Definition at line 1050 of file ftimage.h.

◆ FT_Raster_New_Func

#define FT_Raster_New_Func   FT_Raster_NewFunc

Definition at line 1147 of file ftimage.h.

◆ FT_Raster_Render_Func

#define FT_Raster_Render_Func   FT_Raster_RenderFunc

Definition at line 1266 of file ftimage.h.

◆ FT_Raster_Reset_Func

#define FT_Raster_Reset_Func   FT_Raster_ResetFunc

Definition at line 1199 of file ftimage.h.

◆ FT_Raster_Set_Mode_Func

#define FT_Raster_Set_Mode_Func   FT_Raster_SetModeFunc

Definition at line 1225 of file ftimage.h.

◆ FT_Raster_Span_Func

#define FT_Raster_Span_Func   FT_SpanFunc

Definition at line 942 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)

Definition at line 614 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)

Definition at line 646 of file ftimage.h.

◆ FT_Outline_Funcs

◆ FT_Outline_LineToFunc

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

Definition at line 583 of file ftimage.h.

◆ FT_Outline_MoveToFunc

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

Definition at line 556 of file ftimage.h.

◆ FT_Pixel_Mode

◆ FT_Raster

typedef struct FT_RasterRec_* FT_Raster

Definition at line 862 of file ftimage.h.

◆ FT_Raster_BitSet_Func

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

Definition at line 997 of file ftimage.h.

◆ FT_Raster_BitTest_Func

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

Definition at line 969 of file ftimage.h.

◆ FT_Raster_DoneFunc

typedef void(* FT_Raster_DoneFunc) (FT_Raster raster)

Definition at line 1162 of file ftimage.h.

◆ FT_Raster_Funcs

◆ FT_Raster_NewFunc

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

Definition at line 1144 of file ftimage.h.

◆ FT_Raster_Params

◆ FT_Raster_RenderFunc

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

Definition at line 1263 of file ftimage.h.

◆ FT_Raster_ResetFunc

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

Definition at line 1195 of file ftimage.h.

◆ FT_Raster_SetModeFunc

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

Definition at line 1221 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)

Definition at line 937 of file ftimage.h.

◆ FT_Vector

typedef struct FT_Vector_ FT_Vector

Enumeration Type Documentation

◆ FT_Glyph_Format_

Enumerator
FT_IMAGE_TAG 
FT_IMAGE_TAG 
FT_IMAGE_TAG 
FT_IMAGE_TAG 

Definition at line 778 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_MAX 

Definition at line 172 of file ftimage.h.

Variable Documentation

◆ FT_Pos

FT_BEGIN_HEADER typedef signed long FT_Pos