summaryrefslogtreecommitdiff
path: root/otfl-data-con.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-06-05 23:15:57 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-06-05 23:15:57 +0300
commit18340b7b6238d2c9362bd6920c9b7031f7dd794a (patch)
tree56de5bb0a6e751429aac62f5908c778ae40cb6e8 /otfl-data-con.lua
parentf4a1b50c01c511bb4deb382f81d3b8f633bce4d0 (diff)
downloadluaotfload-18340b7b6238d2c9362bd6920c9b7031f7dd794a.tar.gz
Improve capheight guessing a bit
We first check if the font have a non-zero os2_capheight and use it, else we use the height of "X" glyph, else we set capheight to the font's ascender. The later can be improved by checking certain glyphs in other scripts (Greek, Cyrillic etc.)
Diffstat (limited to 'otfl-data-con.lua')
0 files changed, 0 insertions, 0 deletions