It is currently May 25th, 2019, 2:21 pm

VectorConverter [V 0.1.3]

Post your work-in-progress and completed skins to share and discuss.
User avatar
raiguard
Posts: 611
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: VectorConverter [V 0.1.3]

raiguard » April 6th, 2019, 3:13 pm

So I did some testing, and found this:
2019-04-06 09_17_16-Cheatsheet _ Font Awesome.png
On the left is FontAwesome's cheatsheet page, where I zoomed out of the page until the icons were the same size as my Rainmeter ones. In Rainmeter, it goes string, image, shape.

This obviously points to the font itself being good, but somehow Rainmeter's displaying of it is borked. Perhaps it's just a difference in display technology (HTML vs Direct2D)? I do know that the web uses subpixel antialiasing while Rainmeter uses greyscale.

Anyway, this proves that if one wanted to basically rewrite Rainmeter (again), icon fonts could work at small scales. :D
You do not have the required permissions to view the files attached to this post.
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017
User avatar
jsmorley
Developer
Posts: 19245
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: VectorConverter [V 0.1.3]

jsmorley » April 6th, 2019, 3:24 pm

Yeah, I don't think the Antialiasing in Rainmeter is optimal.

Part of the issue is that in reality, EVERYTHING in Rainmeter is an "image".
User avatar
Brian
Developer
Posts: 1865
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: VectorConverter [V 0.1.3]

Brian » April 8th, 2019, 7:00 am

Just to be clear, there are 2 kinds of anti-aliasing that Rainmeter can do (at the moment). Both are D2D sub-pixel anti-aliasing. For text (aka the String meter), Rainmeter uses a GrayScale anti-aliasing, which is a better equivalent to its GDI counterpart for text. There is even a better alternative called ClearType anti-aliasing, but it doesn't play well when blending with transparent areas, which is why we don't offer it. The rest of Rainmeter uses what is called per-primitive anti-alias, which just basically makes sure the edges of what is being drawn blend better to whatever is behind it. This isn't quite as good as its GDI equivalent, but is close.

In a few cases, we have actually force the meter to draw with AntiAlias=1 since the default D2D version was not good enough.

We may be looking to add some anti-alias options in the future, but it will most likely require a new option. These will probably effect mostly images used in Rainmeter.

jsmorley wrote:
April 6th, 2019, 3:24 pm
Part of the issue is that in reality, EVERYTHING in Rainmeter is an "image".
Huh? This is somewhat misleading. We don't really work with images directly (except for the loading "real" images and displaying them). What really happens is we draw onto a canvas, which is then "presented" to the screen. D2D/D3D uses an image as a backbuffer to "flip" our canvas onto the screen. We don't directly work with the backbuffer too much.

-Brian
User avatar
jsmorley
Developer
Posts: 19245
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: VectorConverter [V 0.1.3]

jsmorley » April 8th, 2019, 12:13 pm

Brian wrote:
April 8th, 2019, 7:00 am
Huh? This is somewhat misleading. We don't really work with images directly (except for the loading "real" images and displaying them). What really happens is we draw onto a canvas, which is then "presented" to the screen. D2D/D3D uses an image as a backbuffer to "flip" our canvas onto the screen. We don't directly work with the backbuffer too much.
Yeah, I shouldn't have gone down that road, as the semantics get pretty murky pretty fast. It was my assumption that meters are at the end created into a "bitmap" that is then drawn onto the canvas.
User avatar
raiguard
Posts: 611
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: VectorConverter [V 0.1.3]

raiguard » May 4th, 2019, 3:50 am

I have discovered that 99% of the failed conversions with this tool can be worked around by first converting all path coordinates to absolute. You can use this tool to do so. Open the SVG code, copy the path definition, paste it onto the website, convert it and replace the string in the SVG. Refresh the vectorconverter skin and hopefully it will work!

All of the icons in this skin are shape meters, there is no image in sight. It's beautiful.
2019-05-03 21_48_30-D__Caleb_Development_Rainmeter_Testbench_Skins_ModernGadgets_NetworkMeter_Networ.png
You do not have the required permissions to view the files attached to this post.
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017