The title says it all...
I was wondering if there's is any way to place a text around a circle, or a section of it.
Any hint will be much appreciated.
Thank you in advance
It is currently March 28th, 2024, 6:59 pm
Text along an arc..
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Text along an arc..
Not really. You might be able to do something with TransformationMatrix, that, with some important limitations, could curve a string meter. To be honest though, my response has to be "no".
https://www.google.com/search?sitesearch=forum.rainmeter.net&q=text+arc
https://www.google.com/search?sitesearch=forum.rainmeter.net&q=text+arc
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: Text along an arc..
Yep, I did try first with transformation matrices, but I only get weird result,. some sort of "rotation/skewing" but the result are not even close to "follow an arc"...
Well, it will remain in my wish list for now then...
-
- Rainmeter Sage
- Posts: 7025
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Text along an arc..
As always, my answer is that it IS possible, and although it will be hugely inconvenient, the limitations mentioned by jsmorley regarding the mouse actions can quite easily be solved.
I'm on mobile now so can't post workable code, but what you'd do is:
- use single characters instead of a multi character string
- apply the appropriate position and Angle option on each String meter
- solve the limitations by using either a text height thick Roundline meter or a text height thick Arc Shape AS A CONTAINER, so that mouse actions are triggered only if it's over that container instead of the still horizontal rectangular "frames" of the meters holding the rotated characters
It will be a bit more difficult to properly design the rotation formulas and the character meters' positions, not to mention being much easier to either use single characters or the whole string to create a similar image in Photoshop that you can use in a similar way, but it is nevertheless possible without any drawbacks beside the huge inconvenience.