11-09-2009, 08:38 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Nov 2009
Location: Spain
Device: cybook opus
|
How do I insert a font in my epub using Sigil?
How can I put my fonts in the file .sgf?
|
11-10-2009, 09:21 AM | #2 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Font embedding is currently unsupported.
But... if you are really sure you want to do this and are willing to suffer through a few Sigil crashes on close, this is what you should do... Extract the EPUB file (it's a ZIP archive), not the SGF file. Export to EPUB first if you have to. Now, go to the OEBPS folder in the archive. If there is a "fonts" folder, use that, if there isn't one, create it. Put all the fonts you plan on using in it. Now open one of your main CSS files and add @font-face style rules referencing those fonts. Reference the font for the body tag etc. I'm assuming you know what you are doing here. If you don't know CSS @font-face, don't even try this. Zip the META-INF and OEBPS folders back up into an archive. Load the epub into Sigil. If everything went correctly, the @font-face rules are now referencing font1.ttf, font2.ttf etc... (or .otf, of course). You should also see your fonts used in Book View... most of the time. Qt is buggy here. Italic fonts usually don't show up. This is all completely unsupported. These are left-over features from back when I was trying to add font embedding, bumped into the Qt bugs related to this, and then stopped. The code hasn't been maintained. It may not still work. EDIT: If Nokia fixes the Qt bugs causing the problems in Qt 4.6, then this feature will be worked on, and a nice WYSIWYG way of embedding fonts will be added. If they don't it will take a bit longer since I'll have to work on Qt/Webkit myself to fix this. Yo can track this on the tracker. It's issue 20. Last edited by Valloric; 11-10-2009 at 09:25 AM. |
Advert | |
|
11-10-2009, 10:47 AM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: Nov 2009
Location: Spain
Device: cybook opus
|
Ok
Maybe it is better under Sigil to put tags empty in the source and after as the last work open the epub like zip and add fonts and change the css thanks for your work. :-) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil + embedded font variants | troymc | Sigil | 6 | 10-17-2012 12:00 PM |
Sigil, the ePub editor | Valloric | Sigil | 321 | 02-16-2011 01:13 PM |
Sigil Font | crutledge | Sigil | 6 | 05-31-2010 11:35 AM |
Why is Sigil changing the font size? | djloewen | Sigil | 6 | 12-25-2009 10:41 AM |
Sigil ePub editor - where is it? | Alexander Turcic | ePub | 3 | 08-04-2009 06:55 PM |