Bool :: C.uchar
File: freetype.bl
FWord :: C.short
File: freetype.bl
UFWord :: C.ushort
File: freetype.bl
Char :: C.char
File: freetype.bl
Byte :: C.uchar
File: freetype.bl
Bytes :: *Byte
File: freetype.bl
Tag :: u32
File: freetype.bl
String :: C.char
File: freetype.bl
Short :: C.short
File: freetype.bl
UShort :: C.ushort
File: freetype.bl
Int :: C.int
File: freetype.bl
UInt :: C.uint
File: freetype.bl
Long :: C.long
File: freetype.bl
ULong :: C.ulong
File: freetype.bl
Int32 :: s32
File: freetype.bl
F2Dot14 :: C.short
File: freetype.bl
F26Dot6 :: C.long
File: freetype.bl
Fixed :: C.long
File: freetype.bl
Error :: C.int
File: freetype.bl
Pointer :: *u8
File: freetype.bl
Offset :: usize
File: freetype.bl
PtrDist :: s64
File: freetype.bl
Pos :: C.long
File: freetype.bl
LOAD_DEFAULT :: 0
File: freetype.bl
LOAD_NO_SCALE ::
File: freetype.bl
LOAD_NO_HINTING ::
File: freetype.bl
LOAD_RENDER ::
File: freetype.bl
LOAD_NO_BITMAP ::
File: freetype.bl
LOAD_VERTICAL_LAYOUT ::
File: freetype.bl
LOAD_FORCE_AUTOHINT ::
File: freetype.bl
LOAD_CROP_BITMAP ::
File: freetype.bl
LOAD_PEDANTIC ::
File: freetype.bl
LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ::
File: freetype.bl
LOAD_NO_RECURSE ::
File: freetype.bl
LOAD_IGNORE_TRANSFORM ::
File: freetype.bl
LOAD_MONOCHROME ::
File: freetype.bl
LOAD_LINEAR_DESIGN ::
File: freetype.bl
LOAD_NO_AUTOHINT ::
File: freetype.bl
LOAD_COLOR ::
File: freetype.bl
LOAD_COMPUTE_METRICS ::
File: freetype.bl
LOAD_BITMAP_METRICS_ONLY ::
File: freetype.bl
LOAD_ADVANCE_ONLY ::
File: freetype.bl
LOAD_SBITS_ONLY ::
File: freetype.bl
FACE_FLAG_SCALABLE ::
File: freetype.bl
FACE_FLAG_FIXED_SIZES ::
File: freetype.bl
FACE_FLAG_FIXED_WIDTH ::
File: freetype.bl
FACE_FLAG_SFNT ::
File: freetype.bl
FACE_FLAG_HORIZONTAL ::
File: freetype.bl
FACE_FLAG_VERTICAL ::
File: freetype.bl
FACE_FLAG_KERNING ::
File: freetype.bl
FACE_FLAG_FAST_GLYPHS ::
File: freetype.bl
FACE_FLAG_MULTIPLE_MASTERS ::
File: freetype.bl
FACE_FLAG_GLYPH_NAMES ::
File: freetype.bl
FACE_FLAG_EXTERNAL_STREAM ::
File: freetype.bl
FACE_FLAG_HINTER ::
File: freetype.bl
FACE_FLAG_CID_KEYED ::
File: freetype.bl
FACE_FLAG_TRICKY ::
File: freetype.bl
FACE_FLAG_COLOR ::
File: freetype.bl
FACE_FLAG_VARIATION ::
File: freetype.bl
HINTING_FREETYPE :: 0
File: freetype.bl
HINTING_ADOBE :: 1
File: freetype.bl
LOAD_TARGET_NORMAL ::
File: freetype.bl
LOAD_TARGET_LIGHT ::
File: freetype.bl
LOAD_TARGET_MONO ::
File: freetype.bl
LOAD_TARGET_LCD ::
File: freetype.bl
LOAD_TARGET_LCD_V ::
File: freetype.bl
Encoding :: enum {
ENCODING_NONE = 0;
ENCODING_MS_SYMBOL = 1;
ENCODING_UNICODE = 2;
ENCODING_SJIS = 3;
ENCODING_PRC = 4;
ENCODING_BIG5 = 5;
ENCODING_WANSUNG = 6;
ENCODING_JOHAB = 7;
ENCODING_GB2312 = 4;
ENCODING_MS_SJIS = 3;
ENCODING_MS_GB2312 = 4;
ENCODING_MS_BIG5 = 5;
ENCODING_MS_WANSUNG = 6;
ENCODING_MS_JOHAB = 7;
ENCODING_ADOBE_STANDARD = 8;
ENCODING_ADOBE_EXPERT = 9;
ENCODING_ADOBE_CUSTOM = 10;
ENCODING_ADOBE_LATIN_1 = 11;
ENCODING_OLD_LATIN_2 = 12;
ENCODING_APPLE_ROMAN = 13;
}
File: freetype.bl
Glyph_Format :: enum {
GLYPH_FORMAT_NONE = 0;
GLYPH_FORMAT_COMPOSITE = 1668246896;
GLYPH_FORMAT_BITMAP = 1651078259;
GLYPH_FORMAT_OUTLINE = 1869968492;
GLYPH_FORMAT_PLOTTER = 1886154612;
}
File: freetype.bl
Size_Request_Type_ :: enum {
SIZE_REQUEST_TYPE_NOMINAL;
SIZE_REQUEST_TYPE_REAL_DIM = 1;
SIZE_REQUEST_TYPE_BBOX = 2;
SIZE_REQUEST_TYPE_CELL = 3;
SIZE_REQUEST_TYPE_SCALES = 4;
SIZE_REQUEST_TYPE_MAX = 5;
}
File: freetype.bl
Render_Mode :: s32
File: freetype.bl
RENDER_MODE_NORMAL :: 0
File: freetype.bl
RENDER_MODE_LIGHT :: 1
File: freetype.bl
RENDER_MODE_MONO :: 2
File: freetype.bl
RENDER_MODE_LCD :: 3
File: freetype.bl
RENDER_MODE_LCD_V :: 4
File: freetype.bl
RENDER_MODE_MAX :: 5
File: freetype.bl
Kerning_Mode_ :: enum {
KERNING_DEFAULT = 0;
KERNING_UNFITTED = 1;
KERNING_UNSCALED = 2;
}
File: freetype.bl
Library :: *u8
File: freetype.bl
Size :: *u8
File: freetype.bl
Driver :: *u8
File: freetype.bl
Memory :: *u8
File: freetype.bl
Stream :: *u8
File: freetype.bl
Face_Internal :: *u8
File: freetype.bl
SubGlyph :: *u8
File: freetype.bl
Slot_Internal :: *u8
File: freetype.bl
Color :: struct {
blue: Byte;
green: Byte;
red: Byte;
alpha: Byte;
}
File: freetype.bl
Face :: struct {
num_faces: Long;
face_index: Long;
face_flags: Long;
style_flags: Long;
num_glyphs: Long;
family_name: *String;
style_name: *String;
num_fixed_sizes: Int;
available_sizes: *Bitmap_Size;
num_charmaps: Int;
charmaps: **CharMap;
generic: Generic;
bbox: BBox;
units_per_EM: UShort;
ascender: Short;
descender: Short;
height: Short;
max_advance_width: Short;
max_advance_height: Short;
underline_position: Short;
underline_thickness: Short;
glyph: *GlyphSlot;
size: Size;
charmap: *CharMap;
driver: Driver;
memory: Memory;
stream: Stream;
sizes_list: ListRec;
autohint: Generic;
extensions: *u8;
internal: Face_Internal;
}
File: freetype.bl
GlyphSlot :: struct {
library: Library;
face: *Face;
next: *GlyphSlot;
glyph_index: UInt;
generic: Generic;
metrics: Glyph_Metrics;
linearHoriAdvance: Fixed;
linearVertAdvance: Fixed;
advance: Vector;
format: Glyph_Format;
bitmap: Bitmap;
bitmap_left: Int;
bitmap_top: Int;
outline: Outline;
num_subglyphs: UInt;
subglyphs: SubGlyph;
control_data: *u8;
control_len: s64;
lsb_delta: Pos;
rsb_delta: Pos;
other: *u8;
internal: Slot_Internal;
}
File: freetype.bl
Glyph_Metrics :: struct {
width: Pos;
height: Pos;
horiBearingX: Pos;
horiBearingY: Pos;
horiAdvance: Pos;
vertBearingX: Pos;
vertBearingY: Pos;
vertAdvance: Pos;
}
File: freetype.bl
GlyphRec :: struct {
library: *Library;
clazz: *u8;
format: Glyph_Format;
advance: Vector;
}
File: freetype.bl
Glyph :: *GlyphRec
File: freetype.bl
ListNode :: struct {
prev: *ListNode;
next: *ListNode;
data: *u8;
}
File: freetype.bl
ListRec :: struct {
head: *ListNode;
tail: *ListNode;
}
File: freetype.bl
Bitmap_Size :: struct {
height: Short;
width: Short;
size: Pos;
x_ppem: Pos;
y_ppem: Pos;
}
File: freetype.bl
Bitmap :: struct {
rows: u32;
width: u32;
pitch: s32;
buffer: *u8;
num_grays: u16;
pixel_mode: u8;
palette_mode: u8;
palette: *u8;
}
File: freetype.bl
Outline :: struct {
n_contours: s16;
n_points: s16;
points: *Vector;
tags: *s8;
contours: *s16;
flags: s32;
}
File: freetype.bl
CharMap :: struct {
face: *Face;
encoding: Encoding;
platform_id: UShort;
encoding_id: UShort;
}
File: freetype.bl
Generic :: struct {
data: *u8;
finalizer: *u8;
}
File: freetype.bl
Vector :: struct {
x: Pos;
y: Pos;
}
File: freetype.bl
BBox :: struct {
xMin: Pos;
yMin: Pos;
xMax: Pos;
yMax: Pos;
}
File: freetype.bl
Matrix :: struct {
xx: Fixed;
xy: Fixed;
yx: Fixed;
yy: Fixed;
}
File: freetype.bl
BitmapGlyphRec :: struct {
root: GlyphRec;
left: Int;
top: Int;
bitmap: Bitmap;
}
File: freetype.bl
BitmapGlyph :: *BitmapGlyphRec
File: freetype.bl
LcdFilter :: C.int
File: freetype.bl
LCD_FILTER_NONE :: 0
File: freetype.bl
LCD_FILTER_DEFAULT :: 1
File: freetype.bl
LCD_FILTER_LIGHT :: 2
File: freetype.bl
LCD_FILTER_LEGACY1 :: 3
File: freetype.bl
LCD_FILTER_LEGACY :: 16
File: freetype.bl
Init_FreeType :: fn (alibrary: *Library) Error #extern
File: freetype.bl
Done_FreeType :: fn (library: Library) Error #extern
File: freetype.bl
New_Face :: fn (library: Library, filepathname: *u8, face_index: Long, aface: **Face) Error #extern
File: freetype.bl
New_Memory_Face :: fn (library: Library, file_base: *u8, file_size: Long, face_index: Long, aface: **Face) Error #extern
File: freetype.bl
Done_Face :: fn (face: *Face) Error #extern
File: freetype.bl
Set_Pixel_Sizes :: fn (face: *Face, pixel_width: UInt, pixel_height: UInt) Error #extern
File: freetype.bl
Load_Char :: fn (face: *Face, char_code: ULong, load_flags: Int32) Error #extern
File: freetype.bl
Library_SetLcdFilter :: fn (library: Library, filter: LcdFilter) Error #extern
File: freetype.bl
Render_Glyph :: fn (slot: *GlyphSlot, render_mode: Render_Mode) Error #extern
File: freetype.bl
Get_Char_Index :: fn (face: *Face, charcode: ULong) Error #extern
File: freetype.bl
Load_Glyph :: fn (face: *Face, glyph_index: UInt, load_flags: Int32) Error #extern
File: freetype.bl
Bitmap_Convert :: fn (library: Library, source: *Bitmap, target: *Bitmap, alignment: Int) Error #extern
File: freetype.bl
Bitmap_Init :: fn (abitmap: *Bitmap) #extern
File: freetype.bl
Palette_Set_Foreground_Color :: fn (face: *Face, foreground_color: Color) Error #extern
File: freetype.bl
Library_SetLcdFilterWeights :: fn (library: Library, weights: *C.uchar) Error #extern
File: freetype.bl
Glyph_To_Bitmap :: fn (glyph: *Glyph, render_mode: Render_Mode, origin: *Vector, destroy: Bool) Error #extern
File: freetype.bl
Get_Glyph :: fn (slot: *GlyphSlot, aglyph: *Glyph) Error #extern
File: freetype.bl
Set_Transform :: fn (face: *Face, matrix: *Matrix, delta: *Vector) #extern
File: freetype.bl
Set_Char_Size :: fn (face: *Face, char_width: F26Dot6, char_height: F26Dot6, horz_resolution: UInt, vert_resolution: UInt) Error #extern
File: freetype.bl
Property_Set :: fn (library: Library, module_name: *String, property_name: *String, value: *u8) Error #extern
File: freetype.bl
Select_Charmap :: fn (face: *Face, encoding: UInt) Error #extern
File: freetype.bl
ENCODING_UNICODE ::
File: freetype.bl
ENC_TAG :: fn (a: u8, b: u8, c: u8, d: u8) UInt
File: freetype.bl