|
@@ -529,11 +529,11 @@ public class PdfGraphics : IGraphics
|
|
|
|
|
|
var point = _transform.Transform(position);
|
|
|
Graphics.TranslateTransform(point.X, point.Y);
|
|
|
- Graphics.RotateTransform(-(_transform.GetRotation() + rotation));
|
|
|
+ Graphics.RotateTransform(_transform.GetRotation() - rotation);
|
|
|
|
|
|
- var scaled = _transform.TransformVector(new(1, -1));
|
|
|
+ var scaled = _transform.GetScale();
|
|
|
|
|
|
- Graphics.ScaleTransform(scaled.X / _ascentRatio, scaled.Y / _ascentRatio);
|
|
|
+ Graphics.ScaleTransform(scaled / _ascentRatio, scaled / _ascentRatio);
|
|
|
Graphics.DrawString(text, _font, new PdfSolidBrush(color), new PointF(), fmt);
|
|
|
|
|
|
Graphics.Restore();
|
|
@@ -544,7 +544,7 @@ public class PdfGraphics : IGraphics
|
|
|
|
|
|
var point = _transform.Transform(position);
|
|
|
Graphics.TranslateTransform(point.X, point.Y);
|
|
|
- Graphics.RotateTransform(-(_transform.GetRotation()) + rotation);
|
|
|
+ Graphics.RotateTransform(_transform.GetRotation() - rotation);
|
|
|
var scaleFactor = (_font.Height / _font.Size) * _transform.GetScale();
|
|
|
Graphics.ScaleTransform(scaleFactor, scaleFactor * scale.Y);
|
|
|
if(scale.X != 1)
|
|
@@ -569,7 +569,7 @@ public class PdfGraphics : IGraphics
|
|
|
|
|
|
var point = _transform.Transform(position);
|
|
|
Graphics.TranslateTransform(point.X, point.Y);
|
|
|
- Graphics.RotateTransform(-(_transform.GetRotation()) + rotation);
|
|
|
+ Graphics.RotateTransform(_transform.GetRotation() - rotation);
|
|
|
var scaleFactor = (_font.Height / _font.Size) * _transform.GetScale();
|
|
|
Graphics.ScaleTransform(scaleFactor, scaleFactor * scale.Y);
|
|
|
if(scale.X != 1 || scale.Y != 1)
|