Added ability to use custom fonts for the caption layer.