summaryrefslogtreecommitdiff
path: root/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-11 02:08:49 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-11 02:08:49 -0700
commit0aed99a49103b61e93d68ee7b3132fbc9f5adc42 (patch)
treebccf64885a749d827c68716add305f9a16ba4300 /luaotfload-auxiliary.lua
parent339587c3f627b206ef15e7207f63d88df73217ef (diff)
parent61a24f830504da4252dbc3c8de4b273749174580 (diff)
downloadluaotfload-0aed99a49103b61e93d68ee7b3132fbc9f5adc42.tar.gz
Merge pull request #122 from phi-gamma/master
integrate Context 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