Recent

Author Topic: Underlining in LazReport  (Read 3920 times)

bonbon

  • Newbie
  • Posts: 3
Underlining in LazReport
« on: August 22, 2014, 01:26:10 pm »
I have recently started using LazReport, which is working well, except I cannot get it to print underlined text.  The text prints normally, but without the underlining.

The preview page shows underlining, but when I print, the underlining is missing (I have tried 2 different printers, and printing to PDF, all without success).

I am using Ubuntu 12.04, with Lazarus 1.2.0 and FPC 2.6.2.  The "About" option of LazReport says FreeReport Version 2.32.

Any ideas would be very welcome.

Jkey

  • New Member
  • *
  • Posts: 44
Re: Underlining in LazReport
« Reply #1 on: August 22, 2014, 09:55:40 pm »
I can confirm the issue. I managed to reproduce the missing printed underlines on a Linux Mint 13 Maya x64, with Lazarus 1.2.4. Win32 version of this release prints underline texts without problems.
As a temporary solution I suggest you trying Lazarus 1.0.14 version because that one printed the underlined text correctly under Linux. This might be a bug...(?) I tried to find the reason for this behaviour without success, but maybe it isn't a Lazreport related issue, is it maybe a cairocanvas issue? I'm not sure...

bonbon

  • Newbie
  • Posts: 3
Re: Underlining in LazReport
« Reply #2 on: August 23, 2014, 01:48:12 pm »
Thanks for that.  I just tried Fortes4Lazarus, and it wouldn't print underlined text either, so it looks like it's not a LazReport issue, as you say.  If I'm feeling brave, I might take a deep breath and try Laz 1.0.14 (or I might just try to live without underlining).

Jkey

  • New Member
  • *
  • Posts: 44
Re: Underlining in LazReport
« Reply #3 on: August 23, 2014, 10:32:34 pm »
It seems to be a Linux specific printer bug. I have opened an issue in bugtracker, so you can follow the updates on it here:
http://bugs.freepascal.org/view.php?id=26624

bonbon

  • Newbie
  • Posts: 3
Re: Underlining in LazReport
« Reply #4 on: August 23, 2014, 10:57:22 pm »
Tremendous - I'll keep an eye on it.  Many thanks.

ebizz

  • New member
  • *
  • Posts: 9
Re: Underlining in LazReport
« Reply #5 on: February 17, 2022, 05:41:58 pm »
still 4 years later the same problem, not only under linux. newest version of lazarus... will start another BUG Report, but this is a little shame.

dsiders

  • Hero Member
  • *****
  • Posts: 673
Re: Underlining in LazReport
« Reply #6 on: February 17, 2022, 05:58:21 pm »
still 4 years later the same problem, not only under linux. newest version of lazarus... will start another BUG Report, but this is a little shame.

That bug report is now hosted at:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/46c9fdc58be46cb237c2f417aa847cde0dbdd922

It includes a patch that claims to fix the problem. But it has remained open for 7 years - likely because no one has tested / confirmed the patch works as intended.

So rather than editorializing about "shame", could you test the patch? Post a comment to the bug report with the result.
Preview Lazarus 2.3.0 documentation at: https://dsiders.gitlab.io/lazdocsnext

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8100
  • Debugger - SynEdit - and more
    • wiki
Re: Underlining in LazReport
« Reply #7 on: February 17, 2022, 06:18:09 pm »
Actual the bug report is at https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/26624
The link in the older posts actually redirects there. So easy to find.
The mentioned patch was applied 26 Aug 2014 (to the Lazarus 1.3 development version / so released with 1.4)

@ebizz: Did you read the report?
Because on 27 Aug 2014, 21:30 ( https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/26624#note_638079571 )
Jkey wrote
Quote
Issue solved.
So if JKey was correct back then, just a few days later and the issue was fixed. Where is the shame in this?

It could be that the fix only worked under certain conditions, and it worked for the person who fixed it and JKey. But then no new complaints were made, so if the issues was still present in some cases, no one ever knew.

Apparently at some point a new bug was introduced. That new bug happens to have the same effect. Actually, not the same but worse. Now, according to you it is Linux(Gtk?) and Windows:
as soon I export (to pdf) or print, the underlines are all missing.
...
Quote
I tried under Windows and Linux, newest Version of lazarus.

« Last Edit: February 17, 2022, 06:24:50 pm by Martin_fr »

 

TinyPortal © 2005-2018