package patoline

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type glyph_id = {
  1. glyph_utf8 : string;
  2. glyph_index : int;
}
type 'a kerningBox = {
  1. advance_height : float;
  2. advance_width : float;
  3. kern_x0 : float;
  4. kern_y0 : float;
  5. kern_contents : 'a;
}
type glyph_ids =
  1. | KernID of glyph_ids kerningBox
  2. | GlyphID of glyph_id
type name = {
  1. mutable postscript_name : string;
  2. mutable full_name : string;
  3. mutable family_name : string;
  4. mutable subfamily_name : string;
}
exception Glyph_not_found of string * string
val empty_kern : 'a -> 'a kerningBox
val empty_glyph : glyph_id
val glyph_id_cont : glyph_ids -> int
val glyph_id_utf8 : glyph_ids -> string
type subst = {
  1. original_glyphs : int array;
  2. subst_glyphs : int array;
}
type chain = {
  1. before : int list array;
  2. input : int list array;
  3. after : int list array;
}
type substitution =
  1. | Alternative of int array
  2. | Subst of subst
  3. | Chain of chain
  4. | Context of (int * substitution list) array
val print_int_array : int array -> unit
val print_int_list : int list -> unit
val print_subst : substitution -> unit
val apply_ligature : subst -> glyph_id list -> glyph_id list
val apply_subst : subst -> glyph_id list -> glyph_id list
val apply_alternative : int array -> int -> glyph_id list -> glyph_id list
val apply : substitution -> glyph_id list -> glyph_id list
OCaml

Innovation. Community. Security.