Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert <font size="10"> to px?

I need to convert <font size="10"> to px.

Example only(not correct): <font size="10"> is equivalent to 12px.

Is there any formula or table conversion out there to convert <font size="10"> to px?

like image 288
marknt15 Avatar asked May 04 '09 07:05

marknt15


People also ask

How do I convert font size to pixels?

1 pixel (px) is usually assumed to be 1/96th of an inch. 1 point (pt) is assumed to be 1/72nd of an inch. Therefore 16px = 12pt.

How big is a 10 font?

So if you enter a 10 pt font size in Microsoft Word or Adobe InDesign, you define that your font will have a size of 3.53 mm. In theory at least.


1 Answers

<font size=1>- font size 1</font><br> <span style="font-size:0.63em">- font size: 0.63em</span><br>  <font size=2>- font size 2</font><br> <span style="font-size: 0.82em">- font size: 0.82em</span><br>  <font size=3>- font size 3</font><br> <span style="font-size: 1.0em">- font size: 1.0em</span><br>  <font size=4>- font size 4</font><br> <span style="font-size: 1.13em">- font size: 1.13em</span><br>  <font size=5>- font size 5</font><br> <span style="font-size: 1.5em">- font size: 1.5em</span><br>  <font size=6>- font size 6</font><br> <span style="font-size: 2em">- font size: 2em</span><br>  <font size=7>- font size 7</font><br> <span style="font-size: 3em">- font size: 3em</span><br> 
like image 62
Eugene Yokota Avatar answered Sep 23 '22 23:09

Eugene Yokota