For the discussion and workaround see here: https://www.klayout.de/forum/discussion/1453/text-sizing-rotating-and-aligning-with-ruby#latest