refactored font code, added "invisibletexttofront" option