diff options
author | Marius <mariausol@gmail.com> | 2010-08-14 15:56:20 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-08-14 15:56:20 +0300 |
commit | b469b8ec1b494ab72cd462bfc539ce01440e6aaf (patch) | |
tree | 3a9c3fb8433c5f75020fef1d531bedb7c948f66c /tex/context/base/font-enh.lua | |
parent | 39e30629c15ae4a899532d84c4abea127f2847a6 (diff) | |
download | context-b469b8ec1b494ab72cd462bfc539ce01440e6aaf.tar.gz |
beta 2010.08.10 17:14
Diffstat (limited to 'tex/context/base/font-enh.lua')
-rw-r--r-- | tex/context/base/font-enh.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/font-enh.lua b/tex/context/base/font-enh.lua index 137044f5b..31f2b2387 100644 --- a/tex/context/base/font-enh.lua +++ b/tex/context/base/font-enh.lua @@ -68,7 +68,7 @@ function tfm.set_features(tfmdata) -- local tfmdata = shared.tfmdata local features = shared.features if features and next(features) then - local mode = tfmdata.mode or fonts.mode + local mode = tfmdata.mode or features.mode or "base" local fi = fonts.initializers[mode] if fi and fi.tfm then local function initialize(list) -- using tex lig and kerning @@ -81,7 +81,7 @@ function tfm.set_features(tfmdata) report_define("initializing feature %s to %s for mode %s for font %s",f,tostring(value),mode or 'unknown',tfmdata.name or 'unknown') end fi.tfm[f](tfmdata,value) - mode = tfmdata.mode or fonts.mode + mode = tfmdata.mode or features.mode or "base" fi = fonts.initializers[mode] end end |