Text widgets, crengine: fix wrong vertical positioning (#6093)

Noticable with nastaliq arabic fonts.
bump crengine: fix wrong usage of Harfbuzz y_offset
Same in TextWidget and TextBoxWidget
reviewable/pr6095/r1
poire-z 4 years ago committed by GitHub
parent 7d83a0c967
commit 6a98b2dce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit d74120a1c308f89cd002eeec93591d4ed80f693f
Subproject commit 0494fab12ed5bde4d6decb7dbb79e844c32c5ed7

@ -793,7 +793,7 @@ function TextBoxWidget:_renderText(start_row_idx, end_row_idx)
end
self._bb:colorblitFrom(glyph.bb,
xglyph.x0 + glyph.l + xglyph.x_offset,
y - glyph.t + xglyph.y_offset,
y - glyph.t - xglyph.y_offset,
0, 0, glyph.bb:getWidth(), glyph.bb:getHeight(), color)
end
end

@ -348,7 +348,7 @@ function TextWidget:paintTo(bb, x, y)
bb:colorblitFrom(
glyph.bb,
x + pen_x + glyph.l + xglyph.x_offset,
y + baseline - glyph.t + xglyph.y_offset,
y + baseline - glyph.t - xglyph.y_offset,
0, 0,
glyph.bb:getWidth(), glyph.bb:getHeight(),
self.fgcolor)

Loading…
Cancel
Save