View Single Post
Old 08-21-2018, 01:41 AM   #1
serendipity22
Member
serendipity22 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2018
Device: none
embedded fonts in epub

Hi,

I am using Sigil to convert html + css files to epub to create ebooks. I have found it quick and easy to use.

I want to use a public domain chess font to present chess diagrams, so switching to another font will not do. I am struggling.

In my css file I have

@font-face {

font-family: 'merida';

font-weight: normal;

font-style: normal;

src: url(“MERIFONT.TTF”);

}

.diagram{
font-family: ''merida";
font-size: 48px;
}


In my html file I have say
<html xmlns='http://www.w3.org/1999/xhtml'>
<html>
<head>
<title>chess</title>
<link rel='stylesheet' type='text/css' href='merida.css'>
</head>
<body>
<p class = 'diagram'>
XABCDEFGHY<br>
8-+-wqk+-+(<br>
7+-+-+-+-'<br>
6-+-+-+-+&<br>
5+-+-+-+-%<br>
4-+-+-+-+$<br>
3+-+-+-+-#<br>
2-+-+-+-+"<br>
1+-+QmK-+-!<br>
abcdefgh</p>
testing
</body></html>

What am I doing wrong?

I had it working but forget what I did.

Also when it was working in sigil it would not work in adobe epub reader.
serendipity22 is offline   Reply With Quote