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
6
Question by phasiclabs · May 27, 2015 at 09:13 AM · fontdynamiclocalizationplaystationfallback

How do you make fallback fonts work?

Hi all,

I'm using a font called Deja Vu (DejaVuSansCondensed-Bold to be precise) which has good language support, but I need it to fallback to some variants of Noto Sans for some languages.

I can't get it to work however - I've set up the fallback font list to containt the true font names of Noto Sans for Japanese, Korean and Simplified & Traditional Chinese (Noto Sans KR, Noto Sans JP, Noto Sans TC & Noto Sans SC) That didn't work.

I've also tried using the filenames rather than the font names (NotoSansJP-Bold, NotoSansKR-Bold etc) - that also didn't work. Those languages always render empty glyphs.

I've read the Unity help on Font importing - it doesn't say much on Fallbacks other than 'Font Names : A list of fallback fonts to use when fonts or characters are not available'.

All my fonts are required to be imported as Dynamic - I'm not sure if that makes a difference or not.

Has anyone had any success with fallback fonts?

On Windows, it appears to work, but what is actually happening is that system-provided fallback fonts are being used, not the ones I have specified.

On other platforms, without system-default fallbacks, I just get blank characters.

EDIT : I've fixed my own problem. It might be worth leaving this post to help others though. It turns out that the fallback font list should not be formatted like this :

 Font 1
 Font 2
 Font 3

as I was doing. Instead, it should be :

 Font 1, Font 2, Font 3

The documentation on this could be a bit clearer!

Comment
Add comment · Show 1
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 planetfactory · Dec 26, 2020 at 04:24 PM 0
Share

5 years later this question and your answer helped me. Thanks! And yes, 5 years later the documentation could be a lot better!

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by bigticket21 · Sep 04, 2015 at 02:51 PM

Sort of a late reply, but I'm glad you discovered what was the problem!

After thoroughly checking out Unity docs, all I could find was this:


When Unity tries to render text with a dynamic font, but it cannot find the font (because Include Font Data was not selected, and the font is not installed on the user machine), or the font does not include the requested glyph (like when trying to render text in east Asian scripts using a latin font), then it will try each of the fonts listed in the Font Names field, to see if it can find a font matching the font name in the project (with font data included) or installed on the user machine which has the requested glyph. If none of the listed fallback fonts are present and have the requested glyph, Unity will fall back to a hard-coded global list of fallback fonts, which contains various international fonts commonly installed on the current runtime platform.


Of course that doesn't help much, so there should be an improvement there.

I'm mostly answering so this gets some visibility, because it was hard to find.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Dynamic vs Unicode fonts 1 Answer

Need urgent help with dynamic font not working on Mac! 1 Answer

On Android Dynamic Font doesn't support use system font? 0 Answers

How to set font name for dynamic Chinese font? 2 Answers

Dynamic font rendering issue on xhdpi Android Devices 0 Answers


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