aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-01-30 11:45:55 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-01-30 13:09:52 -0800
commit8f1bfec7b939f80d619c0cff0bc6338f9807a6af (patch)
tree8559075565723133207fb046e7a288f1cecf399b /README
parent34801acc69d91ee489aae92b97a11c8e3bcd9f91 (diff)
downloadpandoc-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--README32
1 files changed, 32 insertions, 0 deletions
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,