package patoline

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val pt_of_mm : float -> float
val mm_of_pt : float -> float
val extensions : string list
type font = {
  1. file : string;
  2. offset : int;
  3. size : int;
  4. offSize : int;
  5. nameIndex : int array;
  6. dictIndex : int array;
  7. stringIndex : int array;
  8. subrIndex : string array array;
  9. gsubrIndex : string array;
  10. nominalWidth : float;
  11. defaultWidth : float;
  12. fontMatrix : float list;
}
type glyph = {
  1. glyphFont : font;
  2. glyphNumber : FTypes.glyph_id;
  3. type2 : string;
  4. glyphContents : string;
  5. mutable glyphWidth : float;
  6. mutable glyphX0 : float;
  7. mutable glyphX1 : float;
  8. mutable glyphY0 : float;
  9. mutable glyphY1 : float;
}
val glyphFont : glyph -> font
exception Index
exception Type2Int of int
type cff_num =
  1. | CFFFloat of float
  2. | CFFInt of int
exception CFFNum of cff_num
val int_of_num : cff_num -> int
val float_of_num : cff_num -> float
val print_num : Stdlib.out_channel -> cff_num -> unit
val uniqueName : font -> string
val readCFFNum : Stdlib.in_channel -> cff_num
val index : Stdlib.in_channel -> int -> int array
val strIndex : Stdlib.in_channel -> int -> string array
exception CFF_Not_found of int * int
val indexGet : Stdlib.in_channel -> int -> int -> string
val readDict : Stdlib.in_channel -> int -> int -> cff_num list Patutil.Extra.IntMap.t
val findDict : Stdlib.in_channel -> int -> int -> int -> cff_num list
val readEncoding : Stdlib.in_channel -> int -> bytes * bytes
val readCharset : Stdlib.in_channel -> int -> int -> int array
val useCharset : Stdlib.in_channel -> int -> int -> int
val loadFont : ?offset:int -> ?size:int option -> Patutil.Extra.StrMap.key -> font
val glyph_of_uchar : 'a -> 'b -> int
val glyph_of_char : 'a -> char -> int
val loadGlyph : font -> ?index:int -> FTypes.glyph_id -> glyph
val cardinal : font -> int
val outlines : glyph -> (float array * float array) list list
val glyphWidth : glyph -> float
val glyphContents : glyph -> string
val compute_bb : glyph -> unit
val glyph_y0 : glyph -> float
val glyph_y1 : glyph -> float
val glyph_x0 : glyph -> float
val glyph_x1 : glyph -> float
val glyphLSB : glyph -> float
val glyphNumber : glyph -> FTypes.glyph_id
val fontName : ?index:int -> font -> FTypes.name
val glyphName : glyph -> string
val fontBBox : ?index:int -> font -> int * int * int * int
val italicAngle : ?index:int -> font -> float
type feature_set = unit
val font_features : 'a -> 'b list
val select_features : 'a -> 'b -> unit
val apply_features : 'a -> 'b -> 'c -> 'c
val positioning : 'a -> 'b -> 'b
val writeIndex : Stdlib.Buffer.t -> string array -> unit
val writeCFFInt : Stdlib.Buffer.t -> int -> unit
exception Encoding_problem
val writeCFFFloat : Stdlib.Buffer.t -> float -> unit
val writeDict : Stdlib.Buffer.t -> cff_num list Patutil.Extra.IntMap.t -> unit
val readIndex : Stdlib.in_channel -> int -> bytes array
val skipIndex : Stdlib.in_channel -> unit
val copyIndex : Stdlib.in_channel -> bytes
type fontInfo = {
  1. mutable name : FTypes.name;
}
val fontInfo : font -> fontInfo
val setName : fontInfo -> FTypes.name -> unit
val part : int -> 'a list -> 'a list * 'a list
val subset : font -> 'a -> Patutil.Extra.IntMap.key Patutil.Extra.IntMap.t -> FTypes.glyph_id array -> Stdlib.Buffer.t
val add_kerning : 'a -> 'b -> unit
OCaml

Innovation. Community. Security.