Generates shadow mask for a font.