Skip to content

Align font outline and fill while calling DrawText - #331

Merged
JimBobSquarePants merged 3 commits into
mainfrom
issue330-offset-outline
May 10, 2024
Merged

Align font outline and fill while calling DrawText#331
JimBobSquarePants merged 3 commits into
mainfrom
issue330-offset-outline

Conversation

@tocsoft

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

fixes the outline being offset from the fill.
Required the outline being moved (thickness/2) pixels up and left.

before

image

after

image

fixes#330

@tocsoft
tocsoftforce-pushed the issue330-offset-outline branch from 298d848 to 16d10c4CompareMay 10, 2024 15:42

@JimBobSquarePantsJimBobSquarePants left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Thanks for this!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pen and brush not aligned in DrawText

2 participants

@tocsoft@JimBobSquarePants