Re: Finding out the appropriate texture size for a font
Werner LEMBERG <[email protected]> Mon, 29 Jul 2024 05:30:02 +0000 (UTC)
| Newsgroups | gmane.comp.fonts.freetype.user |
|---|---|
| Message-ID | <[email protected]> |
> > have to convert to pixels
>
> Can you explain how to do that? Since the bounding box is fixed, I
> presume it will somehow involve the pixel size I'm passing to to
> FT_Set_Pixel_Sizes. I've gone through the documentation and am
> still a little confused.
Simply apply the standard formula given in
https://freetype.org/freetype2/docs/glyphs/glyphs-2.html:
pixel_size = point_size * resolution / 72
Werner