summaryrefslogtreecommitdiff
path: root/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-11 11:04:51 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-11 11:04:51 +0200
commit61a24f830504da4252dbc3c8de4b273749174580 (patch)
treebccf64885a749d827c68716add305f9a16ba4300 /luaotfload-auxiliary.lua
parentc0897794aaa6591684357318253009fc00f91ec9 (diff)
downloadluaotfload-61a24f830504da4252dbc3c8de4b273749174580.tar.gz
[lib] integrate AFM libraries
Diffstat (limited to 'luaotfload-auxiliary.lua')
-rw-r--r--luaotfload-auxiliary.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua
index 0a3ace8..da3f5f2 100644
--- a/luaotfload-auxiliary.lua
+++ b/luaotfload-auxiliary.lua
@@ -234,7 +234,7 @@ local set_capheight = function (fontdata)
local shared = fontdata.shared
local parameters = fontdata.parameters
local capheight
- if shared then
+ if shared and shared.rawdata.metadata.pfminfo then
local units_per_em = parameters.units
local size = parameters.size
local os2_capheight = shared.rawdata.metadata.pfminfo.os2_capheight