Skip to content

gfngfn/otfm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Otfm — OpenType font decoder for OCaml

%%VERSION%%

Otfm is an in-memory decoder for the OpenType font data format. It provides low-level access to font tables and functions to decode some of them.

Otfm is made of a single module and depends on Uutf. It is distributed under the ISC license.

Home page: http://erratique.ch/software/otfm Contact: Daniel Bünzli `daniel.buenzli@erratique.ch

The otfm package distributed via this repository is an extension of D. Bünzli's original version. It newly supports:

  • decoding TrueType Collection fonts,
  • decoding GPOS tables (LookupType 1, 2, 4, 5, 6, and 9),
  • decoding GSUB tables (LookupType 1, 3, and 4),
  • decoding CFF tables, and
  • encoding subset of OpenType fonts that have TrueType outlines (for PDF).

Installation (of the original version)

The original version of otfm can be installed with opam:

opam install otfm

If you don't use opam consult the opam file for build instructions and a complete specification of the dependencies.

Documentation (of the original version)

The documentation and API reference is automatically generated from the interfaces. It can be consulted online or via odig doc otfm.

Sample programs

Sample programs are located in the test directory of the distribution. They can be built with:

topkg build --tests true
  • test.byte tests the library, nothing should fail.
  • otftrip.native, among other things, reads an OpenType file and prints a human readable representation on stdout. Invoke with -help for more information.

About

OpenType font decoder for OCaml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 99.8%
  • Makefile 0.2%