cre: configurable kerning method (off/freetype/harfbuzz) (#4167)

Bump base & crengine for HarfBuzz support.
This commit is contained in:
poire-z
2018-08-17 23:08:21 +02:00
committed by GitHub
parent 4428ecb422
commit 6f2368e3bc
5 changed files with 39 additions and 2 deletions

View File

@@ -541,6 +541,11 @@ function CreDocument:setFontHinting(mode)
self._document:setIntProperty("font.hinting.mode", mode)
end
function CreDocument:setFontKerning(mode)
logger.dbg("CreDocument: set font kerning mode", mode)
self._document:setIntProperty("font.kerning.mode", mode)
end
-- min space condensing percent (how much we can decrease a space width to
-- make text fit on a line) 25...100%
function CreDocument:setSpaceCondensing(value)