Fixed rendering computations for y offset. (#843)
* Fixed rendering computations for y offset. * Force monospacing if every ascii character has the same integer advance. * Added in explanatory comment. * Fixed issues. * Made lines less long.
This commit is contained in:
@@ -380,9 +380,8 @@ function DocView:draw_line_gutter(idx, x, y, width)
|
||||
break
|
||||
end
|
||||
end
|
||||
local yoffset = self:get_line_text_y_offset()
|
||||
x = x + style.padding.x
|
||||
common.draw_text(self:get_font(), color, idx, "right", x, y + yoffset, width, self:get_line_height())
|
||||
common.draw_text(self:get_font(), color, idx, "right", x, y, width, self:get_line_height())
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user