It is currently March 29th, 2024, 10:41 am

InlineSettings and new lines

Get help with creating, editing & fixing problems with skins
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

InlineSettings and new lines

Post by Active Colors »

I have two lines of text divided with #CRLF#.
I want the second line to be written with another size and another color.
How to approach that?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: InlineSettings and new lines

Post by jsmorley »

Code: Select all

[MeterOne]
Meter=String
FontSize=20
FontWeight=400
AntiAlias=1
Text=Line One#CRLF#Line Two
InlineSetting=Color | 255,0,0,255
InlinePattern=^(.*)#CRLF#
InlineSetting2=Color | 0,255,0,255
InlinePattern2=#CRLF#(.*)$
1.png
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: InlineSettings and new lines

Post by Active Colors »

jsmorley wrote: October 20th, 2018, 11:57 pm

Code: Select all

[MeterOne]
Meter=String
FontSize=20
FontWeight=400
AntiAlias=1
Text=Line One#CRLF#Line Two
InlineSetting=Color | 255,0,0,255
InlinePattern=^(.*)#CRLF#
InlineSetting2=Color | 0,255,0,255
InlinePattern2=#CRLF#(.*)$
1.png
Thank you very much! That's the pattern I was looking for.