summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otd.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-otd.lua')
-rw-r--r--tex/context/base/font-otd.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/font-otd.lua b/tex/context/base/font-otd.lua
index 9a654fb6b..fceb0cf01 100644
--- a/tex/context/base/font-otd.lua
+++ b/tex/context/base/font-otd.lua
@@ -50,10 +50,10 @@ function otf.setdynamics(font,attribute)
local dynamics = fontdynamics[font]
dynamic = contextmerged[attribute] or 0
local script, language
- if dynamic == 2 then
+ if dynamic == 2 then -- merge
language = features.language or fontproperties[font].language or "dflt"
script = features.script or fontproperties[font].script or "dflt"
- else
+ else -- if dynamic == 1 then -- replace
language = features.language or "dflt"
script = features.script or "dflt"
end