summaryrefslogtreecommitdiff
path: root/otfl-font-msc.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-02-12 15:04:43 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-02-12 15:33:59 +0200
commitfc4ceb016698207125b66ab35af1e306b117993c (patch)
tree5bac6dff43e898a10ab81e6444edb2cb564939f0 /otfl-font-msc.lua
parent692db6a1047a6a16b8a06accbcc8007d2a72aa7a (diff)
downloadluaotfload-fc4ceb016698207125b66ab35af1e306b117993c.tar.gz
Updating to latest ConTeXt beta (2010.02.12)
This introduces microtypography support. Test: \input luaotfload.sty \pdfprotrudechars2 \pdfadjustspacing2 \font\testa=file:lmroman12-regular:script=latn at 12pt \font\testb=file:lmroman12-regular:script=latn;protrusion=default at 12pt \testa \input tufte \par \testb \input tufte \par \bye closes #7
Diffstat (limited to 'otfl-font-msc.lua')
-rw-r--r--otfl-font-msc.lua44
1 files changed, 0 insertions, 44 deletions
diff --git a/otfl-font-msc.lua b/otfl-font-msc.lua
index cc16d3d..d7cfe20 100644
--- a/otfl-font-msc.lua
+++ b/otfl-font-msc.lua
@@ -7,50 +7,6 @@ if not modules then modules = { } end modules ['font-msc'] = {
}
--[[
- Support for font slanting and extending.
---]]
-
-fonts.triggers = fonts.triggers or { }
-fonts.initializers = fonts.initializers or { }
-fonts.initializers.common = fonts.initializers.common or { }
-
-local initializers, format = fonts.initializers, string.format
-
-table.insert(fonts.triggers,"slant")
-
-function fonts.initializers.common.slant(tfmdata,value)
- value = tonumber(value)
- if not value then
- value = 0
- elseif value > 1 then
- value = 1
- elseif value < -1 then
- value = -1
- end
- tfmdata.slant_factor = value
-end
-
-initializers.base.otf.slant = initializers.common.slant
-initializers.node.otf.slant = initializers.common.slant
-
-table.insert(fonts.triggers,"extend")
-
-function initializers.common.extend(tfmdata,value)
- value = tonumber(value)
- if not value then
- value = 0
- elseif value > 10 then
- value = 10
- elseif value < -10 then
- value = -10
- end
- tfmdata.extend_factor = value
-end
-
-initializers.base.otf.extend = initializers.common.extend
-initializers.node.otf.extend = initializers.common.extend
-
---[[
Support for font color.
--]]