use Measurement instead of plain int to identify font sizes (improvement in UWT)

This commit is contained in:
Michael Becker 2022-09-16 01:32:11 -04:00
parent a9234e1dd6
commit 6ca434e120
No known key found for this signature in database
GPG Key ID: DA394832305DA332

View File

@ -48,7 +48,7 @@ namespace UniversalEditor.Plugins.Generic.Printing.Text.Plain
if (text == null)
throw new ObjectModelNotSupportedException();
g.DrawText(text.Text, Font.FromFamily("Liberation Serif", 12), new Rectangle(64, 64, 1400, 1400), Brushes.Black);
g.DrawText(text.Text, Font.FromFamily("Liberation Serif", new Measurement(12, MeasurementUnit.Point)), new Rectangle(64, 64, 1400, 1400), Brushes.Black);
}
}
}