It is currently May 7th, 2024, 7:52 pm

Feature suggestion -> Scaler resizing, Text effects

Report bugs with the Rainmeter application and suggest features.
nawmtaronyu
Posts: 64
Joined: July 21st, 2010, 3:30 am

Feature suggestion -> Scaler resizing, Text effects

Post by nawmtaronyu »

being able to Re-size a skin (The whole skin) with scale, and not having to do each individual measurement withing the .ini
500x500 -> 300x300, NOT 500x500 -> 300x340 (Keep the same ratio, 1:1, 3:4, 9:16, ext)

One other thing id like to have is some text effect, so that i can have my text look like its been "Chiseled" into my images, (Drop Shadow effects, Light effects, Glow, ext)
Image
User avatar
santa_ryan
Posts: 397
Joined: June 22nd, 2010, 4:11 am

Re: Feature suggestion -> Scaler resizing, Text effects

Post by santa_ryan »

you can resize stuff with calcs. Not to hard.

As for the text effects, that would be pretty cool
I have three rules when I'm trying to help you.
  • Don't get mad when you don't understand something
  • Be VERY specific with what you ask for.
    The more specific you are, the higher the quality of support you receive.
  • Do not just copy and paste what I put in examples and come back saying it doesn't work.
    It does work, but I purposely left blanks that you need to fill for your specific needs.
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Feature suggestion -> Scaler resizing, Text effects

Post by dragonmage »

The Manual wrote:StringEffect
Effect of the string. The valid values are: NONE, SHADOW and BORDER.
It would be nice to have more options and more control over the current ones, but you can get a semi-etched effect with SHADOW.

The scaling of skins I am not very hopeful for. There are just so manythings that what have to be accounted for , like someone using measure results or calcs for meter dimensions. I imagine there will be quite a resource hit with all the checking that would have to be done on every update.
User avatar
santa_ryan
Posts: 397
Joined: June 22nd, 2010, 4:11 am

Re: Feature suggestion -> Scaler resizing, Text effects

Post by santa_ryan »

dragonmage wrote: The scaling of skins I am not very hopeful for. There are just so manythings that what have to be accounted for , like someone using measure results or calcs for meter dimensions. I imagine there will be quite a resource hit with all the checking that would have to be done on every update.
Exactly. Your better off doing the math by yourself with a calc that will edit an entire section of variables that are dedicated to the resizing and then have the calc disable itself when it done then having it refresh itself every update.
I have three rules when I'm trying to help you.
  • Don't get mad when you don't understand something
  • Be VERY specific with what you ask for.
    The more specific you are, the higher the quality of support you receive.
  • Do not just copy and paste what I put in examples and come back saying it doesn't work.
    It does work, but I purposely left blanks that you need to fill for your specific needs.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Feature suggestion -> Scaler resizing, Text effects

Post by jsmorley »

At the end of the day everything in Rainmeter is drawn using the GDI+ API library from Microsoft. There are some built-in capabilities for rendering "fonts" which we have implemented pretty much all of. (I think underline and strikethrough might not be hard to add, they are native capabilities). Once you get outside of what is possible natively, then you are into tons of code, and still are pretty limited. GDI+ is not Photoshop...

Here is an interesting article on how you might achieve "soft shadows" and "glow effect" for strings in GDI+. A lot of code for an effect that I suspect is going to be disappointing though.

http://www.codeproject.com/KB/GDI/Glow_and_Shadow_effects.aspx
User avatar
JoBu
Posts: 271
Joined: February 16th, 2011, 12:46 am
Location: California

Re: Feature suggestion -> Scaler resizing, Text effects

Post by JoBu »

Couldn't you just run two texts on top of each other, one the color of the background and one the 'dropshadow' so that it looks cut-out?

Or am I missing... a lot?
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Feature suggestion -> Scaler resizing, Text effects

Post by jsmorley »

JoBu wrote:Couldn't you just run two texts on top of each other, one the color of the background and one the 'dropshadow' so that it looks cut-out?

Or am I missing... a lot?
No, you could do exactly that, offseting the X and Y for each by a pixel or two. In fact, if you really wanted to you could lay like 10 string meters on top of each other, each one successively 1 fontsize smaller, with the early ones having a lot of transparency, getting more solid as you go, and get a halfway decent "glow" effect too.
User avatar
Scolex
Posts: 111
Joined: July 31st, 2010, 8:52 am

Re: Feature suggestion -> Scaler resizing, Text effects

Post by Scolex »

What about adding button scaling similar to the way you can scale an image with W and H only using a %.
I figure H & W can't really work for scaling since a button is in effect a horizontally layered image.

After thought: obviously there would have to be some sort of calculation to round the % to a number that would
create an image size that is divisible by 3 since there are 3 sections to a button image.