add smart typography to templates