Skip to content

Commit

Permalink
Update CairoBindings to use a default of 72 dpi for fonts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dimensionscape committed Oct 30, 2024
1 parent 17bd36a commit d256299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/graphics/cairo/CairoBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ namespace lime {
if (fontReference) {

Font* font = (Font*)val_data ((value)fontReference->Get ());
font->SetSize (size);
font->SetSize (size, 72);

}

Expand Down Expand Up @@ -1852,7 +1852,7 @@ namespace lime {
if (fontReference) {

Font* font = (Font*)((HL_CFFIPointer*)fontReference->Get ())->ptr;
font->SetSize (size);
font->SetSize (size, 72);

}

Expand Down

0 comments on commit d256299

Please sign in to comment.