[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] HELP REQUEST - font point size to pixel formula
From: |
Ed Keith |
Subject: |
Re: [Freetype] HELP REQUEST - font point size to pixel formula |
Date: |
Wed, 11 Jul 2001 15:25:27 -0700 |
Hi Sam,
Most people today use the PostScript definition for typographic points as 72
points/inch (the old traditional "BC" definition (Before Computers) was
actually closer to 72.27 points/inch). You need to know the dots-per-inch
(DPI, or pixels-per-inch) resolution of device you're working with to convert
from typographic points to pixels, and vice-versa:
pixelSize = (pointSize * DPI) / 72;
Hope that helps,
Ed Keith
At 06:29 AM 7/11/01, Chapman Sam wrote:
>Hi all,
>
>I can't remember off the top of my head but does anyone have the formula
>that relates font point size with pixel size.
>
>If anyone has it to hand or a URL I'd appreciate being sent it to save me
>tracking it down.
>
>Thanks in advance.
>
>Sam Chapman