MEFontUtil Class Reference

Inherits from NSObject
Declared in MEFontUtil.h

Overview

Utility class for using fonts.

+ newImageWithFont:fontSize:fillColor:strokeColor:strokeWidth:text:

Generates a UIImage with a transparent background with the specified string rendered using the specified font.

+ (UIImage *)newImageWithFont:(NSString *)fontName fontSize:(float)fontSize fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor strokeWidth:(float)strokeWidth text:(NSString *)text

Declared In

MEFontUtil.h

+ newImageWithFontOutlined:fontSize:fillColor:strokeColor:strokeWidth:text:

Generates a UIImage with a transparent background with the specified string rendered using the specified font. Creates an outlne for the font using a multipass rendering technique.

+ (UIImage *)newImageWithFontOutlined:(NSString *)fontName fontSize:(float)fontSize fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor strokeWidth:(float)strokeWidth text:(NSString *)text

Declared In

MEFontUtil.h