From Fedora Project Wiki
(init) |
|||
Line 5: | Line 5: | ||
View the whole name table of a font: | View the whole name table of a font: | ||
<pre>ttname font.ttf</ | <pre>ttname font.ttf</pre> | ||
View the "copyright" field of a font: | View the "copyright" field of a font: |
Revision as of 02:22, 25 July 2013
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
View the "copyright" field of a font:
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.