fix text value assignment and fontsize setting for annotations