Skip to content

tests: cover the winlib backend text drawing#152

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/winlib-text
Open

tests: cover the winlib backend text drawing#152
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/winlib-text

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Adds a text drawing test for the win32 GDI graphics backend.

Drawing a string paints some black glyph pixels without covering the whole
image, and a larger point size paints more glyph pixels than a smaller one,
which exercises WIN32FontInfo glyph drawing through the TextOutW path. The
glyph shapes are font dependent, so the checks count dark pixels.

It builds only for the winlib graphics backend and skips when the backend cannot
be reached, so it is inert on the other backends and in CI.

Adds a text drawing test for the win32 GDI graphics backend.

Drawing a string paints some black glyph pixels without covering the whole
image, and a larger point size paints more glyph pixels than a smaller one,
which exercises WIN32FontInfo glyph drawing through the TextOutW path.  The
glyph shapes are font dependent, so the checks count dark pixels.

It builds only for the winlib graphics backend and skips when the backend cannot
be reached, so it is inert on the other backends and in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant