07-05-2013, 02:42 AM | #1 |
Novice
Posts: 14
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
|
Embedded custom fonts and fallback styling
I'd like to style some headings in a book with a custom font and with small-caps.
My research has led me to understand that pre-KF8 Kindles do not support either of those elements (custom fonts, smallcaps) and my question is if I need to do fallback-styling with media queries--which actually seems pretty straight forward--or if the pre-KF8 devices simply will ignore the embedded font/smallcaps styling and default back to whatever the user chooses/is default? I'm fine with the font/styling being vanilla on pre-KF8 ereaders, rather than trying to simulate something that may look somewhat similar to smallcaps (as I read you could do with slightly smaller font-size and uppercase, etc., as advised in another thread by JSWofl). I'd also like to ask the same question in a more general way: is it always better to define fallback-styling (even if the pre-KF8 ereader would ignore KF8 styling and default back to something else) or is it a good practice to just define KF8-only supported elements as long as the pre-KF8 ereader simply ignores that "advanced" element? Does it even know what to revert back to or is that kind of a gamble to be avoided? I hope I made it at least somewhat clear--thanks in advance! Santosha |
08-09-2013, 07:55 PM | #2 |
Member
Posts: 19
Karma: 3328
Join Date: Jun 2013
Location: Sandpoint, Idaho, USA
Device: Kindle Paperwhite
|
Hello Santosha,
Since no one else has replied and I've been struggling with similar issues, I thought I'd chip in even though I'm a rank beginner. In short, I think some type of fallback styling is needed, and that an @media query forking between mobi and kf8 may not always be enough. I have a Paperwhite, which speaks kf8, but styling based on embedded fonts is ignored unless ‘Publisher Font’ is selected. My thoughts are still incomplete, but here’s what I’ve learned so far. I'm currently formatting a book (my very first) as a favor for an author-friend, and I’m trying to do two simple things:
So it should be a piece of cake, right? The ePub looked great in ADE, and the mobi file looked good on my PW. Then I tried it on Kindle Previewer and found that the images looked horrible if I switched to sepia or night views when emulating one of the Kindle Fires. Searching the MR forums, I learned that Kindle support for transparent backgrounds in image files is broken. (I was using transparent .gifs) My next idea was to use an @media query:
• for a section break. I’m a survivor of the browser wars, so I’d really like to find ‘the one ring that rules them all’. I hope I can have one set of HTML and CSS that serves for both ePubs and Kindles. Anyway Santosha, that’s my current thinking. Best of luck ! Storax Last edited by storax; 08-09-2013 at 08:13 PM. |
Advert | |
|
08-10-2013, 01:40 AM | #3 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
IMHO, it's nice to think of fallback styles, but I wouldn't waste too much time on it since the majority of Kindles in use support KF8. Only 3 older Models (K1, K2 an DX) don't support KF8 and most of them were bought by "early adopters" with enough disposable income to afford the latest models. |
|
08-10-2013, 12:28 PM | #4 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
https://www.mobileread.com/forums/sho...62&postcount=7 Rubén |
|
08-10-2013, 01:43 PM | #5 | ||
Member
Posts: 19
Karma: 3328
Join Date: Jun 2013
Location: Sandpoint, Idaho, USA
Device: Kindle Paperwhite
|
Thank you, Doitsu !
This is very useful information indeed. I’m going to re-do my first line styling today; it’s a mobi7 kludge at the moment. Quote:
Quote:
Thanks again for your generosity. These forums are fantastic ! Storax |
||
Advert | |
|
08-10-2013, 02:00 PM | #6 |
Member
Posts: 19
Karma: 3328
Join Date: Jun 2013
Location: Sandpoint, Idaho, USA
Device: Kindle Paperwhite
|
Thank you, Rubén!
I'm just getting started for the day; reading your post (and the thread it's in) is first on my list. I'm unfamiliar with svg images, so I guess I have some reading to do. Thanks again for the tip! Storax |
08-13-2013, 08:35 PM | #7 | |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
My only quibble with this is that there are millions of e-ink Kindles still in use, and most of those early adopters don't show any signs of intending to get rid of them. Almost every reading group I belong to--and there's quite a few--has an overwhelming number of readers still using K2's, K3's that didn't get the upgrade (or chose not to) and DX's, not to mention K-1's. I wouldn't dismiss the e-inks out of hand, not at all. I'd also add that fallback styles are nearly always necessary for dealing with any images that are less-than-full-screen-sized, particularly due to the massive ppi difference across devices. Hitch |
|
08-14-2013, 11:49 AM | #8 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I didn't dismiss e-ink devices at all, after all I own one. However, when it comes to Kindles, fallback styles for embedded fonts or CSS3 styles are usually not required for the simple reason that Kindlegen will simply ignore them when it generates the Mobi7 part of the master .mobi file. This means that owners of older devices might miss out on some fancy formatting, but their "reading experience" won't be negatively affected. I.e., fallback styles are usually only required for large tables, some images and multiple hard-coded <span> styles applied to single words or paragraphs, e.g. drop caps. |
|
08-14-2013, 03:51 PM | #9 | |
Member
Posts: 19
Karma: 3328
Join Date: Jun 2013
Location: Sandpoint, Idaho, USA
Device: Kindle Paperwhite
|
Quote:
Wouldn't it be sufficient to set the width of the image in percent? DISCLAIMER: I haven't tried this yet; just thinking off the top of my head. ALL of my experience is with websites. In other words, a handy collection of misconceptions with which to begin. |
|
08-14-2013, 04:18 PM | #10 | |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Websites and ebooks are two completely different things; websites have a freedom that ebooks really, really, really don't. ;-) Hitch |
|
08-14-2013, 06:17 PM | #11 | ||
Member
Posts: 19
Karma: 3328
Join Date: Jun 2013
Location: Sandpoint, Idaho, USA
Device: Kindle Paperwhite
|
Quote:
Quote:
I'm glad my friend doesn't yet have the cover art done. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Kobo fonts naming conventions and embedded fonts | roger64 | Kobo Reader | 0 | 05-09-2013 07:30 AM |
embedded fonts | Wally S | Workshop | 15 | 01-21-2012 04:57 PM |
Touch Fonts question (special characters in stock and custom fonts) | levil | Kobo Reader | 20 | 09-23-2011 02:51 PM |
Embedded fonts, Calibre, and choice of fonts | AlexBell | ePub | 8 | 05-30-2010 07:00 AM |
iPad Embedded Fonts | JSWolf | Apple Devices | 24 | 04-26-2010 03:41 PM |