05-14-2021, 10:04 PM | #1 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
Vanity fonts
Hello. Admittedly, this is my first time using Sigil to create an epub, so if I'm doing it wrong, please let me know.
I've declared a specialty font for use in my epub (Belgrano). Long story short, if the font is not installed in my pc, even though Sigil css is declared and used properly, Belgrano is not displayed in the preview window in Sigil. I had to install the font on my laptop to view it in the preview window of Sigil. Belgrano was already installed on my desktop and thus rendered properly there. I doubt this is a big deal, because to my (very limited) knowledge, it really doesn't matter what font I prefer / declare, because at end-stage, whatever epub reader the user is using does it's own thing anyway, right? Was this a big waste of time? Possibly. But let me know? And otherwise, 'Hello world!' - Andy |
05-14-2021, 10:12 PM | #2 |
Bibliophagist
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Generally, If I really want to use a specific font in an ebook, I add it as an embedded font. Otherwise, no guarantee as to what font will be used when the font I want to use is not present on the device I'm reading on.
|
Advert | |
|
05-15-2021, 12:22 AM | #3 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For an example, have a look at this book with an embedded blackletter font. You also might find my CSSFromFonts plugin helpful, which'll add a font declaration to your CSS file. |
|
05-15-2021, 10:36 AM | #4 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We recently fixed a bug that prevented previewing embedded fonts in a resource tab whenever the path to Sigil's temp directory contained a space, but that didn't effect properly embedded fonts from rendering in the Preview widget. If it's not down to a css syntax or path error, it's typically down to problematic fonts whenever they won't render in a browser (like QtWebEngine or QtWebkit). There's a lot of terrible font files floating around out there. But if it renders when it's installed as a system font, that's usually a dead giveaway that it's just not being embedded in the epub correctly.
|
05-15-2021, 01:57 PM | #5 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
|
Advert | |
|
05-15-2021, 02:06 PM | #6 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Adding to my response above, I used my own font long ago (no idea if this is still the proper way); here's the css:
Code:
@font-face { font-family: ChunkFivePrint; font-style: normal; font-weight: normal; src:url(../Fonts/ChunkFivePrint.otf); } .chunk { font-family: "ChunkFivePrint", sans-serif; } Last edited by hobnail; 05-15-2021 at 04:25 PM. |
05-15-2021, 03:16 PM | #7 |
Bibliophagist
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You can also consider using Doitsu's CSSFromFonts plugin to somewhat automate creating the CSS for embedded fonts.
|
05-16-2021, 01:41 AM | #8 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
Thanks all for the input. Problem solved!
|
05-20-2021, 10:48 AM | #9 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I prefer not to encounter the problem. 1) you must have the legal right to distribute the fonts, 2) you must have the knowledge to embed them, 3) you have to hope that Amazon doesn't rip them out (as it sometimes does, assuming your mean to publish through KDP), and 4) your idea of great typeface may offend the reader who prefers his/her/its own great typeface, and who gives you a one-star review in consequence.
Besides, ARA General Belgrano sank with great loss of life in 1982. |
05-20-2021, 11:30 AM | #10 |
Brash Fumbler
Posts: 1,160
Karma: 8710811
Join Date: May 2013
Device: NST, Kobo Mini
|
Specifying the font might make sense for presentation on a website, but when ereaders give the user a choice of fonts, why fight against that? Also, what looks good on a website might not impress on a 6-inch eink screen.
|
05-20-2021, 12:25 PM | #11 | |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
|
|
05-20-2021, 01:58 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
So, that's a no-fly-zone. That does not mean that there aren't pre-2014 or 2015 files out there with specified, stipulated body fonts. Ironically, most of them are trade publisher files! (And WHAT is with trade pubbed books today coming in Kindle with block-style, space-between paragraphs, for novels? I mean, talk about STEAM!) Hitch Last edited by Hitch; 05-20-2021 at 10:50 PM. |
|
05-20-2021, 02:04 PM | #13 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Yeah, I recently got one like that, a freebie on ereaderiq. They put a non-breaking space between p tags, between all paragraphs.
|
05-20-2021, 02:12 PM | #14 | |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
With ePub, you can embed a font that's only used in some places and that font will be seen. |
|
05-20-2021, 02:17 PM | #15 | |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I would love a job reformatting commercial eBooks. But not one like that Churchill eBook. Way too many footnotes to deal with. |
|
Tags |
css, font, preview, thanks for all the fish |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Vanity Game - a black comedy | HJ Hampson | Self-Promotions by Authors and Publishers | 0 | 08-09-2012 04:46 AM |
Recipe: Vanity Fair (U.S.) | Barty | Recipes | 0 | 11-29-2011 04:41 PM |
Recipe Request - Vanity Fair | squawker | Recipes | 0 | 01-15-2011 11:47 PM |
The vanity press strikes again | Worldwalker | General Discussions | 30 | 11-01-2010 10:54 PM |
Vanity Fair | sdow1 | Recipes | 3 | 10-21-2010 07:55 AM |