From 8f1bfec7b939f80d619c0cff0bc6338f9807a6af Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 30 Jan 2012 11:45:55 -0800 Subject: 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. --- README | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'README') diff --git a/README b/README index 3853367d3..e2a25e2f2 100644 --- a/README +++ b/README @@ -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, -- cgit v1.2.3