![]() |
#1 |
Enthusiast
![]() Posts: 49
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 |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,882
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, 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 | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
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. |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,541
Karma: 204127028
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.
|
![]() |
![]() |
![]() |
#5 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
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. |
![]() |
![]() |
![]() |
#7 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,882
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, 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.
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
Thanks all for the input. Problem solved!
|
![]() |
![]() |
![]() |
#9 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
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. |
![]() |
![]() |
![]() |
#10 |
Brash Fumbler
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,203
Karma: 9224939
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.
|
![]() |
![]() |
![]() |
#11 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
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. |
|
![]() |
![]() |
![]() |
#13 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,586
Karma: 14328510
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.
|
![]() |
![]() |
![]() |
#14 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,654
Karma: 145864619
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. |
|
![]() |
![]() |
![]() |
#15 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,654
Karma: 145864619
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 |
|
![]() |
||||
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 |