mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 12:29:17 +02:00
* Patch from Petr-K to fix underline and strikethrough (Bug ID 34000)
git-svn-id: trunk@39467 -
This commit is contained in:
parent
e54474dd28
commit
a113501901
@ -3439,8 +3439,8 @@ begin
|
||||
|
||||
{ line segment is relative to matrix translation coordinate, set above }
|
||||
if Underline then
|
||||
WriteString(Format('0 -1.5 m %s -1.5 l S', [FloatStr(mmToPDF(lTextWidthInMM))]) + CRLF, AStream)
|
||||
else
|
||||
WriteString(Format('0 -1.5 m %s -1.5 l S', [FloatStr(mmToPDF(lTextWidthInMM))]) + CRLF, AStream);
|
||||
if StrikeThrough then
|
||||
WriteString(Format('0 %s m %s %0:s l S', [FloatStr(mmToPDF(lTextHeightInMM) / 2), FloatStr(mmToPDF(lTextWidthInMM))]) + CRLF, AStream);
|
||||
|
||||
{ restore graphics state to before the translation matrix adjustment }
|
||||
|
Loading…
Reference in New Issue
Block a user