typemytype / drawbot

http://www.drawbot.com
Other
408 stars 63 forks source link

Raise IndexError when ttc/dfont fontNumber is out of range #423

Closed justvanrossum closed 3 years ago

justvanrossum commented 3 years ago

We know when the index is out of range, it seems better to raise an error than to warn, esp. since this will allow us to iterate and find out how many and which fonts are in the ttc/dfont.