Unable to change Font Family when adding free text annotation using javascirpt
I trying to use an embedded font family to create a comment other than default Helvetica using following javascript. The annotation created always uses Helvetica. Is there a way to set According to SDK documentation (Acrobat DC SDK Documentation), An arbitrary font can be used, can anyone help anything wrong with the script? or what is the rightway to set the font family?
var annot = this.addAnnot({
page : this.doc.pageNum,
type : "FreeText",
rect : [500,430,600,440],
strokeColor : color.blue,
width : 0.5,
lock : true,
textFont : "GDT"
});
var spans = [];
spans.push({
textFont : "GDT",
text : "d",
textColor : color.blue,
textSize :8
}
);
annot.richContents = spans;
