Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2013, 10:48 PM   #1
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
Italic versus oblique

So, I've got this lovely EPUB with all the right spacing and appearance and everything is working beautifully every way the devices turn, except for one weird thing on the iPad in iBooks.

In every instance in which a sans serif font is used, the oblique or slanted version of the font displays as serif italic. I have tried using a span class with a sans serif font-family specified in addition to font-style set as oblique, I've tried setting the font-style to italic, but it ALWAYS displays serif italics. I feel pretty strongly about the sans serif obliques, but I don't know which permutation is going to get me there.

Before you ask, no, there is no font embedding. I spec'd the fonts that are on the iPad -- Seravek, "Gill Sans", sans-serif -- as the font-family, but they're not embedded, and I really don't want to embed them. The publisher wants to keep this as simple as possible.

Any advice on this subject is greatly appreciated! Thanks in advance.
sgirsberger is offline   Reply With Quote
Old 11-17-2013, 02:04 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Without any coding example of the xhtml and css it will be impossible to help.
Toxaris is offline   Reply With Quote
Advert
Old 11-17-2013, 02:49 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by sgirsberger View Post
I spec'd the fonts that are on the iPad -- Seravek, "Gill Sans", sans-serif -- as the font-family, but they're not embedded, and I really don't want to embed them. The publisher wants to keep this as simple as possible.
Then do not specify any font at all, just generic "serif" and "sans-serif". There's no portable way of referring to device fonts. What you are doing may work in your current iBooks (I guess) version, but it may even break in some other version/reader. (And, after all, you see it's not working in your reader now )

About the italic/slanted issue, what Toxaris says. We need to see exactly the HTML and CSS code. It might be as simple as some stray font-family property being inherited, or it could be an iBooks bug.
Jellby is offline   Reply With Quote
Old 11-17-2013, 05:27 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
To be honest, I never tried oblique for a font style, so not sure if it will work in readers. I would not be surprised if it is not generally supported in readers.
Toxaris is offline   Reply With Quote
Old 11-17-2013, 06:03 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I believe what sgirsberger is that the italic portions appear with the serif italic, instead of sans-serif italic (which is often just slanted/oblique).
Jellby is offline   Reply With Quote
Advert
Old 11-17-2013, 06:34 AM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Have you used this font before to know what it actually contains?

Unfortunately, there is no way to know how complete the font inside the iPad is.
mrmikel is offline   Reply With Quote
Old 11-17-2013, 10:02 AM   #7
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
Without any coding example of the xhtml and css it will be impossible to help.
Absolutely correct. Maybe I should substitute <em> and forget about using bold-obliques?

Examples of the xhtml:

<h4>The <span class="bold-oblique">Power</span> of Fiction</h4>
<p class="Text-Indented">As Kylene has written, “Nonfiction lets us <span class="italic">learn</span> more; fiction lets us <span class="italic">be</span> more.”</p>

Examples of the css for p, h4, and the spans discussed:

p {
-epub-hyphens:auto;
-webkit-hyphens:auto;
color: #000000;
font-family: "Iowan Old Style Roman", Georgia, serif;
font-size: 0.875em;
font-style: normal;
font-weight: normal;
font-variant: normal;
line-height: 1.429;
text-align: left;
text-indent: 18px;
}
h4 { /*B Head (text head level1) */
-epub-hyphens: none;
-webkit-hyphens: none;
color: #000000;
font-family: Seravek, "Gill Sans", sans-serif;
font-size: 1.125em;
font-style: normal;
font-variant: normal;
font-weight: bold;
line-height: 1.40625;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 0px;
margin-top: 15px;
text-align: left;
text-indent: 0px;
}
span.italic {
font-style: italic;
font-weight: normal;
font-variant: normal;
}
span.oblique {
font-style: oblique;
font-weight: normal;
font-variant: normal;
}
span.regular {
font-style: normal;
font-weight: normal;
font-variant: normal;
}
span.bold {
font-style: normal;
font-weight: bold;
font-variant: normal;
}
span.bold-italic {
font-style: italic;
font-weight: bold;
font-variant: normal;
}
span.bold-oblique {
font-style: oblique;
font-weight: bold;
font-variant: normal;
}
sgirsberger is offline   Reply With Quote
Old 11-17-2013, 10:15 AM   #8
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
Quote:
Originally Posted by mrmikel View Post
Have you used this font before to know what it actually contains?

