Since Apple and Google store provides currency symbol during runtime. They are not baked into our font assets. What’s the best way to handle this? Thanks
If you are using version 1.4.1 or newer for Unity 2018.4 or 2.0.1 for Unity 2019.x, I would recommend using a fallback font asset set to dynamic. As such any missing character / glyphs in your primary / static font asset will be added to the fallback.
Thanks Stephan!
When will the 1.4.2 version be released? Can’t wait to see it!
Hi, So as I understand, to show all languages (symbols) and currencies, I need to use fallback dynamic font asset with all codes of (out of the box) characters included in Characters Table. Do you have such customized font, @Stephan_B , or how I can to create it fast?
To support all currency symbols, you first need to…
(1) Find a font file that includes all the currency symbols you need.
(2) Create a dynamic font asset from this font file.
(3) Assign this new dynamic font asset as fallback.
Provided your primary font asset is static and does not contain those currency symbols, all currency symbols will come from the dynamic font asset assigned as fallback. If your primary font asset does contain some of those currency symbols, you can always remove them from the character and glyph tables of the primary.
With dynamic font assets, you do not need to prepopulate the character and glyph tables as these will be added as needed.
Hey @Stephan_B when i tried to create font asset with cureency symbols it misses most of the characters even the font i downloaded from internet has all the currency symbols i want to include.
What is the problem ? and why it is not including all the characters? and How can we solve this problem?
Thanks in Advance
What font file are you using?
Which specific currency character are you missing?
If the Font Asset Creator reports missing characters then these specific characters would be missing from the font file.
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
- Noto Sans [find On Google fonts]
- Roboto [find On Google fonts] 3)
- Code2000 [But it’s not open source.]
- Futura
- 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
- Select NotoSans-Regular.ttf file and create font asset SDF from menu bar Assets > Create > TextMeshPro > Font Asset OR
- Short Cut-> Shift + Ctrl + F12 OR
- Select NotoSans-Regular.ttf file and click mouse right button and create SDF from Create > TextMeshPro > Font Asset
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]
@atulvi Thanks, perfect working !!! :):)