pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
853 stars 140 forks source link

Unify freetype init codepaths #2801

Closed Starbuck5 closed 5 months ago

Starbuck5 commented 5 months ago

The freetype.Font init code has a windows codepath and an "everything else" codepath. I think that the windows codepath would work everywhere, so let's try using it everywhere.

Why am I mucking around with this? Because SDL3 changes rwops stuff and freetype looks like it might be the most complex use of rwops we have. If we can make it simpler that will help the transition. This is similar to #2717 in that regard.