It is currently April 19th, 2024, 12:36 pm

How To simulate Expanded and Condensed Fonts

Tips and Tricks from the Rainmeter Community
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

How To simulate Expanded and Condensed Fonts

Post by kenz0 »

This is the simple examples that simulates Expanded and Condensed Fonts using TransformationMatrix.


Normal font (Arial normal)

Image


_____________________________


Expanded font
The example that transforms the font height into a half by changing the 4th value of TransformationMatrix.

Image

Code: Select all

[Expanded_Font]
Meter=STRING
X=0
Y=0
FontFace=Arial
FontSize=40
AntiAlias=1
Text="Rainmeter"
TransformationMatrix=1;0;0;0.5;0;0

Condensed font
Thie example that transforms the font width into a half by changing the 1st value of TransformationMatrix.

Image

Code: Select all

[Condensed_Font]
Meter=STRING
X=0
Y=0
FontFace=Arial
FontSize=45
AntiAlias=1
Text="Rainmeter"
TransformationMatrix=0.5;0;0;1;0;0
.
Image
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How To simulate Expanded and Condensed Fonts

Post by jsmorley »

Man, how do you stumble on this stuff? ;-) You are scary clever kenz0!