module Ftlow:sig
..end
type
library
val init : unit -> library
val close : library -> unit
type
face
type
face_info = {
|
num_faces : |
|
num_glyphs : |
|
family_name : |
|
style_name : |
|
has_horizontal : |
|
has_vertical : |
|
has_kerning : |
|
is_scalable : |
|
is_sfnt : |
|
is_fixed_width : |
|
has_fixed_sizes : |
|
has_fast_glyphs : |
|
has_glyph_names : |
|
has_multiple_masters : |
val new_face : library -> string -> int -> face
val face_info : face -> face_info
val done_face : face -> unit
val get_num_glyphs : face -> int
val set_char_size : face -> int -> int -> int -> int -> unit
val set_pixel_sizes : face -> int -> int -> unit
type
charmap = {
|
platform_id : |
|
encoding_id : |
val get_charmaps : face -> charmap list
val set_charmap : face -> charmap -> unit
val get_char_index : face -> int -> int
type
render_mode =
| |
Render_Normal |
(* |
default
| *) |
| |
Render_Mono |
type
load_flag =
| |
Load_no_scale |
| |
Load_no_hinting |
val load_glyph : face -> int -> load_flag list -> int * int
val load_char : face -> int -> load_flag list -> int * int
val render_glyph_of_face : face -> render_mode -> unit
val render_glyph : face -> int -> load_flag list -> render_mode -> int * int
val render_char : face -> int -> load_flag list -> render_mode -> int * int
val set_transform : face -> int * int * int * int -> int * int -> unit
type
bitmap_info = {
|
bitmap_left : |
|
bitmap_top : |
|
bitmap_width : |
|
bitmap_height : |
val get_bitmap_info : face -> bitmap_info
val read_bitmap : face -> int -> int -> int
type
bbox = {
|
xmin : |
(* |
26.6
| *) |
|
ymin : |
(* |
26.6
| *) |
|
xmax : |
(* |
26.6
| *) |
|
ymax : |
(* |
26.6
| *) |
type
bearing_advance = {
|
bearingx : |
(* |
26.6
| *) |
|
bearingy : |
(* |
26.6
| *) |
|
advance : |
(* |
26.6
| *) |
type
glyph_metrics = {
|
gm_width : |
(* |
26.6
| *) |
|
gm_height : |
(* |
26.6
| *) |
|
gm_hori : |
|||
|
gm_vert : |
val get_glyph_metrics : face -> glyph_metrics
type
size_metrics = {
|
x_ppem : |
|||
|
y_ppem : |
|||
|
x_scale : |
(* |
16.16
| *) |
|
y_scale : |
(* |
16.16
| *) |
val get_size_metrics : face -> size_metrics
type
outline_tag =
| |
On_point |
| |
Off_point_conic |
| |
Off_point_cubic |
type
outline_contents = {
|
n_contours : |
|
n_points : |
|
points : |
|
: |
|
contours : |
val get_outline_contents : face -> outline_contents