View Single Post
Old 09-01-2022, 04:37 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by enuddleyarbl View Post
I read kepubs on my Forma.

As to my setting the fonts in the font-family line, I know it's pretty worthless. But, I was thinking of the cases where I'm editing the book and seeing it in the Calibre editor and viewer. And, that's silly of me. I'll remove the specific fonts and just stick with sans-serif family. Even so, with Georgia (which IS sans-serif) set on my Forma, it won't make any difference.

Also, now that you mention it, I'll switch my units on the letter-spacing over to em. I think I only used the px because I saw it on the w3 site as an example and just blindly copied it. I normally use em units.

Does font-size work with "font-variant: small-caps;"? I thought I'd read somewhere that it doesn't. I'd like to stick with smallcaps because I have an image in my brain of telegrams being all caps and if I'm going to have all caps, smallcaps might look better. If that doesn't work, I guess I could go with the smaller font-size and include a "text-transform: uppercase;" line.

I strip out all the included fonts because I'm tired of every book I read looking entirely different from every other book (if I use the Publisher's Default) and my Forma is set to use Georgia, regardless.
With KePub you cannot access external fonts. You have to embed them. So any CSS code that tries to use external fonts will not work.

As for small-caps, that will work in KePub. You may want to add in a text transform in case the text is all uppercase.
Code:
.smallcaps {
  text-transform: lowercase;
  font-variant: small-caps;
}
As for the embedded fonts, what was the font being used for the telegram?

What I do with embedded fonts is see what the font is and where it's being used. I do make sure that the main body font is not using an embedded font so I can use my choice. But things like chapter headers, telegrams, and other things, I might leave the embedded fonts.
JSWolf is offline   Reply With Quote