Add an option for dumping a single table

This commit is contained in:
2024-02-06 12:14:07 +01:00
parent 3160ceab08
commit 23271d6f6c
6 changed files with 164 additions and 87 deletions

View File

@ -1,4 +1,4 @@
# TrueType font parser.
# TrueType font parser
Fountainhead is a TrueType and OpenType font parser. Its main
purpose is to extract information from the fonts to help to
@ -10,24 +10,27 @@ There is also an executable to dump fonts.
## Installation
Add the library as dependency to your project.
Alternatively build and run the executable with:
Alternatively build an executable with:
```sh
cabal build
```
The binary can be executed with:
The binary can be run with:
```sh
cabal run fountainhead --
cabal run fountainhead -- myfont.ttf
```
or installed locally and executed just as:
```sh
fountainhead
fountainhead myfont.ttf
```
This command will output the contents of the font in a format similar to
ttfdump from TeXLive.
See
```sh