Skip to content

Conversation

@cspiel
Copy link
Contributor

@cspiel cspiel commented Dec 29, 2024

Bug fix

(1) The initialization of struct genchange was incomplete.
I transfered the values from native scripting function bSmallCaps
to fill the gaps.

(2) Components stem_width_scale and stem_height_scale
were not reliably initialized.

(1) The initialization of struct genchange was incomplete.
    Transfer values from native scripting function bSmallCaps.
(2) Components stem_width_scale and stem_height_scale
    were not reliably initialized.
@cspiel
Copy link
Contributor Author

cspiel commented Dec 30, 2024

The documentation of Python method addSmallCaps does not mention
the parameters hscale and vscale. Is this done intentionally?

I'd suggest to document these parameters and point out that they
act as overrides of the calculated values for the given selection.

Copy link
Contributor

@skef skef left a comment

Choose a reason for hiding this comment

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

This looks fine to me -- @iorsh any thoughts?

@iorsh
Copy link
Contributor

iorsh commented Jan 1, 2025

I'm fine with this. I have some vague suspicions, that the same initial values should also appear somewhere in UI, but this change by itself is sufficient.

@skef skef merged commit be111c4 into fontforge:master Jan 1, 2025
7 checks passed
@cspiel cspiel deleted the py-smallcaps-fix branch January 2, 2025 10:03
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