View Single Post
Old 07-14-2010, 11:58 AM   #1
troymc
Groupie
troymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enough
 
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
Sigil + embedded font variants

Does Sigil handle embedded fonts with separate styles/weights?

eg. I've embedded Libertine (below is my @font-face setup), and declared font-family: "Libertine"; for <body>.

But in book view Sigil does not show any italic or bold variations, only the regular font face. I'm fairly confident I'm seeing the embedded font due to the presence of ligatures which are in the text but not in the default font.

However when I put the epub on my Nook I do see the variations. I know some ereaders will fake italic/bold using the normal face, but I'm pretty sure that's not happening since the actual italic face is actually missing some characters that the normal face has and I'm seeing the correct missing characters on the Nook.

Code:
/*
 * ======== Linux Libertine ========
 */
@font-face {
	font-family: "Libertine";
	font-style: normal;
	font-weight: normal;
	src: url(../Fonts/LinLibertine_Re.ttf);
}
@font-face {
	font-family: "Libertine";
	font-style: italic;
	font-weight: normal;
	src: url(../Fonts/LinLibertine_It.ttf);
}
@font-face {
	font-family: "Libertine";
	font-style: normal;
	font-weight: bold;
	src: url(../Fonts/LinLibertine_Bd.ttf);
}
@font-face {
	font-family: "Libertine";
	font-style: italic;
	font-weight: bold;
	src: url(../Fonts/LinLibertine_BI.ttf);
}
I hope that makes sense to someone....


Troy
troymc is offline   Reply With Quote