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
0
Question by crtapps · Jul 28, 2012 at 09:51 AM · gui.labelfontsize

GUI.Label font size display incorrectly on iPhone 4

hi All.

I use GUI.Label for displaying scores of my game. In the editor and Windows/Mac OS it played very well. But when I deploy it on iPhone 4 device, the label font looks very small no matter how I adjust the font size of the GUI.Syle. What's this all about?

Comment
Add comment
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

2 Replies

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

Answer by whydoidoit · Jul 28, 2012 at 09:52 AM

Fonts in Unity 3 cannot be dynamically sized on the device- you need a font that is the size you will actually use. Unity 4 will address this.

Comment
Add comment · Show 3 · 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 crtapps · Jul 28, 2012 at 10:36 AM 0
Share

Thanks your answer $$anonymous$$ike. I just adjust the font size in GUI.Style from Unity Editor, it looks very well when i play my game in Unity Eidtor. Then export it as a XCode project and deploy my project to iPhone 4, the font size is also not changed as if i had never turn over it. It's very strange I don't know what's wrong with it.

avatar image whydoidoit · Jul 28, 2012 at 10:39 AM 0
Share

I mean in 3 on the device it will not respect the change you made in the Style - you have to actually import the font at every size you need - annoying I know - but until 4 you have to forget that size in the Style if building for mobile devices.

avatar image crtapps · Jul 28, 2012 at 10:46 AM 0
Share

Thanks $$anonymous$$ike, I got it.

avatar image
0

Answer by trop · Oct 05, 2012 at 04:44 AM

hi all im having the same problem, how do you work with it crtaps?how do you import it?and also im getting error in xcode when i use GUI.LAbel, its says bad access.

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 whydoidoit · Oct 05, 2012 at 06:25 AM 0
Share

Please don't ask questions as an "Answer"! Either start a new question or use the Add New Comment button on the right of the screen... Don't worry - everyone does this the first time :)

You change the font size by clicking on the font file in the project window and change the point size.

It would appear your string was NULL for that Bad Access to be happening.

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

7 People are following this question.

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

Related Questions

Fonts in Android... 0 Answers

How can I change GUI Label text size? 1 Answer

How to get the number of lines in a GUI.Label by setting a max width. 2 Answers

How to use line break for GUI.Lable 1 Answer

how to accomplish:"When click a button , four button occour ." 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