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.
This commit is contained in:
Chris Speciale
2024-10-30 13:14:32 -04:00
parent 17bd36ac29
commit d2562997bf

View File

@@ -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);
}