Skip to content

Commit

Permalink
4.15.3: fixed : sometimes text was drawn upscaled on final image in t…
Browse files Browse the repository at this point in the history
…ext-tool
  • Loading branch information
zvezdochiot committed Dec 13, 2022
1 parent 1e774ac commit b4e4c0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/text-tool/text_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,12 @@ TextToolDialog:: onBgColorChange(int index)
updateCurrentTextbox();
}


void
TextToolDialog:: accept()
{
// image needs to set pixel density, otherwise drawing text gives weird scaled fonts
image.setDotsPerMeterX(this->logicalDpiX()/0.0254);
image.setDotsPerMeterY(this->logicalDpiY()/0.0254);
painter.begin(&image);
painter.scale(1.0/scale, 1.0/scale);
for (TextBox &textbox : textboxes) {
Expand Down

0 comments on commit b4e4c0f

Please sign in to comment.