Quote:
Originally Posted by Haya
How can I put my fonts in the file .sgf?
|
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.