Skip to content

[roundingPen] Remove unreliable kwarg usage #3880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

lianghai
Copy link
Contributor

@lianghai lianghai commented Jul 3, 2025

Argument names aren’t consistent among point pens’ .addComponent() implementation, in particular baseGlyphName vs glyphName. Even ufoLib is inconsistent with the base class:

def addComponent(
self,
baseGlyphName: str,
transformation: Tuple[float, float, float, float, float, float],
identifier: Optional[str] = None,
**kwargs: Any,
) -> None:

def addComponent(self, glyphName, transformation, identifier=None, **kwargs):

This fixes a regression introduced last year in 7cdac78#diff-cbf0ff73ca1c0029fb4905f0311f7be51b7c91c5f811d074e5c93cb20f4253e9.

Argument names aren’t consistent among point pens’ .addComponent() implementation.
@jenskutilek jenskutilek merged commit f7b6afe into fonttools:main Jul 4, 2025
10 of 11 checks passed
@lianghai lianghai deleted the patch-1 branch July 4, 2025 14:09
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.

3 participants