]> git.ipfire.org Git - thirdparty/plymouth.git/commit
plugins: label-freetype: Fixes calculation of line width
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Thu, 20 Oct 2022 11:48:55 +0000 (12:48 +0100)
committerAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Thu, 20 Oct 2022 11:48:55 +0000 (12:48 +0100)
commitd566b1285d9184418d700538ba83961a6fcde026
tree9fd9b8034975a2888779c638c527d47436160b07
parentdbf0fa7fc7520e33091d08ef7e8916e80ab8de30
plugins: label-freetype: Fixes calculation of line width

label-freetype was giving a wrong line width for two reasons:
* Unproper handling of negative left bearings as it was using it as normal
  while in fact the plugin draws full character boxes.
* Loading of the character used different flags when calculating width
  and when actually printing the characters.
src/plugins/controls/label-freetype/plugin.c