diff --git a/SynPdf.pas b/SynPdf.pas index 312c70c93..d75236c4f 100644 --- a/SynPdf.pas +++ b/SynPdf.pas @@ -10350,7 +10350,7 @@ procedure DrawLine(var P: TPoint; aH: Single); with DC[nDC] do begin tmp := Pen; pen.color := font.color; - pen.width := aSize / 15 / Canvas.GetWorldFactorX / Canvas.FDevScaleX; + pen.width := aSize / 15 / fscaleY; pen.style := PS_SOLID; pen.null := False; NeedPen; @@ -10421,7 +10421,7 @@ procedure DrawLine(var P: TPoint; aH: Single); if AUseDX then begin DX := pointer(PtrUInt(@R)+R.emrtext.offDx); W := DXTextWidth(DX, R.emrText.nChars); - if W0 then - DrawLine(Posi, aSize / 8 / Canvas.GetWorldFactorX / Canvas.FDevScaleX); + DrawLine(Posi, aSize / 8 / fscaleY); if font.LogFont.lfStrikeOut<>0 then - DrawLine(Posi, - aSize / 3 / Canvas.GetWorldFactorX / Canvas.FDevScaleX); + DrawLine(Posi, - aSize / 4 / fscaleY); // end any pending clipped TextRect() region if WithClip then begin Canvas.GRestore;