diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-11-20 14:46:04 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-11-20 14:46:04 -0800 |
commit | 5e9fad4cafe45a883001dcd41e701b3453e08337 (patch) | |
tree | f6be5d2826525c95629b95487698854e0b3b2290 | |
parent | 2f9ba8e7663fd492b46ab219a55b98d720cc9aa8 (diff) | |
parent | 56bb94b61f8fc207396f662cf1909c52fe0cc95f (diff) | |
download | pandoc-5e9fad4cafe45a883001dcd41e701b3453e08337.tar.gz |
Merge pull request #157 from ousia/patch-1
font loading with simplefonts
-rw-r--r-- | default.context | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/default.context b/default.context index 1feff01b0..4a3457934 100644 --- a/default.context +++ b/default.context @@ -38,23 +38,25 @@ $if(pagenumbering)$ \setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$] $endif$ % use microtypography -\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=yes,pnum=yes] -\definefontfeature[smallcaps][smallcaps][protrusion=quality,expansion=quality,onum=yes,pnum=yes] +\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] +\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes] \setupalign[hz,hanging] +\setupitaliccorrection[global, always] \setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted +\usemodule[simplefonts$if(fontsize)$,$fontsize$$endif$] +\setmainfontfallback[DejaVu Serif][range={greekandcoptic, greekextended}, force=yes, rscale=auto] $if(mainfont)$ -\definefontfamily[mainfont][serif][$mainfont$] +\setmainfont[$mainfont$] $endif$ $if(sansfont)$ -\definefontfamily[sansfont][sans][$sansfont$] +\setsansfont[$sansfont$][rscale=auto] $endif$ $if(monofont)$ -\definefontfamily[monofont][mono][$monofont$][features=none] +\setmonofont[$monofont$][features=none, rscale=auto] $endif$ $if(mathfont)$ -\definefontfamily[mathfont][math][$mathfont$] +\setmathfont[$mathfont$][rscale=auto] $endif$ -\setupbodyfont[mainfont$if(fontsize)$,$fontsize$$endif$] \setupwhitespace[$if(whitespace)$$whitespace$$else$medium$endif$] $if(indenting)$ \setupindenting[$for(indenting)$$indenting$$sep$,$endfor$] |