package patoline

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val extensions : string list
val offsetTable : int
val dirSize : int
exception Table_not_found of string
type ttf = {
  1. ttf_version : string;
  2. ttf_file : string;
  3. ttf_offset : int;
  4. ttf_cadratin : float;
}
type cff = {
  1. cff_font : CFF.font;
  2. cff_offset : int;
}
type font =
  1. | CFF of cff
  2. | TTF of ttf
type ttfglyph = {
  1. ttf_font : ttf;
  2. ttf_glyph_id : FTypes.glyph_id;
  3. mutable ttf_width : float;
  4. mutable ttf_x0 : float;
  5. mutable ttf_x1 : float;
  6. mutable ttf_y0 : float;
  7. mutable ttf_y1 : float;
}
type glyph =
  1. | CFFGlyph of cff * CFF.glyph
  2. | TTFGlyph of ttfglyph
val tableLookup : string -> Stdlib.in_channel -> int -> int * int
val tableList : Stdlib.in_channel -> int -> string list
val fontBBox : font -> int * int * int * int
val cadratin : font -> int
val loadFont : ?offset:int -> ?size:'a option -> Patutil.Extra.StrMap.key -> font
val uniqueName : font -> string
val getNames : Patutil.Extra.StrMap.key -> int -> (int * int * string) list
val fontName : ?index:int -> font -> FTypes.name
val cardinal : font -> int
val italicAngle : font -> float
val ascender : font -> float
val descender : font -> float
val glyph_of_uchar : font -> Unicodelib.UChar.uchar -> int
val glyph_of_char : font -> char -> int
val read_cmap : font -> int Patutil.Extra.IntMap.t
val glyphFont : glyph -> font
val loadGlyph : font -> ?index:int -> FTypes.glyph_id -> glyph
val read2dot14 : Stdlib.in_channel -> float
val compute_bb : ttfglyph -> unit
val font_glyph_y0 : glyph -> float
val font_glyph_y1 : glyph -> float
val font_glyph_x0 : glyph -> float
val font_glyph_x1 : glyph -> float
val glyphNumber : glyph -> FTypes.glyph_id
val glyphContents : glyph -> string
val glyphName : glyph -> string
val glyphLSB : glyph -> float
val otype_file : font -> string * int
val coverageIndex : Stdlib.in_channel -> int -> int -> int
val class_def : Stdlib.in_channel -> int -> int -> int
val readCoverageIndex : Stdlib.in_channel -> int -> (int * int) list
val readClass : Stdlib.in_channel -> int -> (int * int) list
val readLookup : Stdlib.in_channel -> int -> int -> FTypes.substitution list
val applyLookup : Stdlib.in_channel -> int -> int -> FTypes.glyph_id list -> FTypes.glyph_id list
val read_gsub : font -> FTypes.substitution list array
val read_lookup : font -> int -> FTypes.substitution list
val alternates : string
val smallCapitals : string
val caseSensitiveForms : string
val discretionaryLigatures : string
val denominators : string
val fractions : string
val standardLigatures : string
val liningFigures : string
val localizedForms : string
val numerators : string
val oldStyleFigures : string
val ordinals : string
val ornaments : string
val proportionalFigures : string
val stylisticAlternates : string
val scientificInferiors : string
val subscript : string
val superscript : string
val titling : string
val tabularFigures : string
val slashedZero : string
type feature_set = {
  1. gsubOff : int;
  2. lookups : int list;
}
val select_features : font -> string list -> feature_set
val apply_features : font -> feature_set -> FTypes.glyph_id list -> FTypes.glyph_id list
val font_features : font -> string list
val read_scripts : font -> unit
val gpos : font -> FTypes.glyph_ids list -> FTypes.glyph_ids list
val positioning : font -> FTypes.glyph_ids list -> FTypes.glyph_ids list
type fontInfo = {
  1. mutable tables : bytes Patutil.Extra.StrMap.t;
  2. mutable fontType : string;
  3. mutable names : (int * int * string) list;
}
val getInt2 : string -> int -> int
val getInt4 : string -> int -> int
val sgetInt2 : string -> int -> int
val fontInfo : font -> fontInfo
val checksum32 : Stdlib.Buffer.t -> int32
val str_checksum32 : string -> int32
val buf_checksum32 : Stdlib.Buffer.t -> int32
val total_checksum : int32 -> int32 -> int32 -> int32
val write_cff : fontInfo -> Stdlib.Buffer.t
val make_tables : font -> fontInfo -> int Patutil.Extra.IntMap.t -> FTypes.glyph_id array -> unit
val setName : fontInfo -> FTypes.name -> unit
val subset : font -> fontInfo -> int Patutil.Extra.IntMap.t -> FTypes.glyph_id array -> Stdlib.Buffer.t
val add_kerning : fontInfo -> (Patutil.Extra.IntMap.key * int * 'a FTypes.kerningBox * 'b FTypes.kerningBox) list -> unit
val glyph_x0 : glyph -> float
val glyph_x1 : glyph -> float
val glyph_y0 : glyph -> float
val glyph_y1 : glyph -> float
val glyphWidth : glyph -> float
val outlines : glyph -> (float array * float array) list list
OCaml

Innovation. Community. Security.