x


Font Size vs Screen Resolution

m doing an Android Game, and Android devices have many different, like Galaxy 5 (240 x 320) and Motorola Droid (480 x 854). So, i already made the size of my GUI elements relative to Screen Size, but now Im looking for an efficient way to alter font size basead in the Screen Size.

I already found that I can duplicate the fonts, make each one with a size and alter the GUI Style of my GUI Elements, but i dont find it a good solution.

Another alternative is use text as image, but then i cant make a proper internalization or have dynamic text.

So, there is better solutions?

more ▼

asked Jan 03, 2011 at 12:23 AM

Potapczuk gravatar image

Potapczuk
145 19 14 25

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Potapczuk,

My company developed a tool called the MultiPlatform ToolKit, which is available now on the Unity Asset store. It handles swapping fonts and font materials based on screen size, so long as you're using TextMesh objects. We used this extensively in our Snuggle Truck project.

Feel free to check it out: http://smuggletruck.com/multiplatform and specifically, take a look at Tutorials #3 and #5 which cover the process of doing something similar. You'd be using the Fonts pane to swap out a different Font and Font Material based on your platform/aspect ratio.

more ▼

answered Oct 24, 2011 at 06:37 PM

gtjuggler gravatar image

gtjuggler
81 1 1 4

The Snuggle Truck presentation at Unite was AWESOME!

I learned a lot... Thanks!

Oct 24, 2011 at 07:23 PM jahroy
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4848
x780
x384

asked: Jan 03, 2011 at 12:23 AM

Seen: 4180 times

Last Updated: Oct 25, 2011 at 07:39 PM