first take at cleaning-up text placement code
(NOTE: get_text_info is temp disabled in python bindings)