From Fedora Project Wiki
(init)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>ttname</code> isn't quite done yet, but here's how it will work.
== Checking the metadata ==
== Checking the metadata ==


View the whole name table of a font:
View the whole name table of a font:


<pre>ttname font.ttf</code>
<pre>ttname font.ttf</pre>


View the "copyright" field of a font:
View the "copyright" field of a font:
Line 13: Line 11:
<pre>ttname --tag=license font.ttf</pre>
<pre>ttname --tag=license font.ttf</pre>


== Correcting the metadata ===
== Correcting the metadata ==
Populate the "license description" field with the contents of a file called LICENSE:
Populate the "license description" field with the contents of a file called LICENSE:
<pre>ttname --license="$(cat LICENSE)" font.ttf</pre>
<pre>ttname --license="$(cat LICENSE)" font.ttf</pre>
Line 20: Line 18:
<pre>ttname --copyright="$(head -n1 LICENSE)" --license="$(cat LICENSE)" --license-url="http://scripts.sil.org/OFL" font.ttf</pre>
<pre>ttname --copyright="$(head -n1 LICENSE)" --license="$(cat LICENSE)" --license-url="http://scripts.sil.org/OFL" font.ttf</pre>


For more information, see <code>man ttname</code> or the [https://github.com/tchollingsworth/ttname/blob/master/README.md README].
 
== Learn more ==
For more information, see <code>man ttname</code> or the [http://pythonhosted.org/ttname/ the online version].

Latest revision as of 09:37, 28 August 2013

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


Learn more

For more information, see man ttname or the the online version.