Menu

#2173 SciTE do not show the underscore with gtk-3.24.18

Bug
closed-fixed
nobody
5
2020-06-02
2020-04-29
No

Hello,
I have been using the scintilla plug-in for many years as an editor for Anjuta. Since my transition to Ubuntu 20.04 and gnome 3.36 (gtk-3.24.18 instead of 3.24.12) the underscores no longer appear in the text as in this example: gsb_data_transaction_save_transaction_pointer () ->
gsb datatransaction save transaction pointer ().I see the underscore when i select the line.
I installed the SciTE version 4.3.3 and I have the same thing.
Is this a known bug?

Related

Feature Requests: #1355

Discussion

  • Neil Hodgson

    Neil Hodgson - 2020-04-29
    • labels: SciTE, underscore --> SciTE, underscore, scintilla, gtk, gtk-3.24, font
     
  • Neil Hodgson

    Neil Hodgson - 2020-04-29

    Something has changed with font measurements in Ubuntu 20.04 leading to this issue. The height and other measurements of fonts are floating point numbers. To ensure each line is independent, these are converted to an integral number of pixels. For Sans 9 point on Ubuntu 20.04, the ascent is 11.1 pixels and the descent 2.8 pixels. In previous releases, converting to the next lowest integer (floor) has resulted in a generally good appearance with no excessive space but with character extremities (such as underscores) still visible.

    There are several work-arounds:

    1. Turn on multi-phase drawing with SCI_SETPHASESDRAW(SC_PHASES_MULTIPLE). This allows lines to share pixels but is slow on GTK.
    2. Add an extra pixel of descent with SCI_SETEXTRADESCENT(1).
    3. Choose font sizes that have just over an integral pixel descent such as Sans 9.55 point. Serif and DejaVu Sans Mono also work OK at 9.55 point.

    The conversion to integer may change in a future release to use round.

     
  • Pierre Biava

    Pierre Biava - 2020-04-30

    Thank you for the quick reply.
    I tried the first two solutions without success. After recompiling the plugin, the underscores are still not visible.
    I had more luck with the third method which works systematically with the Free_mono font and for several sizes for the others. For example Ubuntu Regular 12,13 ..

     
  • Neil Hodgson

    Neil Hodgson - 2020-05-01
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2020-05-01

    A potential fix was committed as [69ebdf]. This may not solve every case but it should help in most.

     

    Related

    Commit: [69ebdf]

  • Neil Hodgson

    Neil Hodgson - 2020-06-02
    • status: open-fixed --> closed-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2020-06-02

    A potential fix was committed as [69ebdf]. This may not solve every case but it should help in most.

     

    Related

    Commit: [69ebdf]


Log in to post a comment.