Unfortunately, there is no way to know how complete the font inside the iPad is.
Actually, you can unpack the fonts from within an iPad. See this article:

http://hints.macworld.com/article.ph...11216055744412
sgirsberger is offline   Reply With Quote
Old 11-17-2013, 11:30 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by sgirsberger View Post
span.italic {
font-style: italic;
font-weight: normal;
font-variant: normal;
}
span.oblique {
font-style: oblique;
font-weight: normal;
font-variant: normal;
}
span.regular {
font-style: normal;
font-weight: normal;
font-variant: normal;
}
span.bold {
font-style: normal;
font-weight: bold;
font-variant: normal;
}
span.bold-italic {
font-style: italic;
font-weight: bold;
font-variant: normal;
}
span.bold-oblique {
font-style: oblique;
font-weight: bold;
font-variant: normal;
}
Agh! That's ugly CSS code. You could just have, if anything:

span.italic {
font-style: italic;
}
span.oblique {
font-style: oblique;
}
span.bold {
font-weight: bold;
}

the properties not defined will be inherited from the container, and you can use more than one class (<span class="italic bold">) if needed.

In any case, note that the ePub spec says:

"Reading Systems need not distinguish italic and oblique from each other."

What happens if you just use italic (or <em>) in that code? As I said, the italic sans-serif, if it exists, is what I think you want.
Jellby is offline   Reply With Quote
Old 11-17-2013, 12:31 PM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Jellby View Post
In any case, note that the ePub spec says:

"Reading Systems need not distinguish italic and oblique from each other."
I was too lazy too look it up, but this is what I expected. This or that oblique was not supported. Probably most readers will interpret this as italic, because that is easier. Oblique needs to be calculated in most cases and italic is usually readily available.

Some readers might support it though.
Toxaris is offline   Reply With Quote
Old 11-17-2013, 12:35 PM   #11
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
Yes, I know this. : ) Originally generated from InDesign. I haven't excised the excess yet.

I'm going to give <em> a shot. Seems logical.
sgirsberger is offline   Reply With Quote
Old 11-17-2013, 12:45 PM   #12
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
D'oh! Of course <em> should work! It should apply italics based on the underlying formatting. So, if a heading is bold, defined font-weight: bold; in css, then you're just adding <em> onto that, not doubling up on bold (in theory), with a style that adds bold and italic to the base style.

Too bad it doesn't work like this in layout applications.
sgirsberger is offline   Reply With Quote
Old 11-25-2013, 05:41 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,014
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
font-style: oblique

Does that actually work in ADE? Does it work in iBooks?
JSWolf is online now   Reply With Quote
Old 11-26-2013, 02:13 AM   #14
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
font-style: oblique

Does that actually work in ADE? Does it work in iBooks?
Jellby looked it up in the specs. It might work, but it is perfectly according to the specs if oblique is displayed as italics.
Toxaris is offline   Reply With Quote
Reply

Tags
epub, font definition, italic, oblique, span


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is Sigil 0.7.1 displaying all text oblique? Abull ePub 28 04-20-2013 01:57 PM
Embeded Italic font not rendered theducks Sigil 6 11-07-2012 07:25 AM
Italic or Emphasis John2011 ePub 18 08-18-2011 12:14 PM
italic, bold etc to normal cybmole Sigil 11 03-04-2011 10:37 AM
Emphasis or Italic for Language ghostyjack Workshop 3 11-02-2010 10:46 AM


All times are GMT -4. The time now is 03:18 PM.


MobileRead.com is a privately owned, operated and funded community.