package fontforge-of-ocaml

  1. Overview
  2. Docs

Lookup Tables

module Script : sig ... end

Languages within Script

module Table : sig ... end

Typography Table

module Feature : sig ... end

Feature classification

module TypedFeature : sig ... end

Typed Feature

module PredefinedFeature : sig ... end

Predefined Features

Fontforge

type coord = float * float
module type Attr = sig ... end
module PsMat : sig ... end

PsMat which provides quick access to some useful transformations expressed as PostScript matrices. API: complete (compared to the Python API) except that the type PsMat.t become abstract.

module Point : sig ... end

Point API: complete (compared to the Python API) except the Pickling Method reduce.

Layer

module Layer : sig ... end

A Layer is a collection of Contours. All the contours must be the same order (all quadratic or all cubic). Currently layers do not contain references. Layers may be compared to see if their contours are similar. API: TODO

module GlyphPen : sig ... end

GlyphPen Protocol to draw into a Glyph You create a glyphPen with the GlyphPen function of a glyph. You then draw into it with the functions below. API: complete (compared to the Python API); a finalize function has been added.

module Contour : sig ... end

A Contour is a collection of points. A contour may be either based on cubic or quadratic splines.

module Glyph : sig ... end

Glyph refers to a fontforge Glyph object. It has no independent life of its own, it always lives within a font. It has all the things you expect to be associated with a glyph: a glyph name, a unicode encoding, a drawing layer, GPOS/GSUB features... This type may not be pickled. This type may not be created directly -- all glyphs are bound to a font and must be created through the font. See Font.createChar function. API: partialy implemented (compared to the Python API) but all members and functions are listed.

module Selection : sig ... end

Selection of glyphs. API: complete with some specificities about the selection requests and the iterations (compared to the Python API).

module Font : sig ... end

FontForge Font object. It generally contains a list of glyphs, an encoding to order those glyphs, a fontname, a list of GPOS/GSUB lookups and many other things. API: almost complete (all listed even the unimplemented ones) compared to the Python API.

module FontForge : sig ... end

FontForge module

OCaml

Innovation. Community. Security.