Copy link to clipboard
Copied
Please!! .... I need help. I 'm so stuck . I've tried but I can't get a font to change within my fields by javascript. It always change to Calibri not Calibri Bold. I have used the code "console.println(this.getField("Field1").textFont);" to konw the internal name of the Calibri Bold font. But it shows only Calibri for the "Field1" that has been set to "Calibri Bold" manualy.
for (var i=0; i<this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f.type == "text") {
f.textFont = "Calibri Bold";
f.textSize = 12;
}
}
Use this: "Calibri,Bold"
Copy link to clipboard
Copied
Use this: "Calibri,Bold"
Copy link to clipboard
Copied
You are really amazing...............