- Home /
This question was
closed Oct 15, 2012 at 12:39 PM by
Fattie for the following reason:
Duplicate Question
This post has been wikified, any user with enough reputation can edit it.
Controlling font size for iOS application
I'm having difficulty programming my game to use different fonts while running on the iPhone, iPad etc. Basically I need to use different sized fonts for different devices, for example the text font for the New iPad would be larger than the text on the 1st and 2nd gen iPads.
This is a simplified version of what I was thinking (will be testing later today):
var smallFont : Font;
var largeFont : Font;
function Update(){
if(iPhone.generation == iPhoneGeneration.iPad1Gen){
guiText.font = smallFont;
}
if(iPhone.generation == iPhoneGeneration.iPad3Gen){
guiText.font = largeFont;
}
}
Comment
Follow this Question
Related Questions
LaTeX Equations or Custom Fonts in Unity GUI and onGUI elements 1 Answer
Controlling font size for iOS application 0 Answers
Canvas Text gets garbled 0 Answers
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Why does the font selected for my GUI Skin not display correctly? 1 Answer