Menu

#1171 Indicators clipped for small fonts

Bug
closed-fixed
Scintilla (813)
5
2011-06-20
2011-06-10
No

The squiggle indicator is clipped at the buttom when using Verdana 8pt, and that makes it almost invisible.

The attached code fragment draws another squiggle pattern which (1) is not clipped at 8pt because it only goes 1 pixel below the line, furthermore (2) it also looks better in any case (this is of course subjective).

I have also tried using smoothing/anti-aliasing (by drawing with GDI+) but the result wasn't much better. And I am not sure how that should be supported in GTK+.

To be really good indicators should follow font size and zoom factor. Such that the lines become thicker and the pattern wider and higher with increasing font size. But that would probably require anti-aliasing.

regards Thomas Linder Puls

Discussion

  • Thomas Linder Puls

    Alternative SQUIGGLE_INDIC pattern

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-11

    To me it looks worse when there is room for all 3 pixels of the normal squiggle. It could go in under a different name.

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-11
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-rejected
     
  • Thomas Linder Puls

    Fine with me. What about SQUIGGLE_LOW_INDIC?

     
  • Thomas Linder Puls

    The name should of course match the other ones. So INDIC_SQUIGGLE_LOW will be more suitable.

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-17

    INDIC_SQUIGGLE_LOW sounds OK.

     
  • Thomas Linder Puls

    Updated Indicator.cxx

     
  • Thomas Linder Puls

    Excellent, I have uploaded my modified Indicator.cxx (if you need it)

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-18

    Committed with name changed to INDIC_SQUIGGLELOW to match other indicators.

     
  • Neil Hodgson

    Neil Hodgson - 2011-06-18
    • status: open-rejected --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2011-06-20
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.