Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use None as default Text width as in pyglet's Label + tests#2222

Merged
pushfoo merged 8 commits into
developmentpythonarcade/arcade:developmentfrom
font-fixes-separate-from-2.1dev3pythonarcade/arcade:font-fixes-separate-from-2.1dev3Copy head branch name to clipboard
Jul 8, 2024
Merged

Use None as default Text width as in pyglet's Label + tests#2222
pushfoo merged 8 commits into
developmentpythonarcade/arcade:developmentfrom
font-fixes-separate-from-2.1dev3pythonarcade/arcade:font-fixes-separate-from-2.1dev3Copy head branch name to clipboard

Conversation

@pushfoo

@pushfoo pushfoo commented Jul 8, 2024

Copy link
Copy Markdown
Member

TL;DR: Use width: int | None = None to follow upstream + tests

This is separates changes out from #2183 since that'll take a while to merge.

Changes

  • Use None as the default width it Text and draw_text
  • Update exceptions to cover this (s/width == 0/not width/)
  • Add missing tests for None handling

@pushfoo pushfoo merged commit 9a46297 into development Jul 8, 2024
@pushfoo pushfoo deleted the font-fixes-separate-from-2.1dev3 branch July 8, 2024 16:05
Sign up for free to 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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.