add font usage info

This commit is contained in:
Ben Harris 2020-02-19 20:06:25 -05:00
parent 9cb60b7fa4
commit 43c5b5a113
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ $fontname = $matches[1];
<p></p>
<p>here's a sample of the font</p>
<p>you can use this font by importing it or linking it as a stylesheet:</p>
<pre>@import https://tilde.team/~ben/fonts/<?=$font?>/font.css;</pre>
<pre>&lt;link rel="stylesheet" href="https://tilde.team/~ben/fonts/<?=$font?>/font.css"&gt;</pre>
<p>and then using the font name in a font-face css rule:</p>
<pre>* { font-family: '<?=$fontname?>'; }</pre>
<hr>