Add FreeTypeFont set_variation_by_name_index() by radarhere · Pull Request #9376 · python-pillow/Pillow

#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.