I get it that there are only 2 fonts for the epub unless you add your own.
I get it that a style sheet is needed for each new font used.
I don't get... How does anyone code the new font into the document?
Does the ENTIRE DOCUMENT need to be in CSS?
I want to show the text within a box as monospaced font.
My CSS file:
@font-face{
font-family: 'texgyrecursor';
font-weight: normal;
font-style: normal;
scr:url('../Fonts/texgyrecursor.otf');
}
[The file is texgyrecursor.otf but the name displays as TeXGyreCursor in
OpenOffice. That might be ONE problem. For now it make no difference.]
Here is the code for the page (skipping a lot of words within the box).
Quote:
<head>
<title>16-Lettered Words</title>
</head>
<h1><font face="Arial serif">16-Lettered Words</font></h1><body>
<style>{
font-family:'texgyrecursor',
font-style:normal;}</style>
<p><br/></p>
<table border="1" cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr>
<td valign="top">OLIGODENDROGLIA<br/>
</td>
<td valign="top">NEUROPATHOLOGIC<br/>
<br/></td>
</tr>
</tbody>
</table>
</body>
</html>
|