
public struct EmbossedText {
    
    public static func emboss(_ text: String, font: UIFont, color: UIColor, texture: UIImage, useHeightMap: Bool) -> UIImage? {
        let styled = StyledString().pushFont(font).pushColor(color).pushString(text)
        return emboss(styled.attributedString, texture: texture, useHeightMap: useHeightMap)
    }
    
    public static func emboss(_ text: NSAttributedString, texture: UIImage, useHeightMap: Bool) -> UIImage? {
        let image = UIImage
            .image(from: text)?
            .applyEmboss(shadingImage: texture, useHeightMap: useHeightMap)