Fix the logic with deciding if text is overlayed or not (plus some little fixes).
Merge pull request #29 from dsnopek/oa_appearance-sub-spaces-2

Fix the logic with deciding if text is overlayed or not (plus some little fixes).