Mercurial > public > ostc4
view .hgtags @ 481:89f6857276f8 Improve_Button_Sleep
Bugfix calculation of string center position:
Strings shown on the right side at surface mode use special characters ('\016' and '\017') to switch font size. Headline strings like "Desaturation" could also be set to the target font directly, because they do not contain mixed font sizes, but nethertheless they are using the special characters.
The function calculating the offset needed to display the strinter with center alignment did not consider the small font size => misalignment during string display. To avoid this an evaluation of the special characters has been added to the helper function.
author | ideenmodellierer |
---|---|
date | Mon, 18 May 2020 21:51:08 +0200 |
parents | 4787cd767a9d |
children | 9b7e3ebce463 |
line wrap: on
line source
1b9be6040d8279117c7fc99d528790611638f10b V1.4.7 release ba9d99a2e310da601a948ff11ad665260c600e18 v1.4.8 release 143fe85f82a2e2aca50eb0c29bc55066cb4fe497 v1.5.0 release afa55a50cc724b11b959fa81567d59ede251ef22 v1.5.1 release 54a480c43e977db8fc6969551ad6148f2ad46e15 v1.5.2.beta release 5b4c78c36b0456ff65d1a0870d07d4072045480d v1.5.3 release