#1588 SciTE 3.4.0 Font Issue


I downloaded the newest version of SciTE 3.4.0 yesterday, and I noticed that when I have a text file open at 100% zoom with Monospace turned off, I noticed that since the default Font Family and/or Character Spacing has been changed, the cursor's location after some characters is slightly off. See attached (Scintilla_340_Problem_1.jpg) image. If you look at the lowercase "r", you can see what I mean. And the previous versions are just fine. I have also attached what it looks like in SciTE 3.3.9 (Scintilla_339_1.jpg), to show the difference.

2 Attachments


  • Neil Hodgson

    Neil Hodgson - 2014-03-25
    • labels: --> scintilla, fractional
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
  • Neil Hodgson

    Neil Hodgson - 2014-03-25

    3.4.0 defaults to using DirectWrite for drawing text instead of GDI. DirectWrite draws text at fractional positions instead of aligning to the pixel grid. To choose GDI, set technology=0 instead of 1.
    To avoid a blurry caret drawn partially over 2 pixels, the caret is aligned to the pixel grid by truncating the start position of the next character and drawing over the previous pixel. I have changed this to rounding in [cf4f93] which may draw the caret 1 pixel to the right in some situations. This does not always look better but does when averaged over many cases.
    Different fonts, sizes and platforms will have different results.



    Commit: [cf4f93]

  • Andrew

    Andrew - 2014-03-26

    Oh okay. Thank you.

    How would I change the Technology to 0 instead of 1, to choose GDI, in SciTE [SC340.exe]?

    Last edit: Andrew 2014-03-26
    • Neil Hodgson

      Neil Hodgson - 2014-03-27

      Like any setting: Options | Open User Options File; add a line with

  • Andrew

    Andrew - 2014-03-28

    Thank you.

  • Neil Hodgson

    Neil Hodgson - 2014-04-04
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks