Added ability to use custom fonts of the caption layer.