Thread: Fonts - Help
View Single Post
Old 09-06-2013, 06:23 AM   #7
Gallips
Member
Gallips began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2013
Device: Kobo Touch (N905)
Hi and thanks for the prompt replies.

Since I want Georgia or Garamond font tipes and because Sigil and my e-reader (kobo touch) recognizes them, I removed the font face.
Now I only have them applied on body, P, H1, H2 and H3, Like this:


Code:
body {
	font-size: 1em;
	line-height: 1.33em;
	font-family: 'Georgia', serif;
}

p {
	padding: 0;
	margin: 0;
	text-align: justify;

h1 {
	font-size: 1.5em;
	line-height: 1.33em;
	text-align: center;
	text-align: center;
	text-transform: uppercase;
	font-weight: normal;
	letter-spacing: 4px;
}

h2 {
	text-align: center;
	font-size: 1.33em;
	line-height: 1.2em;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 3px;
}

h3 {
	text-align: center;
	font-size: 1.10em;
	line-height: 1.2em;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 3px;
}
Quote:
Originally Posted by DiapDealer View Post
You shouldn't have had to assign the font-family to all p elements in order to get it to work for just the h[123] elements. It looks like you did everything right (so long as you actually added the ttf font files to the epub), so just remember that you don't really want to use Sigil's viewer as the sole means of verifying that your embedded fonts are "working" or not. Use ADE or an actual device to know for sure.

P.S. Not sure why adding the Georgia font-family to your paragraph style would make your Garamond fonts start working.
I did just what you said and worked great, both in ADE and in my Kobo Touch. Thank you so much =D


Quote:
Originally Posted by RbnJrg View Post
Hi Gallips;

You defined the fonts well but the problems are here:

Code:
h1 { 
    font-family: 'Garamond', serif;
}

h3 { 
    font-family: 'Garamond', serif;
}
You only defined the font-family but also you have to defined font-style and font-weight. Since all fonts definitions have the same name ("Garamond") Sigil doesn't know what font to aply. So, you should use:



or, if you wish italics:



Regards
Rubén
I did that. Thanks. It worked just fine.
Gallips is offline   Reply With Quote