27 #ifndef CPPFREETYPE_TYPES_H_
28 #define CPPFREETYPE_TYPES_H_
31 #include FT_FREETYPE_H
35 #include <sigc++/sigc++.h>
42 extern const unsigned int MAJOR;
43 extern const unsigned int MINOR;
44 extern const unsigned int PATCH;
116 typedef FT_Error
Error;
118 typedef FT_Fixed
Fixed;
125 typedef FT_FWord
FWord;
197 template < ULong_t x1, ULong_t x2, ULong_t x3, ULong_t x4 >
211 namespace glyphformat
561 namespace render_mode
639 namespace load_target
641 template < Int32_t x >
682 namespace kerning_mode
709 template < ULong_t x1, ULong_t x2, ULong_t x3, ULong_t x4 >
879 namespace subglyph_flag
952 namespace size_request_type
1003 #endif // CPPFREETYPE_H_
Return scaled but un-grid-fitted kerning distances.
Encoding
An enumeration used to specify character sets supported by charmaps. Used in the FT_Select_Charmap AP...
FT_String String_t
simple typedef for char
SizeRequestType
An enumeration type that lists the supported size request types.
A monochrome bitmap, using 1 bit per pixel. Note that pixels are stored in most-significant order (MS...
const Int32_t NORMAL
This corresponds to the default hinting algorithm, optimized for standard gray-level rendering...
const ULong_t FIXED_SIZES
Indicates that the face contains bitmap strikes. See also the ‘num_fixed_sizes’ and ‘available_sizes’...
The Korean standard character set (KS C 5601-1992), which corresponds to MS Windows code page 1361...
const UInt_t VERTICAL_LAYOUT
Load the glyph for vertical text layout.
const UInt_t IGNORE_TRANSFORM
Indicates that the transform matrix set by FT_Set_Transform should be ignored.
FT_Bytes Bytes_t
a typedef for constant memory area
FT_PtrDist PtrDist_t
the largest signed integer type used to express a distance between two pointers
const ULong_t KERNING
Indicates that the face contains kerning information. If set, the kerning distance can be retrieved t...
FT_Pointer Pointer
simple typedef for typeless ptr
const ULong_t CID_KEYED
Set if the font is CID-keyed. In that case, the font is not accessed by glyph indices but by CID valu...
Corresponds to the Adobe Standard encoding, as found in Type 1, CFF, and OpenType/CFF fonts...
PixelMode
An enumeration type used to describe the format of pixels in a given bitmap.
const UInt32_t ARGS_ARE_XY_VALUES
FT_PtrDist PtrDist
the largest signed integer type used to express a distance between two pointers
const UInt_t BOLD
Indicates that a given face is bold.
const UInt_t NO_BITMAP
Ignore bitmap strikes when loading. Bitmap-only fonts ignore this flag.
const ULong_t FAST_GLYPHS
THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT.
const UShort_t INSTALLABLE_EMBEDDING
Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an app...
const UInt_t RENDER
Call FT_Render_Glyph after the glyph is loaded.
FT_FWord FWord_t
signed 16bit integer used to store distance in original font units
FT_ULong ULong
simple typedef for unsigned long
FT_Long Long
simple typedef for signed long
const Int32_t LCD_V
A variant of FT_LOAD_TARGET_NORMAL optimized for vertically decimated LCD displays.
const UShort_t RESTRICTED_LICENSE_EMBEDDING
Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without f...
const ULong_t HORIZONTAL
Indicates that the face contains horizontal glyph metrics. This should be set for all common formats...
FT_F2Dot14 F2Dot14
signed 2.14 fixed float type used for unit vectors
FT_Tag Tag
typedef for 32bit tags (as used in the SFNT format)
FT_FWord FWord
signed 16bit integer used to store distance in original font units
An 8-bit bitmap, generally used to represent anti-aliased glyph images. Each pixel is stored in one b...
const UShort_t NO_SUBSETTING
If this bit is set, the font may not be subsetted prior to embedding.
const UInt_t CROP_BITMAP
Indicates that the font driver should crop the loaded bitmap glyph (i.e., remove all space around its...
sigc::slot< void *, long > AllocFunc_t
a function used to allocate bytes from memory
static const ULong_t value
The font bounding box. The width and height of the ‘bbox’ field of FT_FaceRec are used to determine t...
Corresponds to the 8-bit Apple roman encoding.
FT_String String
simple typedef for char
Corresponds to the Adobe Expert encoding, as found in Type 1, CFF, and OpenType/CFF fonts...
FT_Char Char
simple typedef for signed char
sigc::slot< void, void * > GenericFinalizer_t
Describe a function used to destroy the ‘client’ data of any FreeType object. See the description of ...
const UShort_t BITMAP_EMBEDDING_ONLY
If this bit is set, only bitmaps contained in the font may be embedded; no outline data may be embedd...
FT_Error Error
FreeType error code, a value of 0 is always interpreted as a successful operation.
A 4-bit per pixel bitmap, representing embedded anti-aliased bitmaps in font files according to the O...
FT_Error Error_t
FreeType error code, a value of 0 is always interpreted as a successful operation.
FT_Byte Byte_t
simple typedef unsigned char
FT_F2Dot14 F2Dot14_t
signed 2.14 fixed float type used for unit vectors
const UInt32_t ROUND_XY_TO_GRID
FT_Pos Pos_t
used to store vectoral coordinates. depending on the context these represent distances in integer fon...
FT_F26Dot6 F26Dot6_t
signed 26.6 fixed float type used for vectoral pixel coordinates
FT_UInt16 UInt16_t
typedef for 16bit unsigned int
FT_Pointer Pointer_t
simple typedef for typeless ptr
static const Int32_t value
Corresponds to the Microsoft Symbol encoding, used to encode mathematical symbols in the 32...
This is the default render mode; it corresponds to 8-bit anti-aliased bitmaps.
const UInt_t FORCE_AUTOHINT
Indicates that the auto-hinter is preferred over the font's native hinter.
FT_Char Char_t
simple typedef for signed char
The nominal size. The ‘units_per_EM’ field of FT_FaceRec is used to determine both scaling values...
An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on LCD displays; the...
An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on rotated LCD displ...
Return the kerning vector in original font units.
const UInt32_t USE_MY_METRICS
const UInt_t LINEAR_DESIGN
Indicates that the ‘linearHoriAdvance’ and ‘linearVertAdvance’ fields of FT_GlyphSlotRec should be ke...
FT_Bytes Bytes
a typedef for constant memory area
FT_Offset Offset_t
the largest unsigned integer type used to express a file size or position or a memory block size ...
RenderMode
An enumeration type that lists the render modes supported by FreeType 2.
FT_UInt UInt
typedef for unsigned int
FT_Byte Byte
simple typedef unsigned char
const Int32_t LIGHT
A lighter hinting algorithm for non-monochrome modes.
The encoding value 0 is reserved.
sigc::slot< void *, long, long, void * > ReallocFunc_t
a function used to re-allocate a given block of memory
used for iterating over enum
const ULong_t HINTER
Set if the font driver has a hinting machine of its own. For example, with TrueType fonts...
const ULong_t SCALABLE
Indicates that the face contains outline glyphs. This doesn't prevent bitmap strikes, i.e., a face can have both this and and FT_FACE_FLAG_FIXED_SIZES set.
const UInt_t NO_SCALE
Don't scale the outline glyph loaded, but keep it in font units.
Corresponds to the Korean encoding system known as Wansung.
const UInt_t ITALIC
Indicates that a given face style is italic or oblique.
Corresponds to the Unicode character set.
const UInt_t NO_HINTING
Disable hinting.
const ULong_t VERTICAL
Indicates that the face contains vertical glyph metrics. This is only available in some formats...
const ULong_t FIXED_WIDTH
Indicates that the face contains fixed-width characters (like Courier, Lucido, MonoType, etc.).
const UInt_t NO_AUTOHINT
Disable auto-hinter.
const ULong_t EXTERNAL_STREAM
Used internally by FreeType to indicate that a face's stream was provided by the client application a...
FT_F26Dot6 F26Dot6
signed 26.6 fixed float type used for vectoral pixel coordinates
FT_Fixed Fixed_t
Used to store 16.16 fixed float values, like scaling values or matrix coefficients.
FT_Int16 Int16
typedef for 16bit integer
FT_Tag Tag_t
typedef for 32bit tags (as used in the SFNT format)
Return scaled and grid-fitted kerning distances (value is 0).
const UInt_t NO_RECURSE
This flag is only used internally.
FT_UInt UInt_t
typedef for unsigned int
Corresponds to an encoding system for Traditional Chinese as used in Taiwan and Hong Kong...
A 2-bit per pixel bitmap, used to represent embedded anti-aliased bitmaps in font files according to ...
size_request_type::SizeRequestType SizeRequestType
FT_UShort UShort
simple typedef for unsigned short
FT_ULong ULong_t
simple typedef for unsigned long
const ULong_t TRICKY
Set if the font is ‘tricky’, this is, it always needs the font format's native hinting engine to get ...
The ‘max_advance_width’ field of FT_FaceRec is used to determine the horizontal scaling value; the ve...
FT_Int32 Int32_t
typedef for 32bit signed int
This mode corresponds to 1-bit bitmaps (with 2 levels of opacity).
Corresponds to Japanese SJIS encoding.
const ULong_t MULTIPLE_MASTERS
Indicates that the font contains multiple masters and is capable of interpolating between them...
FT_Int16 Int16_t
typedef for 16bit integer
Corresponds to a Latin-1 encoding as defined in a Type 1 PostScript font.
FT_Fixed Fixed
Used to store 16.16 fixed float values, like scaling values or matrix coefficients.
Specify the scaling values directly.
FT_UFWord UFWord_t
unsigned 16bit integer used to store distance in original font units
FT_UInt16 UInt16
typedef for 16bit unsigned int
This mode corresponds to horizontal RGB and BGR sub-pixel displays like LCD screens. It produces 8-bit bitmaps that are 3 times the width of the original glyph outline in pixels, and which use the FT_PIXEL_MODE_LCD mode.
This is equivalent to FT_RENDER_MODE_NORMAL. It is only defined as a separate value because render mo...
const Int32_t LCD
A variant of FT_LOAD_TARGET_NORMAL optimized for horizontally decimated LCD displays.
This value is deprecated and was never used nor reported by FreeType. Don't use or test for it...
FT_Short Short
simlpe typedef for signed short
Corresponds to a custom encoding, as found in Type 1, CFF, and OpenType/CFF fonts.
const UInt32_t ARGS_ARE_WORDS
FT_UInt32 UInt32
typedef for 32bit unsigned int
const ULong_t SFNT
Indicates that the face uses the ‘sfnt’ storage scheme. For now, this means TrueType and OpenType...
const ULong_t GLYPH_NAMES
Indicates that the font contains glyph names that can be retrieved through FT_Get_Glyph_Name. Note that some TrueType fonts contain broken glyph name tables. Use the function FT_Has_PS_Glyph_Names when needed.
FT_Long Long_t
simple typedef for signed long
FT_Offset Offset
the largest unsigned integer type used to express a file size or position or a memory block size ...
const UInt_t MONOCHROME
This flag is used with FT_LOAD_RENDER to indicate that you want to render an outline glyph to a 1-bit...
FT_Pos Pos
used to store vectoral coordinates. depending on the context these represent distances in integer fon...
const UInt_t PEDANTIC
Indicates that the font driver should perform pedantic verifications during glyph loading...
FT_UInt32 UInt32_t
typedef for 32bit unsigned int
This mode corresponds to vertical RGB and BGR sub-pixel displays (like PDA screens, rotated LCD displays, etc.). It produces 8-bit bitmaps that are 3 times the height of the original glyph outline in pixels and use the FT_PIXEL_MODE_LCD_V mode.
const Int32_t MONO
Strong hinting algorithm that should only be used for monochrome output. The result is probably unple...
FT_Bool Bool_t
used for simple booleans, 1=true, 0=false
static const ULong_t value
sigc::slot< void, void * > FreeFunc_t
a function used to release a given block of memory
glyphformat::GlyphFormat GlyphFormat
FT_Short Short_t
simlpe typedef for signed short
const UInt_t DEFAULT
Corresponding to 0, this value is used as the default glyph load operation.
FT_Bool Bool
used for simple booleans, 1=true, 0=false
template used to replace the FT_ENC_TAG macro: converts four-letter tags into an unsigned long type ...
const UShort_t PREVIEW_AND_PRINT_EMBEDDING
If this bit is set, the font may be embedded and temporarily loaded on the remote system...
FT_UShort UShort_t
simple typedef for unsigned short
const UShort_t EDITABLE_EMBEDDING
If this bit is set, the font may be embedded but must only be installed temporarily on other systems...
encoding::Encoding Encoding
FT_Int Int
typedef for int
template used to replace the FT_IMAGE_TAG macro: converts four-letter tags into an unsigned long type...
The real dimension. The sum of the the ‘ascender’ and (minus of) the ‘descender’ fields of FT_FaceRec...
FT_Int32 Int32
typedef for 32bit signed int
FT_UFWord UFWord
unsigned 16bit integer used to store distance in original font units
Corresponds to an encoding system for Simplified Chinese as used used in mainland China...
FT_Int Int_t
typedef for int