|
From: | Werner LEMBERG |
Subject: | Re: Finding out the appropriate texture size for a font |
Date: | Mon, 29 Jul 2024 05:30:02 +0000 (UTC) |
> > 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
[Prev in Thread] | Current Thread | [Next in Thread] |