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?
It is currently March 29th, 2024, 10:41 am
InlineSettings and new lines
-
- Moderator
- Posts: 1251
- Joined: February 16th, 2012, 3:32 am
- Location: Berlin, Germany
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: InlineSettings and new lines
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#(.*)$
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 1251
- Joined: February 16th, 2012, 3:32 am
- Location: Berlin, Germany
Re: InlineSettings and new lines
Thank you very much! That's the pattern I was looking for.jsmorley wrote: ↑October 20th, 2018, 11:57 pm1.pngCode: 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#(.*)$