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 Jim W · Oct 26, 2010 at 11:05 AM · guitextfont

Using fonts in Unity - iOS devices

Hi,

I'm an artist working on a small team using Unity 3. I've imported several .ttf fonts into our project and am using them in GUItext objects, but we're having trouble getting them to display on the iOS devices.

I've read some stuff about not being able to use fonts set to 'dynamic' on these devices - could someone explain to me what the resitrictions are using imported fonts on the iPad and iPhone?

So far I've created materials to colour the text and have set strings to various sizes in the inspector. Ideally I'd like to be able to keep these changes across all platforms, but it seems this may not be possible.

Can anyone give me any info / suggest how I could work around this?

Cheers

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

Answer by Helkus · Jan 26, 2011 at 08:10 PM

For changing the color, I made a script like this :

var textOverrideColor : Color = color.white;

function Start() { guiText.material.color = textOverrideColor; }

And attached it to the GUIText object, you can then use the color picker on the object to select the color, or set it by code. And you don't have to make different colored materials. As for sizes, I'm having a problem where font sizes don't change on the device so I can't help you there :/

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 AtomicMarine · Jan 26, 2011 at 08:34 PM

You cannot change the colors or sizes of fonts on the IOS and have to import different fonts for different needs.

However you can change the default size and color of the font, and then import the same font and give it another default size and color.

Its more work yes, but pays off in the end if u need one font to be like 4 different colors and sizes you may need 4-16 different files of the same font.

Size is changed in the import settings

Color is changed by changing the Font Material's default color in the inspector view.

Once happy change its name, then import the same font again and change the settings to get desired effect.

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

No one has followed this question yet.

Related Questions

LaTeX Equations or Custom Fonts in Unity GUI and onGUI elements 1 Answer

Controlling font size for iOS application 0 Answers

imported font(s) : bold style looks like compressed 3 Answers

How do I create GameObject & add GUIText from script for iOS? 1 Answer

Controlling font size for iOS application 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