Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by QGunner · Aug 23, 2016 at 01:49 PM · uitextcanvasmobileoptimization

Unity Mobile problem: text displayed incorrectly on Mobile

Hi. I was trying to make a simple game for mobile phone with timer text and score text. Everything displayed perfectly in the editor, but when I tested it on my Android phone, the text is displayed strangely. Here is the image for details:

http://images.snoork.com/images/9491399732_unitycomp.png

and here is my current text and canvas settings on the inspector if that helps:

http://images.snoork.com/images/9723597831_unitysettings.png

and for editing resolution, I used WGA Potrait (480x800). So, it should be matched with my phone resolution. I really need your help. Thank you :)

note: I have tried turning on the "Best Fit" setting for my text but it doesn't help

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
3
Best Answer

Answer by pfreese · Aug 25, 2016 at 01:21 AM

The issue is that the font family / style you are using isn't available on the device, and so is emulated using the nearest match on the device -- a fair number of Android devices don't have a Bold version of Droid Sans (the default mapping on Android for Arial in Unity), so if you are using the default Arial font, you can't rely on a bold version being available.

You have a couple of options available to you:

  1. You can limit yourself to non-bold and non-italic versions of the default font (Arial), and it should work on nearly all devices.

  2. You can embed the font data into your Unity project. Google has a family of fonts called Roboto that you can use for Android development, and if often already on many devices.

  3. You may be able to simply switch to Roboto without embedding if you can guarantee a minimum Android version for your app. See more about the font Roboto here: https://material.google.com/style/typography.html

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 QGunner · Aug 27, 2016 at 11:13 AM 0
Share

Ah, I see. I have embed the Arial font data into my project and now it displays perfectly on my phone. Thanks a lot :) now I just need to know how to compress the .apk size into a reasonable size lol

avatar image
0

Answer by PhantomSarcasm · Aug 23, 2016 at 02:40 PM

Well, I see you have in the text parameter to change the font size dependiento the size of the object; when you switch to android, the screen size is smaller; you would have to work with a display size of your cell "base", "resolution" to get an idea of how it would end .... not if you work with the parameters output screen. espesificarle better output parameters which deses so that the end fits you as you wish

Comment
Add comment · Show 2 · 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 QGunner · Aug 24, 2016 at 01:49 PM 0
Share

Sorry, I didn't get what you actually said. Do you mean I must use Remote Device directly for editing screen ins$$anonymous$$d of WVGA Potrait (480x800)?

avatar image PhantomSarcasm QGunner · Aug 24, 2016 at 03:55 PM 0
Share

what I say is, you use the "scene" tab, the size of your cell resolution (as a base) to see the end result more clearly.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Missing canvas elements on Build & Run. 2 Answers

Multiple Text of canvas with One script ?? 1 Answer

UI Text does not show when instantiated at runtime. 0 Answers

How do I obtain children on UI canvas text 0 Answers

Adding a string to grid layout group 1 Answer


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