Welcome, Guest
Username: Password: Remember me

TOPIC: Changing Font

Changing Font 4 years 8 months ago #123

  • SuperBuff
  • SuperBuff's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Hello,

I've added the Localize component to the UILabel, i'm using NGUI, but the secondary tab does not refresh the tab. I cannot change the text AND the font, It seems it's one or the other.

Please advise.
Last Edit: 4 years 8 months ago by SuperBuff.
The administrator has disabled public write access.

Changing Font 4 years 7 months ago #130

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1178
  • Thank you received: 253
  • Karma: 78
Hi,
I have been trying to reproduce that issue, but I haven't been able. I'm assigning fonts and texts without having them override each other.

Are you using the latest version?
Can you list the steps you do to make that bug happen on any of the example scenes?

Thanks a lot,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.

Changing Font 4 years 7 months ago #156

  • SuperBuff
  • SuperBuff's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Hello Frank,

I add the localization component.
The main tab is selected.
I select the term
I then click the secondary tab.
Set it to font
And drag the fonts into the slots.
Then i go back to the main tab and i see that instead of text it says font.
The administrator has disabled public write access.

Changing Font 4 years 7 months ago #157

  • SuperBuff
  • SuperBuff's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Do i need to add the font name to the sheet or something?

Right... so it seems that was it. I've added terms for every font I use, the english is the name of the font and the Chinese has the Chinese font name.

Strangely enough when running in the editor, Chinese is shown as default. Did i miss something?
Last Edit: 4 years 7 months ago by SuperBuff. Reason: more details
The administrator has disabled public write access.

Changing Font 4 years 7 months ago #160

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1178
  • Thank you received: 253
  • Karma: 78
The startup Language is selected as follow:

- The first time your game runs it tries to use the language your device/system is using (Application.systemLanguage)

- If can't find it, it then picks the first language in the language's tab on the Source

- That selection is saved to the PlayerPrefs, and from that point on, everytime you run, the game remembers that selection and starts with that language enabled.

So, if you changed the language to Chinese in the game, it will start with Chinese everytime you run the game.
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.
Time to create page: 0.087 seconds
Template by JoomlaShine