- Home /
what is fontsize???
Hello friends ...I am searching for something which changes the font size according to screen resolution of the mobile . But , first I want to understand what font size means ? How its measured ?? Does it mean in pixel size ? And also one thing more . I want to know if is there any method which can give me character width and height ??
Answer by Cherno · Nov 18, 2013 at 01:18 AM
http://en.wikipedia.org/wiki/Point_%28typography%29
The desktop publishing point (DTP point) is defined as 1⁄72 of the Anglo-Saxon compromise inch of 1959 (25.4 mm) which makes it 0.0138 inch or 0.3527 mm. Twelve points make up a pica, and six picas make an inch. This system was notably chosen by John Warnock and Charles Geschke when they created Adobe PostScript, by Apple as the screen resolution for the original Macintosh, and for the LaserWriter that launched the desktop publishing industry.[4][5] Therefore, the DTP point is sometimes called the PostScript point.
how to decide the font size in unity for different resolution ??
Answer by professional.adarsh · Apr 23, 2014 at 06:13 AM
in reply to your comment...
You can set them according to the screen size by taking a float variable sw=Screen.width; sh=Screen.height;
and by multiplying with the variable to get the fontsize. as
float fontSize=sh*1.2;
hence the fontsize will be of 1.2 part of entire screen size every time on every device making it completely visible according to the device resolutions.
please dont forget to vote up.