It is currently March 28th, 2024, 9:12 am

Improved font rendering with Direct2D

Changes made during the Rainmeter 3.0 beta cycle.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Improved font rendering

Post by jsmorley »

Beta revision 1879 - April 7.

Added support for TransformationMatrix (all meters) and Angle (string meters).

Made some changes to how font "family" and "subfamily" names are handled, to be more consistent with GDI+.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Improved font rendering

Post by moshi »

seems like fonts work now. :)

you are probably aware of it, ScaleMargins do not work:
Untitled-1.jpg
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm
Contact:

Re: Improved font rendering

Post by poiru »

moshi wrote:seems like fonts work now. :)
Yes, it should be a better now. There are still some issues left, but hopefully it will be fully sorted out next week.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK
Contact:

Re: Improved font rendering

Post by Seahorse »

Is there an ETA on a fix for fonts in @Resources\Fonts do not work as of this beta. please?
User avatar
Brian
Developer
Posts: 2673
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Improved font rendering

Post by Brian »

How about Sunday? Noon (EST)? Does that sound good? :D

-Brian
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK
Contact:

Re: Improved font rendering

Post by Seahorse »

Thank you Sir - It impacts directly on the skins I am working on, hence I have not jumped to 3.0 and my interest not that i am back from holiday 8-)
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm
Contact:

Re: Improved font rendering

Post by poiru »

moshi wrote:you are probably aware of it, ScaleMargins do not work:
I've fixed this for the beta release later today. Thanks for reporting.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Improved font rendering

Post by jsmorley »

April 14, 2013
Rainmeter 3.0 r1900

Changes in this release include:

- The ability to load fonts in D2D with the "LocalFont" option or (preferably) the @Resources\Fonts automatic loading has been implemented.

- Major improvements to the handling of font recognition and family/subfamily attributes on both installed and "local" fonts.

- Fix for ScaleMargins and other image handling issues.

The major outstanding "issue" with the D2D implementation is some remaining inconsistencies between GDI+ and D2D relating to "relative positioning" of string meters with some fonts.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Improved font rendering

Post by moshi »

it appears to me it is not relative positioning, but rather font size.

in this shot you see the same skin, left is D2D, right is GDI+.
Untitled-2.jpg
it's pretty obvious at the http://www.paris.fr line.

Code: Select all

FontSize=7
FontFace=Source Sans Pro
StringStyle=NORMAL
Antialias=1
and see the line-break!

maybe one uses pixels and the other one points as measurements?
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Improved font rendering

Post by moshi »

unrelated: the InputText plugin still uses a different font rendering than Rainmeter in general.
i think it uses the Windows standard font rendering, it never was GDI+ anyways.

in this shot you see D2D only. Windows 7.
Untitled-1.jpg
in the upper part you see a string meter that displays the input.
in the lower part you see how it looks while typing.

Code: Select all

FontFace=Source Sans Pro
FontSize=8
StringStyle=NORMAL
AntiAlias=1
difference in size is obvious.
Post Reply