09-27-2010, 08:01 PM | #1 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Sans-serif fonts and iBooks
Has anyone come up with an alternative work a round for sans-serif fonts not being supported within the p., div, and span classes since this post on Liz's blog?
http://www.pigsgourdsandwikis.com/20...s-strikes.html Since InDesign exports out Xhtml using all these class tags, What would be the correct method of changing them so the Sans-Serif font I want in my heading displays as sans-serif in iBooks, like it does everywhere else... Keeping in mind I do not want to use the default H1, H2, H3 heading levels, unless, of course, I can find/change Paragraph names to h1, h2, h3 while keeping my defined formatting. GRRRRRRRRR Apple iBooks GRRRRRRR Thanks Last edited by Adjust; 09-27-2010 at 08:05 PM. |
09-28-2010, 05:45 PM | #2 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Add some other tag to your <p> tags.
I'm using <p><abbr>ParagraphContent</abbr></p>. I add the font styling to abbr and the layout styling to p. F* Apple. |
09-30-2010, 11:34 AM | #3 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Nov 2008
Device: none
|
Doesn't the iPad have global settings to change the font?
I was of the opinion, that when you use a serif-font like "georgia" the complete text is in georgia (a serif-font). And if you use "verdana" completely everything is in sans-serif?!? We could not tell different parts of the text that they should be sans-serif while other parts should be in serif. Are we wrong and it is possible? Maybe we used a wrong style: font-family:serif; ??? So, does it work, when I use abbr? |
10-03-2010, 08:14 PM | #4 | |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Quote:
I ended up using the <samp></samp> tags. Works a treat for getting at pesky first few words in the first paragraph after a heading to display sans-serif. So I guess you could use any redundant/not often used tags to compensate for Apple's blatant disregard to the epub standards. |
|
01-17-2013, 12:23 PM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2013
Device: none
|
For those out there still struggling to get fonts to work on these tags, your ePub is missing an com.apple.ibooks.display-options.xml file in the meta-inf folder.
Add this to the file: <?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified-fonts">true</option> </platform> </display_options> |
01-18-2013, 02:12 AM | #6 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Why do you resurrect such an old thread? The xml file you post is posted on several other places on the forum.
|
01-18-2013, 02:56 AM | #7 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
I guess because it's still relevant... i.e. sans serif does not display unless wrapped in a <samp> tag. Without embedding fonts
|
01-18-2013, 04:30 AM | #8 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It should no longer be relevant and the posting is not the solution. Resurrection is fine, if it contributes to the problem.
As I understood from Liz, the iBooks app does work now. |
01-18-2013, 04:37 AM | #9 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Pretty sure it breaks when you select another font from the list other than the default .
Which is why I still have to still use the <samp> |
01-18-2013, 02:51 PM | #10 |
Resident Curmudgeon
Posts: 73,668
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
iBooks in 2010 is not the same as iBooks in 2012. Things have been fixed and things have been changed. Unless you know for sure that what's talked about in 2010 is still relevent today, please leave it be.
|
01-18-2013, 05:08 PM | #11 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
So you're telling me that it doesn't break when you switch fonts?
Also I'm not the one who brought it back. |
01-18-2013, 05:28 PM | #12 |
Resident Curmudgeon
Posts: 73,668
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
01-18-2013, 06:25 PM | #13 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
For sure, "specified-fonts" is still required. It distinguishes an iBook that has actually been tested and verified to look acceptable on iBooks from a file that has not. The assumption is that old books are much, much more likely to be broken. Thus, in EPUB books that lack that addition, all font specifications are just plain ignored.
The workaround where you have to add a tag inside the paragraph tag, however, is no longer required. It is a crude way to add specificity so that iBooks knows that some special piece of content should not change fonts along with the body text, but it is not a very good way. |
01-18-2013, 06:45 PM | #14 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
|
01-25-2013, 03:37 PM | #15 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2013
Device: none
|
Hi all - Sorry to offend!
The reason I added my post was because I searched for an answer to this question, and found this board. Whether it's old or not, it's still shows up in searches (like searching programming help from 2005 can still be helpful). The 2013 beta version of iBooks I have access to STILL has this problem. Adding the display-options xml file FIXES the problem. Let me also add that "samp" is not needed if specified fonts is true, so this fixes incorrect information originally posted in 2010. And samp is bad code practice. Also - there is not a single reference to the display-options xml in this thread, so perhaps it should have been added (which I just did). |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Which typeface should use for ebook, Serif or Sans-serif | droople | Workshop | 8 | 06-13-2010 07:20 AM |
2 free+great sans serif fonts | gerraldo | Bookeen | 1 | 04-27-2009 11:37 AM |
Serif and Sans-Serif fonts in Libprs500 | benong | Calibre | 1 | 02-06-2008 04:43 AM |
Switching fonts from Sans to Serif | TOucan | iRex | 4 | 07-16-2007 11:27 AM |
Do you prefer the Reader's serif or its sans serif font? (poll) | Alexander Turcic | Sony Reader | 9 | 11-25-2006 12:15 PM |