It is currently April 18th, 2024, 6:18 pm

Can't Add japanese Characters

Get help with creating, editing & fixing problems with skins
My_Name_A_Jeff
Posts: 2
Joined: February 18th, 2019, 5:34 pm

Can't Add japanese Characters

Post by My_Name_A_Jeff »

I'm new to this and what I've learned is you use Substitute to add in Japanese characters, so I did that but it didn't work, maybe cause I don't know how to but I added the fonts to @Resources folder and the result isn't what I want. Here is the Code:

Code: Select all

[Rainmeter]
Update = 1000


[Japanese]
Meter = String
Text = Nihon no guriru
AntiAlias =1 
FontFace = komorebi-gothic-P
FontSize = 50
FontColor = 255,255,255
Substitute = "Nihon no guriru":"日本のグリル"
Last edited by balala on February 18th, 2019, 6:09 pm, edited 1 time in total.
Reason: Please use [code] tags when posting code snippets. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't Add japanese Characters

Post by balala »

My_Name_A_Jeff wrote: February 18th, 2019, 5:41 pm I'm new to this and what I've learned is you use Substitute to add in Japanese characters, so I did that but it didn't work, maybe cause I don't know how to but I added the fonts to @Resources folder and the result isn't what I want. Here is the Code:

Code: Select all

[Rainmeter]
Update = 1000


[Japanese]
Meter = String
Text = Nihon no guriru
AntiAlias =1 
FontFace = komorebi-gothic-P
FontSize = 50
FontColor = 255,255,255
Substitute = "Nihon no guriru":"日本のグリル"
The Substitute option can't be used on meters. It belongs to measures and is working only there. So:

Code: Select all

[MeasureJapanese]
Measure=String
String=Nihon no guriru
Substitute = "Nihon no guriru":"日本のグリル"
But I'm not quite sure why would you like to use a Substitution. Much simpler would be this:

Code: Select all

[MeasureJapanese]
Measure=String
String=日本のグリル
Or directly on a String meter:

Code: Select all

[Japanese]
Meter=String
Text=日本のグリル
AntiAlias=1 
FontFace=komorebi-gothic-P
FontSize=50
FontColor=255,255,255
My_Name_A_Jeff
Posts: 2
Joined: February 18th, 2019, 5:34 pm

Re: Can't Add japanese Characters

Post by My_Name_A_Jeff »

Thanks Man! That worked. :great: :great:
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't Add japanese Characters

Post by balala »

My_Name_A_Jeff wrote: February 18th, 2019, 6:18 pm Thanks Man! That worked. :great: :great:
I'm glad in this case.