![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
What is the best way to change the embedded fonts?
The EPUB I'm editing that I received from a publisher has embedded fonts. If I wanted to change these, is there a good way to do it in Sigil?
I know I can unzip the EPUB and manually place the fonts in the font folder and change references in the CSS and wherever else, but is there a more automated way to do it in Sigil? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You can use ADD EXISTING for Fonts as well as CSS, HTML, Images
As you fiqured... Editing/adding @fonts will be necessary |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,507
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't know about automated per se, but yes, you should be able to do it a little bit easier from within Sigil.
You can add new font files to your epub by using File->Add->Existing Files (or right clicking on a folder in Book View and selecting "Add Existing Files" from the context menu). You can then manually change the CSS font-face declarations to use your new font files and then delete the old fonts (right click on them in Book View). Saves you the trouble of unzipping/rezipping anyway. |
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Ah, I didn't realise that. So I don't have to unzip it at least. I can edit the CSS easily enough to pick up the new fonts, but will this be picked up by content.opf automatically or do I have to edit that as well?
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,507
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The files will be manifested/removed from the OPF for you.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Excellent. Thank you both.
|
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
While I'm on fonts, can I just check whether the 'Font Obfuscation' method chosen (currently I have none) is just for viewing in Sigil or whether it adds anything to the EPUB itself?
|
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I think I've misunderstood the term 'obfuscation' here. I was thinking something like how Photoshop sharpens fonts, but it is an entirely different matter altogether.
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,507
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes. Font obfuscation is a way of encrypting fonts so they're unusable should someone extract them from the epub and try to use them. It's not all that effective, but it may be required depending on the license you have to distribute a font (if a license is indeed required).
You can right-click on a font-file in the Book Browser and quickly see if they have a form of obfuscation on them (no check mark beside either of the obfuscation methods means no obfuscation). Just remember that there can be no obfuscation on fonts in an epub you're going to convert to a Kindlebook with kindlegen/kindle-previewer. |
![]() |
![]() |
![]() |
#10 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
I will need to look more into this, but I think OpenSource fonts should be fine. |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,507
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
But, yes, open source fonts should be fine (though I admit I'm no expert). |
|
![]() |
![]() |
![]() |
#12 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I see that Google now has all languages covered with free fonts:
http://www.google.com/get/noto/ On the question of subsetting, I have some Chinese characters but their Chinese font family is 115Mb so obviously I would want to subset it simply for size. Is Calibre editor the only way to subset a font in an EPUB? I couldn't see any Sigil plugins for this. |
![]() |
![]() |
![]() |
#13 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@bookman156 - try ==>FontShrinker - tool to subset a font
Calibre has a Polish Books feature that will subset fonts, it can also be used from the command line as well as the Library Manager BR |
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,507
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Toxaris has an ePubOptimizer Sigil plugin that will subset fonts, but I think it also optimizes images. I don't know if you can opt out of either process or not. It may be an all or nothing affair.
|
![]() |
![]() |
![]() |
#15 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Thanks. I'll experiment with all these methods and see how it looks.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Kobo fonts naming conventions and embedded fonts | roger64 | Kobo Reader | 0 | 05-09-2013 06:30 AM |
How to make specific words change color when using embedded fonts? | FunkeXMix | ePub | 7 | 01-09-2013 09:18 AM |
embedded fonts | Wally S | Workshop | 15 | 01-21-2012 03:57 PM |
Embedded fonts | dicknskip | Sigil | 27 | 12-01-2011 09:24 AM |
Embedded fonts, Calibre, and choice of fonts | AlexBell | ePub | 8 | 05-30-2010 06:00 AM |