Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
3
Question by Eknoes · Jan 16, 2013 at 04:18 PM · unity 4fonts

Font size and style overrides are only supported for dynamic fonts

Since i've upgraded to Unity 4 i have the problem that all my text in the game is invisible and the warning "Font size and style overrides are only supported for dynamic fonts" is shown. I have read anywhere that i should set the character of the font to Unicode and the Font Size to 0. I have changed the charachter to Unicode, but where i have to set the Font Size to 0? Directly in the options for the Font? There it's not working for me. I set the Font Size to 0 and it changes automatically back to 1. I've also tried to set the Font Size in the GUISkin to 0, but the text is in the game still invisble. How can i fix this problem?

Comment
Add comment · Show 2
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 fanling3 · Apr 09, 2013 at 08:40 AM 0
Share

I have the same problem too

avatar image datneto · Jul 19, 2013 at 05:45 PM 0
Share

its my problem too

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by ffxz7ff · Oct 07, 2013 at 10:57 PM

Hi, I have the same problem as theSoenke and the first answer did not help. Here's a piece of my code:

 Font font_papyrus = new Font("Papyrus");
 GUIStyle guiStyle = new GUIStyle();
 guiStyle.font = font_papyrus;
 // A screensize issue, you see
 guiStyle.fontSize = (int)(initialFontSize * resizeFactor); 

Later I use the following:

 GUI.Label(tempRect, tempString, guiStyle);

This leads to the error "Font size and style overrides are only supported for dynamic fonts."

In the import settings, my font is set to dynamic though. Can anyone tell me what I'm doing wrong, or a workaround? I've read that some people just save the same font in different sizes and then import the one that suits their screen resolution the best, but this just seems dirty to me.

Can anyone help?

EDIT: Nevermind, the problem was that my font wasn't showing up at all. Scaling indeed works as above.

Comment
Add comment · Show 1 · 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 ffxz7ff · Oct 07, 2013 at 10:11 PM 0
Share

PS. Turns out even without resizing the font, it simply doesn't show up at all.

EDIT: If anyone ever comes across the same problem, font = new Font("Papyrus"); is wrong.. font = (Font)Resources.Load("Papyrus", typeof(Font)); is right.

avatar image
0

Answer by Graham-Dunnett · Jul 19, 2013 at 09:58 PM

Change the type of the font to Dynamic, exactly as the warning is telling you to do. Then you can change change the font size.

Comment
Add comment · Show 1 · 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 mk26 · Jul 11, 2016 at 12:50 PM 0
Share

Any overhead on it, if we use "ASCII Default Set" and in component we change the font size??? Warning comes, but if we ignore that warning, any overhead due to this???

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

15 People are following this question.

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

Related Questions

Edit font texture (unity 4) for adding special effects. 2 Answers

Is there a way to save my project? 4 Answers

I tried this Code For Collision Detection And Destroy Game object But my Car (Game object) not Working smoothly 0 Answers

Major bog down using dynamic fonts in iOS 0 Answers

Graphic glitch on UI Text 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