FreetypeSourcetype for Freetype library
init () initializes the Freetype library. The returned library is required to load fonts.
Type for face
type face_info = {num_faces : int;num_glyphs : int;family_name : string;style_name : string;has_horizontal : bool;has_vertical : bool;has_kerning : bool;is_scalable : bool;is_sfnt : bool;is_fixed_width : bool;has_fixed_sizes : bool;has_fast_glyphs : bool;has_glyph_names : bool;has_multiple_masters : bool;}new_face library fontfile n loads n-th font stored in the font file fontfile, and returns its face and face information.
Returns number of glyphs stored in the face. Equivalent to face_info.num_glyphs
set_char_size face charw charh resh resv sets the character size of face. charw and charh are the points of the characters in width and height. resh and resv are the horizontal and vertical resolution (in dpi)
set_pixel_sizes face pixw pixh also sets the character size of face. pixw and pixh are standard width and height of characters in pixels.
matrix and vector
bitmap ops
glyph metrics
type glyph_metrics = {gm_width : float;gm_height : float;gm_hori : bearing_advance;gm_vert : bearing_advance;}size metrics
outline info