Some performance improvements (mainly font rendering).