Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/luaotfload-harf-define.lua
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ fonts.readers.harf = function(spec)
spec.script = invalid_s
spec.language = invalid_l
end

if rawfeatures.letterspace or rawfeatures.kernfactor then
if rawfeatures.kern == nil then
hb_features[#hb_features + 1] = hb.Feature.new("-kern")
end
end

for key, val in next, rawfeatures do
if key:len() == 4 then
-- 4-letter options are likely font features, but not always, so we do
Expand Down