Skip to content

Add FreeTypeFont set_variation_by_name_index()#9376

Open
radarhere wants to merge 2 commits intopython-pillow:mainfrom
radarhere:variation
Open

Add FreeTypeFont set_variation_by_name_index()#9376
radarhere wants to merge 2 commits intopython-pillow:mainfrom
radarhere:variation

Conversation

@radarhere
Copy link
Member

#9361 found a font with duplicate variation names.

#9362 (comment) would like to be able to choose between the duplicates, which set_variation_by_name() doesn't allow for.

This PR makes the duplicate names visible in get_variation_names(), and adds a new method, set_variation_by_name_index(), to allow the user to definitively choose between them.

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