![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2021
Device: All
|
@media queries for older kindles?
Hi everyone!
I'm currently working on formatting a book that has numerous fonts central to the design. I've gotten everything to look good on Kindle and newer readers, but I'm wondering about changing specs for older Kindles? I've been trying to do @media queries targeting mobi, but so far I'm not having any luck. Can anyone offer some insight on how this works? What fonts and properties are supported? It's a day devotional so each day has: h1 - The day - "January 1" h2 - The topic of the day "Universal Law of Attraction" A bible verse (using body font italic is fine here) A quote (looking for a condensed sans-serif) A reflection paragraph (regular body font is fine here with a drop cap) A daily affirmation (also sans-serif, slightly bigger than the quote) I think I can do all this with the limited fonts and stylings in mobi, but right now I can't get anything to work! Any help is appreciated! |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,964
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Mobi, aka KF7 doesn't do much in the way of fonts. Serif, Sans, Monospace. Each in normal, italic, bold and bold italic. Also option of underline. The exact version of each these depends on the model. I've not had a problem using any arbitrary fonts in epu2 from docx and then the Amazon conversion to KF7 except with Monospace. It needs Monospace in the name.
Forget media queries. Do a decent epub2 with embedded fonts and upload that to Amazon KDP. They know what Kindle people have. Check mobi KF7 on a KK2, DX, DXG or earlier. A KK3 does also do KF8 if it was ever upgraded, if you pick Publisher Fonts. Only Smashwords needs a dual mobi as well as epub2 (convert in Calibre). Any ebook should still be readable just with basic Serif, Sans, Monospace. Each in normal, italic, bold and bold italic. Use docx import to Calibre (or Sigil) but odt for edit/save if using LO Writer (never edit the docx only an extra save as). Last edited by Quoth; 10-19-2021 at 06:16 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2021
Device: All
|
Hi Quoth, thanks for the quick reply! I made the book in InDesign, exported to ePUB and have been editing the code in Calibre.
My issue is that in order for the embedded fonts to look normal in KDP, Ive had to increase their size dramatically (like up to 1.9em from 1.2) so when they get downconverted back to mobi, they look HUGE. Hence why I'm trying to target the older devices specifically. Is there any other way around this other than to give up on my beautiful fonts? Or am I doing something wrong? All of my special fonts are targeted with ems, should I be using % instead? |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,064
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
As Quoth indicated font support in MOBI7 format is extremely limited. I suggest using bold, italic, and underline to distinguish different content in your case.
The Kindle Formatting Guidelines has a section on Media Queries. You can target MOBI7 format using "@media amzn-mobi" and KF8 (and newer) using "@media amzn-kf8". Note that MOBI7 does not truly support media queries. They are processed by kindlegen as part of the creation of that format from the source document. (Also, the Kindle Formats subforum is a better place to ask this sort of question in the future.) |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2021
Device: All
|
Third time replying....
Hi...I'm not sure why my replies aren't posting? I'll try again!
My issue is that I've needed to enlarge the specialty fonts way above normal to render normally in Kindle Previewer (like 1.8em instead of 1.2) so when it gets converted down to mobi....these particular styles are gigantic! I was hoping to be able to target them directly just in mobi, but if I can't use the media query to do that...then I'm just SOL? Or I have to find a balance between too small in Kf8 and too big in KF7? For reference I built the book in InDesign, exported to ePub and I've been editing all the code in Calibre. I did try the very basic media query suggested by Amazon, but I haven't been able to get it to work after exporting the mobi file from Kindle Previewer and sideloading it onto my old kindle: @media amzn-mobi { .affirmation { font-family: "Arial", sans-serif; font-size: 1.3em; line-height: 1; } } Sorry for asking in the wrong place! Should I move it over? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,913
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,064
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Getting embedded fonts to work can be difficult on the Kindle platform and even when it does work those fonts will only appear if the user explicitly selects Publisher Font as their font choice.
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2021
Device: All
|
Quote:
Here is an example page from the book for reference: ![]() OK now this is weird...I just sideloaded the latest mobi file onto my decade-old Kindle 4...and the embedded fonts are working (with some very jacked-up line-heights)??? But not working on the newer Kindle 5? Color me confused! ![]() |
|
![]() |
![]() |
![]() |
#9 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,064
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
You will probably get more relevant responses from members experienced in publishing on Amazon if you have the thread moved. If you want that to happen you can request a moderator to do it by reporting (!) the first post in the thread.
Quote:
Quote:
Kindle 4th and 5th generation devices both use KF8 format and support embedded fonts. The difference in your results is most likely due to one device being configured to show the Publisher's Font and the other to show one of Amazon's fonts. Check in the Aa menu. |
||
![]() |
![]() |
![]() |
#10 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2021
Device: All
|
Quote:
I guess my big question now is how do I get the ginormous line height to adjust in the older-gen kindles??? And what is telling it to be so big in the first place?? |
|
![]() |
![]() |
![]() |
#11 |
o saeclum infacetum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,260
Karma: 234636059
Join Date: Oct 2010
Location: New England
Device: Mini, H2O, Glo HD, Aura One, PW4, PW5
|
Thread moved. Obviously.
![]() |
![]() |
![]() |
![]() |
#12 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,964
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
NEVER set a line height in the Paragraph style, or else users can't set the line spacing and if you do "pick" a fixed line height per style it will be wrong, locked and vary by model. In LO Writer for ebooks I leave LH for a paragraph style as "Single" and the size is either empty or greyed out. I do set the line heights for a PDF for a POD paper edition. No issues. InDesign is really for paper. Using LO Writer, Styles, edit in ODT and save as docx (never edit that in LO except once for a Word import) for Calibre. Also I forgot to mention the KF8 "publisher font" issue with Kindle. AFAIK it's never automatically selected. The user has to pick it. But the Amazon fall back fonts vary with app and model of Kindle. A Fire isn't really a Kindle, it's really an Android tablet with an app, but not quite the same as iOS or Android, which are not quite the same and all the apps can manage "Kindle" material that doesn't work at all on an eink Kindle. Last edited by Quoth; 10-19-2021 at 03:46 PM. |
|
![]() |
![]() |
![]() |
#13 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2021
Device: All
|
Quote:
![]() I'm aware of the publisher fonts issue for KF8, nothing really to be done about that except try to make sure it still looks acceptable with any of the other fonts selected. Bummer more ppl don't know about that though! I'll try tomorrow to remove the line height entirely and see what happens. Time for bed here in Espana...Thanks for taking the time! |
|
![]() |
![]() |
![]() |
#14 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 315
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Quote:
I'm not saying that's precisely what you should do, just saying that sometimes it can be useful to figure out the absolute bottom in terms of presentation and then build up a little from there rather than tackling it from the top and trying to navigate all the font stuff. Also context in the text itself can make things a lot clearer than we sometimes give it credit for. "Todays Affirmation:" alone tells me I'm about to read today's affirmation, font shift or no. |
|
![]() |
![]() |
![]() |
#15 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Media Queries for images as dropcaps in Kindle DX | verydeepwater | Kindle Formats | 3 | 03-22-2014 05:35 PM |
Media Queries | eggheadbooks1 | Kindle Formats | 4 | 12-16-2013 02:32 AM |
Epub to mobi not recognizing media queries | srascal | Conversion | 2 | 03-25-2013 05:19 PM |
Calibre and Media Queries | chrlsdrwn12 | Calibre | 0 | 12-05-2012 11:16 AM |
Media Queries on Kindle Previewer | AIR-WIZZ | Kindle Developer's Corner | 26 | 10-15-2012 10:10 AM |