13.07.2013 Views

Hagen - Pragma ADE

Hagen - Pragma ADE

Hagen - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

},<br />

},<br />

},<br />

[0x0307] = {<br />

anchors = {<br />

top = {<br />

x = -250,<br />

y = 550,<br />

},<br />

},<br />

},<br />

[0x0323] = {<br />

anchors = {<br />

bottom = {<br />

x = -250,<br />

y = -80,<br />

},<br />

},<br />

},<br />

return {<br />

name = "lm-compose-test",<br />

version = "1.00",<br />

comment = "Goodies that demonstrate composition.",<br />

author = "Hans and Mojca",<br />

copyright = "ConTeXt development team",<br />

compositions = {<br />

["lmroman12-regular"] = compose,<br />

}<br />

}<br />

Of course this assumes some knowledge of the font metrics (in base points) and Unicode<br />

slots, but it might be worth the trouble. After all, one only needs to figure it out once.<br />

But keep in mind that it will always be a kludge.<br />

A slightly different way to define such compositions is the following:<br />

local defaultunits = 193 - 30<br />

local compose = {<br />

DY = defaultunits,<br />

-- [0x010C] = { DY = defaultunits }, -- Ccaron<br />

-- [0x02C7] = { DY = defaultunits }, -- textcaron<br />

}<br />

-- fractions relative to delta(X_height - x_height)<br />

89<br />

Features

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!