libtcod / python-tcod

A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.
BSD 2-Clause "Simplified" License
410 stars 36 forks source link

Update set_font() to work without having the font filename matching. #13

Closed sethmlarson closed 8 years ago

sethmlarson commented 8 years ago

This merge would make set_font() work without having the font filename match a certain regex as long as columns and rows are specified in set_font(). If this regex is not used, then fontWidth and fontHeight are not defined and the code errors out unhelpfully. This removes this possibility and instead will provide a formatting warning if the font doesn't evenly divide the number of rows and columns provided.