From d2562997bfdac67dae9ce3d18a88480d59977b75 Mon Sep 17 00:00:00 2001 From: Chris Speciale Date: Wed, 30 Oct 2024 13:14:32 -0400 Subject: [PATCH] Update CairoBindings to use a default of 72 dpi for fonts We use a default of 72 for now to ensure text is formatted correctly. Not entirely sure why we are stuck on 72 but that is an investigation for the future. --- project/src/graphics/cairo/CairoBindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/graphics/cairo/CairoBindings.cpp b/project/src/graphics/cairo/CairoBindings.cpp index b3c92e1f06..09ab422e38 100644 --- a/project/src/graphics/cairo/CairoBindings.cpp +++ b/project/src/graphics/cairo/CairoBindings.cpp @@ -1824,7 +1824,7 @@ namespace lime { if (fontReference) { Font* font = (Font*)val_data ((value)fontReference->Get ()); - font->SetSize (size); + font->SetSize (size, 72); } @@ -1852,7 +1852,7 @@ namespace lime { if (fontReference) { Font* font = (Font*)((HL_CFFIPointer*)fontReference->Get ())->ptr; - font->SetSize (size); + font->SetSize (size, 72); }