View Single Post
Old 03-02-2014, 10:35 PM   #1
mrwrite
Enthusiast
mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.mrwrite ought to be getting tired of karma fortunes by now.
 
Posts: 37
Karma: 300000
Join Date: Mar 2014
Device: Nook
Unhappy Newbie with new Font

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>
mrwrite is offline   Reply With Quote