RE: [fltk.general] Overlapping lines [General Use]

7 views
Skip to first unread message

MacArthur, Ian (Leonardo, UK)

unread,
Jul 25, 2016, 10:47:56 AM7/25/16
to fltkg...@googlegroups.com
Michael,

Did you raise an STR for this?
And if not, can you, please?

Looks like a good catch, though maybe tricky to resolve, since it will likely depend on the font selected and how the Xserver is interpreting hinting... Awkward to cope with, I suspect...


> On some systems in the Fl_Text_Editor widget it seems that the lines
> overlap by one pixel. If the text contains '_' (underscore) characters
> they are not visible with the default font size.
>
> Setting the font size much larger from the application works as
> workaround (and proves that the invisible characters are really there).
>
> The reason for this behaviour seems to be the font hinting of Xft.
> Setting the X ressources as follows solves the problem:
> |
> | Xft.antialias: true
> | Xft.hinting: true
> | Xft.autohint: false
> | Xft.hintstyle: hintfull
>
> This X ressources should make the problem visible on systems that work
> correctly by default:
> |
> | Xft.antialias: true
> | Xft.hinting: true
> | Xft.autohint: false
> | Xft.hintstyle: hintslight
> ^^^^^^^^^^
> I found this notice that GNOME modifies this setup:
> <https://wiki.archlinux.org/index.php/Font_Configuration#Hintstyle>
> so whether the problem occurs should not depend on the operating
> system but on the desktop environment used.
>
>
> How to reproduce:
> - Operating system should not matter but must use X11
> - Ressources set in the X-Server as listed above
> - FLTK compiled to use X11 and Xft
> - Test program for Fl_Text_Editor is sufficient
> - Type some text that contain '_' (underscore) characters
>
> --
> You received this message because you are subscribed to the Google
> Groups "fltk.general" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to fltkgeneral...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Selex ES Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

Michael Bäuerle

unread,
Jul 25, 2016, 11:21:08 AM7/25/16
to fltkg...@googlegroups.com
MacArthur, Ian wrote:
>
> Did you raise an STR for this?

I have posted the article first because maybe this is a known problem.

> And if not, can you, please?

OK, looks like it's not.

> Looks like a good catch, though maybe tricky to resolve, since it
> will likely depend on the font selected and how the Xserver is
> interpreting hinting... Awkward to cope with, I suspect...

Now filed as STR #3321. Please adjust priority as appropriate.
Reply all
Reply to author
Forward
0 new messages