![]() |
#16 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
CSS Code:
p { margin-top: 0; margin-left: 0; margin-right: 0; margin-left: 0; text-indent: 1.2em } .small { font-size: 20pt; } .text { font-size: 2em; } .f1em { font-size: 1em; } .f2em { font-size: 2em; } .f3em { font-size: 3em; } .f4em { font-size: 4em; } .f5em { font-size: 5em; } .f6em { font-size: 6em; } Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Kobo Font Size Test</title> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" /> </head> <body> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="text">more</span> text.</p> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f1em">more</span> text.</p> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f2em">more</span> text.</p> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f3em">more</span> text.</p> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f4em">more</span> text.</p> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f5em">more</span> text.</p> <p>Some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f6em">more</span> text.</p> <p class="f2em">some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f6em">more</span> text.</p> <p class="f3em">some text. S<span class="small">OME</span> T<span class="small">EXT</span>. Some <span class="f6em">more</span> text.</p> </body> </html> |
|
![]() |
![]() |
![]() |
#17 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,534
Karma: 169115146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Or do you mean something else? You don't actually say what you mean by "work fine" and "do not work", so I have to make an assumption based on the thread. |
|
![]() |
![]() |
![]() |
#19 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,554
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Jon wants the absolute sizes (in px or pt) to be displayed at the requested fixed size (not changed by the size slider). We all agree this is a bad practice and we don't want to see it in a published book, at least not for anything that's intended to be read. But for testing purposes (and maybe some specific cases) it's perfectly OK.
Since it is so annoying (and probably common) a mistake in books out there, I guess the Kobo firmware is ignoring these absolute sizes, so the font size slider works as expected and fewer users complain. |
![]() |
![]() |
![]() |
#20 |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
Other CSS classes with 0.7em work, as I used to use <span class="smallcaps">text</span>
But I hate spans, so I remove all of them possible. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#22 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
I must do small the caps a lazy way, I prefer to not embed any fonts in ebooks to keep size down. I just use all caps at 75% or 80% of the font height and they look perfect to me.
|
![]() |
![]() |
![]() |
#23 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
With Sony & Kobo, you can "embed" the fonts without embedding the fonts. That is you can use CSS code to reference fonts on the device.
|
![]() |
![]() |
![]() |
#24 | ||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
I'm ORDERING the renderer to put whatever font in 18 points, inches or whatever. Period. It must follow that order. Period. I don't think epub/HTML/CSS spec says this is optional, you can do whatever you want. Maybe in the 99% of the cases it is a publishing error... But I can think of some situations where it isn't (example: you have your text mixed with images and you want an exact size relationship). If Kobo considers it is usually a bug they want to filter out, what they should have done is adding somewhere an option about "ignore absolute font sizes" or something like that so the user has full control over the device behaviour. I accept even that option being ON by default... It's the same with widows and orphans, page-breaks or @page. You cannot just ignore these settings because of whatever reason (even if you hate widows and orphans working...) while you say you are epub2/3 compatible... [Joke mode] What is the next decision? That if the user tries to open "Fifty shades of Grey" the eReader opens "Romeo and Juliet" instead because it considers that the first one is rubbish? [/Joke mode] Nevertheless I suppose this issue would be like what I posted here about absolute measures being FUBAR in ACCESS while testing Jellby's test book: Quote:
|
||
![]() |
![]() |
![]() |
#25 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,554
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I don't think any reader says that. At most they say they can display epub files, no mention of version (unless it's 3, maybe), nothing about compatibility (I'd be wary of a reader advertised as "epub compatible" anyway) or much less spec compliance...
|
![]() |
![]() |
![]() |
#26 | |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
Quote:
The css has no idea how large the screen is. Yeah, I know we all think that being a device, it would know how big the screen is. In the real world, the font gets displayed in an approximate height. Many, many factors can affect the sizing. |
|
![]() |
![]() |
![]() |
#27 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But in this case, RMDSK completely ignores pt and px as font sizes. It works with em, but that's it (as far as I know). The patch for the font size slider uses pt and I was trying to create an ePub to show me the various pt sizes so I could decide what the first 4 sizes I wanted. Now the only way to test this is to put in different numbers for the patch and test it via the font slider. That's not what I wanted to do.
|
![]() |
![]() |
![]() |
#28 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Well I can fully confirm the issue in kepubs/ACCESS. I'm updating Jellby's test book with some extra tests about it.
Quote:
But nevertheless supposing that the screen size is not known because of I don't know which reason, px, pt, in or cm are still absolute measure units. So if you change their chosen layout (whichever you've selected) with the internal font size setting, you're doing it wrong... (unless you do it because of a user selected option). Last edited by arspr; 12-14-2014 at 09:50 AM. |
|
![]() |
![]() |
![]() |
#29 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Well it really seems that both RMSDK and ACCESS don't properly handle absolute font sizes.
If you feel like it, I've uploaded an updated version of Jellby's test book in his dedicated thread. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS not working (specifically bold & font size) | kaonevar | Editor | 10 | 10-10-2014 12:47 AM |
Epub > Epub conversion changes font size.. why? | OllieDixon | Conversion | 2 | 03-31-2014 02:30 AM |
Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 03:35 PM |
More on working around the font-size issue | billingd | Kobo Reader | 13 | 06-25-2010 08:49 PM |
Base Font Size not Working | Colaveare | Calibre | 0 | 05-06-2009 02:09 AM |