View Single Post
Old 08-21-2018, 02:06 PM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,799
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Toxaris View Post
Another forum member also mentioned to me there is another issue with the code. You used two single quotes and curly quotes instead of straight quotes (I made the changes red). It should be like this:
Code:
@font-face {
font-family: 'merida';
font-weight: normal;
font-style: normal;
src: url("./Fonts/MERIFONT.TTF");
}

.diagram{
font-family: 'merida';
font-size: 1em;
font-weight: normal;
font-style: normal;
}
Your code is right, except that the property "src" need ".." instead one ("."). I think that is a "typo" The correct sintax is:

Code:
src: url("../Fonts/MERIFONT.TTF");
By the way, "Merida" doesn't work fine under Sigil and ADE. You'll need "to fix" that font or to use another one. I could use "Case" without troubles:

Click image for larger version

Name:	Image1.png
Views:	451
Size:	119.7 KB
ID:	165770

Below you can check the respective epub. By the way, to me is a good idea to use "px" or "pt" for the font-size IN THIS CASE. The diagram won't resize but will asure always is displayed fine, even with a big font-size.

Regards
Rubén
Attached Files
File Type: epub Chess Diagram.epub (21.2 KB, 331 views)

Last edited by RbnJrg; 08-21-2018 at 02:10 PM.
RbnJrg is offline   Reply With Quote