diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-01-06 20:05:31 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-01-06 20:05:31 +0100 |
commit | 40c16033d164a969e06aacc991371592731baf2a (patch) | |
tree | d74d6ccd0713b41105b83b1410d27915c7b68649 /tex/context/base/mkxl/typo-drp.lmt | |
parent | 9b1c3470a7a222ef9ae20106d750c4a0127819a7 (diff) | |
download | context-40c16033d164a969e06aacc991371592731baf2a.tar.gz |
2022-01-06 19:50:00
Diffstat (limited to 'tex/context/base/mkxl/typo-drp.lmt')
-rw-r--r-- | tex/context/base/mkxl/typo-drp.lmt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/typo-drp.lmt b/tex/context/base/mkxl/typo-drp.lmt index c62b5e718..1ea4f4715 100644 --- a/tex/context/base/mkxl/typo-drp.lmt +++ b/tex/context/base/mkxl/typo-drp.lmt @@ -18,7 +18,7 @@ local settings_to_hash = utilities.parsers.settings_to_hash local trace_initials = false trackers.register("typesetters.initials", function(v) trace_initials = v end) local report_initials = logs.reporter("nodes","initials") -local initials = typesetters.paragraphs or { } +local initials = typesetters.initials or { } typesetters.initials = initials or { } local nodes = nodes @@ -44,7 +44,7 @@ local setlink = nuts.setlink local setprev = nuts.setprev local setnext = nuts.setnext local setfont = nuts.setfont -local setchar = nuts.setchar +local setscale = nuts.setscale local setwhd = nuts.setwhd local setkern = nuts.setkern local setoffsets = nuts.setoffsets @@ -117,6 +117,7 @@ interfaces.implement { { "hoffset" ,"dimen" }, { "voffset" ,"dimen" }, { "font", "integer" }, + { "glyphscale", "integer" }, { "dynamic", "integer" }, { "ca", "integer" }, { "ma", "integer" }, @@ -157,6 +158,7 @@ actions[v_default] = function(head,setting) local lines = tonumber(setting.n) or 0 local dynamic = setting.dynamic local font = setting.font + local scale = setting.glyphscale local method = settings_to_hash(setting.method) local length = tonumber(setting.m) or 1 -- @@ -252,6 +254,9 @@ actions[v_default] = function(head,setting) if font then setfont(current,font) end + if scale then + setscale(current,scale) + end if dynamic > 0 then setglyphdata(current,dynamic) end |