Original User: ipeeblesHi Ian,
I think the issue you are facing here is a known software limitation. It is necessary to supply all of the font properties when creating a new Font object.
[#NIM099497 The printing service only honors the font properties of textSymbols if all or none of the new Font object parameters are defined.]
Try something like this in your code, and see if the customization appears in the printout (please note that this is in AMD style):
var font = new Font("40pt", Font.STYLE_ITALIC, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "Courier New");
Hope this helps!
-Noah
Noah,The text properties are defined in the code, but only the marker symbol shows up. Here is my code for the symbol/text output for the geocoding results. This is shown in screenshots 1 and 2 on my first post.With the text properties defined, the text still does not display on the print out.Refer to the line where I have the text properties defined and the color:
//add a text symbol to the map listing the location of the matched address.
var displayText = candidate.address;
var font = new esri.symbol.Font("12pt",esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_BOLD,"Helvetica");
var textSymbol = new esri.symbol.TextSymbol(displayText,font,new dojo.Color("#FF0000"));
textSymbol.setOffset(0,12);
map.graphics.add(new esri.Graphic(geom, textSymbol));
return false; //break out of loop after one candidate with score greater than 80 is found.