added logic to support more fonts