It is currently October 22nd, 2021, 10:04 am

[BUG]Terminating spaces are ignored when width is calculated in string meter

Report bugs with the Rainmeter application and suggest features.
User avatar
jsmorley
Developer
Posts: 22372
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [BUG]Terminating spaces are ignored when width is calculated in string meter

Post by jsmorley »

death.crafter wrote: October 12th, 2021, 3:30 pm Thank you jsmorley and Brian. 😁
Actually... This turned out to be a lot more complicated with D2D than we initially thought. I think we are just going to have to live without this ability. It would take just way too much ugly, hacky code to accomplish this. The issue arises with StringAlign, and just can't be solved in a way that isn't way more trouble than it is worth.
User avatar
Brian
Developer
Posts: 2272
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [BUG]Terminating spaces are ignored when width is calculated in string meter

Post by Brian »

Just to elaborate on this. D2D (really it is DirectWrite) allows for the correct calculation of text with trailing whitespace. However when rendering the text layout, there is no option (that I could find) that will correctly "position" the text when using centered or right justified text - even though left alignment worked just fine.

-Brian
User avatar
death.crafter
Posts: 1058
Joined: April 24th, 2021, 8:13 pm

Re: [BUG]Terminating spaces are ignored when width is calculated in string meter

Post by death.crafter »

Ahh, it's fine. No worries.

Thank you for taking your time to try. 😄
from the Realm of Death
My Current Desktop