diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-30 11:45:55 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-30 13:09:52 -0800 |
commit | 8f1bfec7b939f80d619c0cff0bc6338f9807a6af (patch) | |
tree | 8559075565723133207fb046e7a288f1cecf399b /README | |
parent | 34801acc69d91ee489aae92b97a11c8e3bcd9f91 (diff) | |
download | pandoc-8f1bfec7b939f80d619c0cff0bc6338f9807a6af.tar.gz |
Added `--epub-embed-font` option.
* This can be repeated for multiple fonts.
* Added parameter for fonts to embed to writeEPUB.
* Added ttf, otf to Mime types in Text.Pandoc.MIME.
Diffstat (limited to 'README')
-rw-r--r-- | README | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -442,6 +442,38 @@ Options affecting specific writers id="BookId">` (a randomly generated UUID). Any of these may be overridden by elements in the metadata file. +`--epub-embed-font=`*FILE* +: Embed the specified font in the EPUB. This option can be repeated + to embed multiple fonts. To use embedded fonts, you + will need to add declarations like the following to your CSS (see + ``--epub-stylesheet`): + + @font-face { + font-family: DejaVuSans; + font-style: normal; + font-weight: normal; + src:url("DejaVuSans-Regular.ttf"); + } + @font-face { + font-family: DejaVuSans; + font-style: normal; + font-weight: bold; + src:url("DejaVuSans-Bold.ttf"); + } + @font-face { + font-family: DejaVuSans; + font-style: italic; + font-weight: normal; + src:url("DejaVuSans-Oblique.ttf"); + } + @font-face { + font-family: DejaVuSans; + font-style: italic; + font-weight: bold; + src:url("DejaVuSans-BoldOblique.ttf"); + } + body { font-family: "DejaVuSans"; } + `--latex-engine=`*pdflatex|lualatex|xelatex* : Use the specified LaTeX engine when producing PDF output. The default is `pdflatex`. If the engine is not in your PATH, |