![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() 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. |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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).
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
|
Quote:
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; } |
|
![]() |
![]() |
![]() |
#8 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad Pro, Kindle Fire HD
|
Quote:
http://hints.macworld.com/article.ph...11216055744412 |
|
![]() |
![]() |
![]() |
#9 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Some readers might support it though. |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
Tags |
epub, font definition, italic, oblique, span |
|
![]() |
||||
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 |