English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a script which send me font size in points but to display the result i have to convert it in pixel. how to do that ? (its a java script which send the data and i have a php script which have to display result). is there any formula ?

2007-07-23 16:11:14 · 5 answers · asked by itajooba 1 in Computers & Internet Programming & Design

5 answers

You don't need a formula. Use the conversion chart here, it's close:
http://www.reeddesign.co.uk/test/points-pixels.html

2007-07-23 16:14:32 · answer #1 · answered by DianeD 4 · 0 1

Technically you need to know the "dpi" of the screen, though you can PROBABLY assume 72 dpi, in which case, 1 pixel = 1 Postscript point. Though I think most people use 60 dpi for the screen. So it's 60 pixels = 72 points. You can do the math yourself.

2007-07-23 16:16:59 · answer #2 · answered by Kasey C 7 · 2 0

To go from Pixels to Em’s, simply divide by 16

Use Reed Design’s table which lists conversions from Points to Pixels to Em to %. It’s an approximation, which will depend on font, browser and OS, but it’s a good starting point.

2007-07-23 16:53:04 · answer #3 · answered by Bunny 2 · 0 1

Convert Pt To Px

2016-12-14 13:55:03 · answer #4 · answered by faccone 4 · 0 0

This Site Might Help You.

RE:
how to convert points to pixel ?
i have a script which send me font size in points but to display the result i have to convert it in pixel. how to do that ? (its a java script which send the data and i have a php script which have to display result). is there any formula ?

2015-08-07 03:28:17 · answer #5 · answered by Anonymous · 0 0

Pt To Px Conversion

2016-11-16 07:47:35 · answer #6 · answered by dierks 4 · 0 0

fedest.com, questions and answers