Draw Vertical text turn with even number text size (say 14)

 

Hi,

I have script that draw text vertically on chart.

However, it draw correctly for all odd text size, sa 11, 13,15.

When I change text size to even number (say,12 or 10), sometime text turn to horizontal .

Thank you,

HHC

         ObjectSetInteger(chart_ID,name,OBJPROP_FONTSIZE,_fontsize);
      //--- set the slope angle of the text
         ObjectSetInteger(chart_ID,name,OBJPROP_ANCHOR,ANCHOR_TOP);

      //--- set angle
         ObjectSet(name, OBJPROP_ANGLE, 90);