It is currently December 12th, 2019, 8:18 pm

help making lines vertical

Get help with installing and using Rainmeter.
mak_kawa
Posts: 371
Joined: December 30th, 2015, 9:47 am

Re: help making lines vertical

mak_kawa » November 28th, 2019, 11:46 pm

Honestly, I think Jeff's idea is the best and universal solution so far, as current Rainmeter doesn't support "vertical writing" font of Japanese version of Windows.
Untitled-1.png
You do not have the required permissions to view the files attached to this post.
mak_kawa
Posts: 371
Joined: December 30th, 2015, 9:47 am

Re: help making lines vertical

mak_kawa » November 29th, 2019, 12:27 am

Back to RGBisLyf's primary question...It is better(best?) to use Jeff's idea.

How do you get the string "ジャン・カルロ"? Is this fixed or dynamically changing?
If fixed, add a measure to replace original string to "pseudo-vertical" string.

Code: Select all

[MeasureReplace]
Measure=String
String="ジャン・カルロ"
RegExpSubstitute=1
Substitute="(.)":"\0#CRLF#"

[MeterString]
Meter=String
MeasureName=MeasureReplace
MeterStyle=QuoteStyle
Text=%1
When the string is changing as an output from some measure.

Code: Select all

[SomeMeasure]
Measure=(some)
......
RegExpSubstitute=1
Substitute="(.)":"\0#CRLF#"

[MeterString]
Meter=String
MeasureName=SomeMeasure
MeterStyle=QuoteStyle
Text=%1
As I didn't actually try (= paper coding), some mistake is possible. If so, sorry.
Anyway, posting your working skin code here is certainly helpful to improve.
User avatar
balala
Rainmeter Sage
Posts: 9258
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help making lines vertical

balala » November 29th, 2019, 4:54 pm

As far as I see from the posted images / screenshots, I'd add one more option to the String meter, a StringAlign=Center, to get the center of the letters (symbols - whatever do you name those) aligned one beneath the other. If add this, you also have to increase a little bit the X value, otherwise the left half of the letters go outside to left of the skin.
For instance on Jeff's code, I'd replace the [TheStringMeter] meter with something like this:

Code: Select all

[TheStringMeter]
Meter=String
MeasureName=MeasureString
X=15
FontFace=メイリオ
FontSize=12
StringAlign=Center
mak_kawa
Posts: 371
Joined: December 30th, 2015, 9:47 am

Re: help making lines vertical

mak_kawa » November 29th, 2019, 8:49 pm

Nice point-out...