1if not modules then modules = { } end modules ['font-imp-text'] = { 2 version = 1.001, 3 comment = "companion to font-ini.mkiv and hand-ini.mkiv", 4 author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", 5 copyright = "PRAGMA ADE / ConTeXt Development Team", 6 license = "see context related readme files" 7} 8 9local type = type 10 11local fonts = fonts 12local registerotffeature = fonts.handlers.otf.features.register 13 14local function initialize(tfmdata,value) 15 if type(value) == "string" then 16 tfmdata.properties.textcontrol = (tfmdata.properties.textcontrol or 0) | tex.stringtocodesbitmap(value,tex.textcontrolcodes) 17 end 18end 19 20local specification = { 21 name = "textcontrol", 22 description = "control specific text handling", 23 initializers = { 24 none = initialize, 25 base = initialize, 26 node = initialize, 27 } 28} 29 30registerotffeature(specification) 31 |