Skip to content

Commit

Permalink
Better feature handling for harf fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Dec 18, 2019
1 parent 4ef0a14 commit e0545f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/luaotfload-harf-define.lua
Expand Up @@ -219,10 +219,9 @@ local tlig ={
local function scalefont(data, spec)
if not data then return data, spec end
local size = spec.size
local features = spec.features.normal
local features = fonts.constructors.checkedfeatures("otf", spec.features.normal)
features.mode = 'plug'
features.features = 'harf'
fonts.constructors.checkedfeatures("otf", features)
local hbface = data.face
local hbfont = data.font
local upem = data.upem
Expand Down Expand Up @@ -359,6 +358,7 @@ local function scalefont(data, spec)
properties = {},
}
tfmdata.shared.processes = fonts.handlers.otf.setfeatures(tfmdata, features)
fonts.constructors.applymanipulators("otf", tfmdata, features, false)
return tfmdata
end

Expand Down

0 comments on commit e0545f7

Please sign in to comment.