M
M
Michael2018-02-23 13:08:03
Layouts and prototypes
Michael, 2018-02-23 13:08:03

How to convert pt to px correctly?

Good day to all.
The question has developed like this, I often receive layouts in 72 dpi
Everywhere it is written that 1pt ~ 1px , but in fact the more points, the greater the error. And customers often complain about it.
https://rim89.wordpress.com/2010/02/05/%D1%82%D0%B...
There is a table, but I don't understand what exactly it is suitable for? For 96dpi?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dom1n1k, 2018-02-23
@dom1n1k

72dpi is the ratio from paper typography. On the web, the standard is 96dpi. In a good way, the designer should set exactly this value in the layouts.
https://www.w3.org/Style/Examples/007/units.ru.html
Accordingly, 1px = 0.75pt.
Of course, on real physical devices, these ratios float, but it is conventionally accepted as such.

M
Maxim Timofeev, 2018-02-23
@webinar

pt = actual size, 1/72 inch, 1 inch = 2.54 cm
px = pixel, the size of which is different on different monitors
dpi = dots per inch, the relationship of the first to the second. The multiplier depends on dpi when converting pt to px. But it will work when printing, for example, since the monitor still displays in pixels.
Accordingly, when making layout, you have no idea what the actual pixel size on the user's monitor is. So the translation of one into the other is very conditional.
For what? The fact that you could not make green carrots? So it's impossible. I think they complain not about the ratio of magnitudes, but about the fact that it looks bad. And here there are a bunch of solutions and they are not related to these values ​​in any way, well, or very indirectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question