0 Replies Latest reply on Oct 10, 2014 9:12 AM by bobsteamer

    Applying a Character Format to a Character

    bobsteamer Level 1

      I am trying to apply a character format to a single character.


      I have tried :


      MyDoc.SetTextVal(myrange,Constants.FO_CharFmt ,"RoundFont")




      var charFmtId = MyDoc.GetNamedObject(Constants.FO_CharFmt, "RoundFont");

      var myprops = MyDoc.GetProps(charFmtId)

      MyDoc.SetTextProps(myrange, myprops); 


      neither work unfortunately - I have been trying for two weeks!


      I know the "myrange" is Ok because I can delete characters in the range correctly and add a character instead.