move fonts to res and fix bug in renderer