Skip to content

The two pixels in TextOffset is a magic number and not PPI scaled #82

Closed

Description

@pyscripter

SynEdit leaves two pixels between the Gutter and the text unused and painted by the editor background. It is used in the calculation of fTextOffset and other places.
The number of 2 is hardcoded (magic number) and not PPI scaled.
Make it a field and PPI scale it.

Activity

  1. pyscripter commented on Nov 14, 2021

    @pyscripter
    ContributorAuthor

    Introduce TextMargin property (not published) PPI scaled. Could consider publishing it. It gives the distance in pixels between the Gutter and the editor text.
    Changed its value to 3. I think it looks better with 3 than 2.

  2. locked and limited conversation to collaborators on Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions