Revert "SetSize should use 96 dpi for now"

This reverts commit 9cbdc83605.
This commit is contained in:
Chris Speciale
2024-10-30 12:12:58 -04:00
parent e65e863918
commit e6fa4e73d4

View File

@@ -1041,22 +1041,14 @@ namespace lime {
}
void Font::SetSize(size_t size)
{
//We changed this from 72? I think in the next version of lime we should probably
//change the function signature from both the native and haxe side to expect an optional
//dpi argument
size_t hdpi = 96;
size_t vdpi = 96;
void Font::SetSize (size_t size) {
FT_Set_Char_Size(
(FT_Face)face, //Handle to the target face object
0, //Char width in 1/64th of points (0 means same as height)
static_cast<int>(size * 64), //Char height in 1/64th of points
hdpi, //Horizontal DPI
vdpi //Vertical DPI
);
size_t hdpi = 72;
size_t vdpi = 72;
FT_Set_Char_Size ((FT_Face)face, (int)(size*64), (int)(size*64), hdpi, vdpi);
mSize = size;
}