Adding descriptor parsing.

This commit is required to detect if a layer is a text layer. The structure of
the text is not actually parsed.