|
|
#31 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 100000
Join Date: Dec 2024
Device: Tolino Shine 5
|
It's getting usable very slowly..
|
|
|
|
|
|
#32 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,512
Karma: 180945220
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
For instance, the first paraindent class will be accepted but do nothing if the version of RMSDK is not new enough. The second paraindent class with the missing semicolons will be an error. Code:
.paraindent {
text-indent: 1.5rem;
line-height: 1.05rem;
}
.paraindent {
text-indent: 1.5em
line-height: 1.05em
}
|
|
|
|
|
| Advert | |
|
|
|
|
#33 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83,796
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But rem is just stupid since it does nothing different then em.
|
|
|
|
|
|
#34 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,512
Karma: 180945220
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Really? Assume the base font size is set to 1em. When using em, sizes compound. Something like a header with the size set to 1.5em and a subelement set to 1.25em, the subelement comes up at 1.875em whereas using rem for both, the subelement would show up at 1.25em. For my uses, rem makes the whole layout more predictable.
In one book, where the nested elements ended up with text that looked as if it had been designed by someone who has partaken freely of alcoholic libations, converting most of the em to rem made the problems go away. And no, the book was not created in Vellum. The first attachment uses em, the second used rem. Last edited by DNSB; Today at 06:37 PM. |
|
|
|
|
|
#35 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83,796
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But if you want backwards comparability, rem is out.
|
|
|
|
| Advert | |
|
|
|
|
#36 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,512
Karma: 180945220
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Oddly, when I tested the code on my Kobo Sage, the rem seemed to be treated as an em by RMSDK whereas the Kobo renderer showed similar to what I see in Sigil's preview. Perhaps a bit too experimentalist approach for some people tastes but it works for me.
Image #1 is from Sigil's preview, image #2 is from RMSDK on a Sage, image 3# is from Kobo's renderer on a Sage. Code:
.goniff {
text-align: center;
font-size: 1.5em;
margin-top: 5em;
font-weight: bold;
}
.itty {
font-size: 1.25em;
}
.goniffr {
text-align: center;
font-size: 1.5rem;
margin-top: 2rem;
font-weight: bold;
}
.ittyr {
font-size: 1.25rem;
}
Code:
<h3 class="goniff">This is the first line<br/><span class="itty">and this is the second line</span></h3> <h3 class="goniffr">This is the first line<br/><span class="ittyr">and this is the second line</span></h3> |
|
|
|
![]() |
| Tags |
| em dash, font, font display, kobo clara |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Displaying different fonts in EPUB book? | NoobReader | KOReader | 1 | 12-01-2022 08:47 AM |
| Paperwhite fonts adding random dashes/hyphens | Siavahda | Amazon Kindle | 0 | 12-15-2018 01:09 PM |
| Creating spaces around hyphens (or dashes). | wallflowerface | Conversion | 4 | 01-04-2014 06:42 PM |
| Dashed Dashes -- Befuddled by EN and EM Dashes (Apple Pages to EPUB) | planewryter | Conversion | 1 | 07-22-2012 09:52 PM |