Fix: truncateTextByWidth() should respect kerning and bold (#3139)

This commit is contained in:
Robert
2017-08-28 20:36:15 +02:00
committed by Frans de Jonge
parent 1ab2a542dd
commit c78f6989b4
2 changed files with 4 additions and 3 deletions

View File

@@ -155,7 +155,8 @@ function KeyValueItem:init()
self.show_value = self.value
else
key_w = key_w_rendered + space_w_rendered
self.show_value = RenderText:truncateTextByWidth(self.value, self.cface, frame_internal_width - key_w_rendered, true)
self.show_value = RenderText:truncateTextByWidth(self.value, self.cface, frame_internal_width - key_w_rendered,
false, false, true)
self.show_key = self.key
end
-- allow for displaying the non-truncated texts with Hold