It is currently March 29th, 2024, 7:49 am

InlineSetting Question

Report bugs with the Rainmeter application and suggest features.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: InlineSetting Question

Post by jsmorley »

Yep...

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]

[Meter1]
Meter=String
FontColor=255,255,255,255
AntiAlias=1
FontSize=12
Text=[\x3455]Hello[\x6437]
InlineSetting=Size | 20
InlinePattern=[\x3455]|[\x6437]


1.jpg
You do not have the required permissions to view the files attached to this post.
Kimberly
Posts: 3
Joined: April 7th, 2021, 8:43 am

Re: InlineSetting Question

Post by Kimberly »

Hi all,

I ran into a strange issue with Inline Settings and I'm not sure what's going on exactly. I could use a helping hand if possible.
I've included a link to the fonts used in the code.

The code below works as intendend.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,255

;https://github.com/erikflowers/weather-icons/tree/master/font
;weathericons-regular-webfont.ttf

[MeterTooltipText]
Group=TooltipGroup
Meter=String
FontFace=Segoe UI
FontColor=255,255,255
FontSize=9
Padding=4,0,16,16
AntiAlias=1
X=2
Y=2
Text=[\xf051] Sunrise Icon [\xf052] Sunset Icon
InlineSetting=Face | Weather Icons
InlinePattern=[\xf051]|[\xf052]
InlineSetting2=Color | 255,117,0
InlinePattern2=[\xf051]|[\xf052]
InlineSetting3=Size | 14
InlinePattern3=[\xf051]|[\xf052]
However this one using Awesome Fonts shows a square instead. I'm kinda lost here ...

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,255

;https://use.fontawesome.com/releases/v5.15.3/fontawesome-free-5.15.3-web.zip
;fa-solid-900.ttf

[MeterTooltipText1]
Group=TooltipGroup
Meter=String
FontFace=Segoe UI
FontColor=255,255,255
FontSize=9
Padding=4,0,16,16
AntiAlias=1
X=2
Y=50
Text=This is the [\xf185] Sun Icon
InlineSetting=Face | Font Awesome 5 Free Solid
InlinePattern=[\xf185]
InlineSetting2=Color | 255,117,0
InlinePattern2=[\xf185]
InlineSetting3=Size | 14
InlinePattern3=[\xf185]
sample-text.jpg
Thank you.
You do not have the required permissions to view the files attached to this post.
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: InlineSetting Question

Post by Active Colors »

Kimberly wrote: April 7th, 2021, 9:00 am Hi all,

I ran into a strange issue with Inline Settings and I'm not sure what's going on exactly. I could use a helping hand if possible.
I've included a link to the fonts used in the code.

The code below works as intendend.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,255

;https://github.com/erikflowers/weather-icons/tree/master/font
;weathericons-regular-webfont.ttf

[MeterTooltipText]
Group=TooltipGroup
Meter=String
FontFace=Segoe UI
FontColor=255,255,255
FontSize=9
Padding=4,0,16,16
AntiAlias=1
X=2
Y=2
Text=[\xf051] Sunrise Icon [\xf052] Sunset Icon
InlineSetting=Face | Weather Icons
InlinePattern=[\xf051]|[\xf052]
InlineSetting2=Color | 255,117,0
InlinePattern2=[\xf051]|[\xf052]
InlineSetting3=Size | 14
InlinePattern3=[\xf051]|[\xf052]
However this one using Awesome Fonts shows a square instead. I'm kinda lost here ...

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,255

;https://use.fontawesome.com/releases/v5.15.3/fontawesome-free-5.15.3-web.zip
;fa-solid-900.ttf

[MeterTooltipText1]
Group=TooltipGroup
Meter=String
FontFace=Segoe UI
FontColor=255,255,255
FontSize=9
Padding=4,0,16,16
AntiAlias=1
X=2
Y=50
Text=This is the [\xf185] Sun Icon
InlineSetting=Face | Font Awesome 5 Free Solid
InlinePattern=[\xf185]
InlineSetting2=Color | 255,117,0
InlinePattern2=[\xf185]
InlineSetting3=Size | 14
InlinePattern3=[\xf185]
sample-text.jpg

Thank you.
I think you are using a wrong font name. For me simply FontAwesome works. This font tool will help you find the right name (and view all the glyphs at once) https://us.fontviewer.de/
f.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: InlineSetting Question

Post by jsmorley »

InlineSetting=Face | Font Awesome 5 Free


1.png

2.png
You do not have the required permissions to view the files attached to this post.
Kimberly
Posts: 3
Joined: April 7th, 2021, 8:43 am

Re: InlineSetting Question

Post by Kimberly »

Thank you Active Colors and jsmorley for pointing out my mistake.

Yes indeed, I was using the name as shown by the Windows Font Viewer.

Font-Name.jpg
I think you are using a wrong font name. For me simply FontAwesome works. This font tool will help you find the right name (and view all the glyphs at once) https://us.fontviewer.de/
Thank you, bookmarked :bow:
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: InlineSetting Question

Post by jsmorley »

Fonts are complicated... What I look for is first "Preferred Family", and if that isn't there, then "Family".
Kimberly
Posts: 3
Joined: April 7th, 2021, 8:43 am

Re: InlineSetting Question

Post by Kimberly »

Thank you for the tip jsmorley, I'll keep that in mind for next time.