added Cyrillic;

Added added Cyrillic support for putText and getTextSize
this part is duplicated twice. Can you put it into an inline function?