From Fedora Project Wiki

< User:Patches

Revision as of 02:22, 25 July 2013 by Patches (talk | contribs) (init)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

ttname isn't quite done yet, but here's how it will work.

Checking the metadata

View the whole name table of a font:

ttname font.ttf</code>

View the "copyright" field of a font:
<pre>ttname --tag=copyright font.ttf

View the "license description" field of a font:

ttname --tag=license font.ttf

Correcting the metadata =

Populate the "license description" field with the contents of a file called LICENSE:

ttname --license="$(cat LICENSE)" font.ttf

Fix all the fields at once:

ttname --copyright="$(head -n1 LICENSE)" --license="$(cat LICENSE)" --license-url="http://scripts.sil.org/OFL" font.ttf

For more information, see man ttname or the README.