Skip to main content
Inspiring
October 10, 2014
Question

Applying a Character Format to a Character

  • October 10, 2014
  • 0 replies
  • 300 views

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

I have tried :

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

and

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.

This topic has been closed for replies.