Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by ermedian · Oct 20, 2014 at 10:23 AM · font

Text does not display currency symbol

I`m using Text and trying to display price of in app item; but it can not display it correctly. String which needs to be shown is like "6.49 ₺" where ₺ is Turkish Lira symbol; but instead of sign it shows question mark inside of a box. I tried changing encoding of c# script file and also method to convert to utf-16; but they did not work. Anyone can help?

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LukaKotar · Oct 20, 2014 at 10:28 AM 0
Share

How are you displaying the text? Does the font contain the symbol? Try using a different font.

avatar image ermedian · Oct 20, 2014 at 10:30 AM 0
Share

i already tried using Arial; but still same

avatar image Baste · Oct 20, 2014 at 10:34 AM 0
Share

The font version you're using probably don't have the full UTF range. There's a bunch of free fonts online, try to grab one that supports Turkish symbols and see if that works.

avatar image LukaKotar · Oct 20, 2014 at 10:39 AM 0
Share

Try saving the script as UTF-16. In $$anonymous$$onoDevelop: File > Save As... > choose UTF-16 at the bottom and save the script.

Edit: $$anonymous$$y bad, you said you've already tried that.

avatar image Graham-Dunnett ♦♦ · Oct 20, 2014 at 11:15 AM 0
Share

I suspect the Ariel font that ships with Unity was made before U+20BA was defined. (If I understand, that character was added in 2012.)

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Graham-Dunnett · Oct 20, 2014 at 11:50 AM

You will need to use a font that has the TL glyph. See:

http://evertype.com/fonts/rupakara/

for example.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by atulvi · Jul 01, 2021 at 12:38 PM

It works in TextMeshPro.


Step 01: Download Font


open the link https://fonts.google.com/ . Click right on corner Browse fonts click. and type the font in search box.

Font List

  1. Noto Sans [find On Google fonts]

  2. Roboto [find On Google fonts] 3)

  3. Code2000 [But it's not open source.]

  4. Futura

  5. Arial

Download Family for your favorite font.


Step 02: Install TextMeshPro plugin


from Package manager. After copy the font file NotoSans-Regular.ttf and paste to this directory. [Ex. Asset > TextMesh Pro > Resources > Fonts & Materials > paste NotoSans-Regular.ttf file]


Step 03: Create SDF for font. if any one


  1. Select NotoSans-Regular.ttf file and create font asset SDF from menu bar Assets > Create > TextMeshPro > Font Asset OR

  2. Short Cut-> Shift + Ctrl + F12 OR

  3. Select NotoSans-Regular.ttf file and click mouse right button and create SDF from Create > TextMeshPro > Font Asset alt text


Step 04: Add Other font SDF in to your primary or existing font SDF.


Select primary font SDF and show the inspector go to Fallback Font Assets. Added the NotoSans-Regular SDF in to Fallback list. [Multiple fonts added in to primary font SDF]


alt text


1currency.png (96.3 kB)
generalcurrency.png (400.2 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to find a font via script? 2 Answers

Is there a way to measure the pixel with/height of a string with a given font? 2 Answers

Access to Custom Font Asset in Editor Scripts, no Custom Font Class? 1 Answer

I can't seem to get the font "T4C Beaulieux" to work ! 2 Answers

Multiple sizes of same font (for mobile) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges