ジ
ャ
ン
・
カ
ル
ロ
[Rainmeter]
Author=howtogeek
[QuoteStyle]
FontColor=ff69b4
FontFace=Ink Free
FontSize=40
AntiAlias=1
StringStyle=BOLD
Stringeffect=SHADOW
Meter=STRING
MeterStyle=QuoteStyle
Text= "ジャン・カルロ"
Meter=STRING
MeterStyle=QuoteStyle
Text= "ジャン・カルロ"
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=128,128,128,192
SkinWidth=150
SkinHeight=150
[Variables]
ShowString=ジャン・カルロ
[MeterShowString]
Meter=String
X=5
Y=5
FontFace=メイリオ
FontSize=12
Text=#ShowString#
[MeterShowStringVertical]
Meter=String
X=40
Y=30
FontFace=@メイリオ
FontSize=12
Angle=(Rad(90))
Text=#ShowString#
Code: Select all
[MeasureString]
Measure=String
String=#ShowString#
Substitute=".":"\0\n"
RegExpSubstitute=1
[TheStringMeter]
Meter=String
MeasureName=MeasureString
FontFace=メイリオ
FontSize=12
thank you for helping also i dont understand what you're trying to say also im completely a noob as in literally i don't know anything in this but thank you XDmak_kawa wrote: ↑November 28th, 2019, 4:21 am My idea is... if you are using Windows of Japanese version, rotation of string meter with "vertical writing (Tategaki)" font as @メイリオ to 90 degree probably would get result as you want (see the attachment).
Untitled-2.png
So I tried.Untitled-1.pngCode: Select all
[Rainmeter] Update=1000 BackgroundMode=2 SolidColor=128,128,128,192 SkinWidth=150 SkinHeight=150 [Variables] ShowString=ジャン・カルロ [MeterShowString] Meter=String X=5 Y=5 FontFace=メイリオ FontSize=12 Text=#ShowString# [MeterShowStringVertical] Meter=String X=40 Y=30 FontFace=@メイリオ FontSize=12 Angle=(Rad(90)) Text=#ShowString#
Unfortunately, my try was failed as shown above. Probably string meter of Rainmeter does not support Japanese vertical writing font with "@" prefix, but not sure. Sorry.
Thanks and also . i don't understand what youare triny to say im so noob in this thing i mean like youre trying to explain me how to create an atomic bomb literally i dont understand a thing here but thanks a lot XDJeff wrote: ↑November 28th, 2019, 8:14 amthus should work as a substitue until an expert explains why @ fonts don't workCode: Select all
[MeasureString] Measure=String String=#ShowString# Substitute=".":"\0\n" RegExpSubstitute=1 [TheStringMeter] Meter=String MeasureName=MeasureString FontFace=メイリオ FontSize=12
Correct. Rainmeter does not understand how to display the unix \n linefeed character. It can be used as "input" to the regular expression when needed, but can't be used in the "output".mak_kawa wrote: ↑November 28th, 2019, 1:38 pm Now I feel I do understand what Jeff said. It means that when replace each character one by one followed by new line character, the string is displayed as if it is vertical string...
But at least for me, the RegExp substitution should be Substitute="(.)":"\0#CRLF#" to work, instead of Substitute=".":"\0\n". Is this right?
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeasureString]
Measure=String
String=HELLO
RegExpSubstitute=1
Substitute="(.)":"\0#CRLF#"
[MeterString]
Meter=String
MeasureName=MeasureString
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeasureAddLinefeeds]
Measure=String
String=HELLO
RegExpSubstitute=1
Substitute="(.)":"\0#CRLF#"
[MeasureRemoveLinefeeds]
Measure=String
String=[MeasureAddLinefeeds]
DynamicVariables=1
RegExpSubstitute=1
Substitute="\n":""
[MeterString]
Meter=String
MeasureName=MeasureAddLinefeeds
MeasureName2=MeasureRemoveLinefeeds
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=%1#CRLF#%2
Code: Select all
[MeasureRemoveLinefeeds]
Measure=String
String=[MeasureAddLinefeeds]
DynamicVariables=1
RegExpSubstitute=1
Substitute="#CRLF#":""
Unfortunately nothing is working as should on this code, because the substitution isn't properly made. See jsmorley's code and check the Substitute option there. That is a proper substitution: Substitute="(.)":"\0#CRLF#". Note that the new line character in Rainmeter is #CRLF#, not \n. Also the dot in the first part of the substitution has to be included into parenthesis to capture it.Jeff wrote: ↑November 28th, 2019, 8:14 amthus should work as a substitue until an expert explains why @ fonts don't workCode: Select all
[MeasureString] Measure=String String=#ShowString# Substitute=".":"\0\n" RegExpSubstitute=1 [TheStringMeter] Meter=String MeasureName=MeasureString FontFace=メイリオ FontSize=12