Suppose I have a TextSymbol that I want to print as follows:app.areaLabelsLayer = new esri.layers.GraphicsLayer();
app.map.addLayer(app.areaLabelsLayer);
...
var font = new esri.symbol.Font(10, esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL, esri.symbol.Font.WEIGHT_BOLDER);
var textSymbol = new esri.symbol.TextSymbol(
label.Text,
font, new dojo.Color([0, 0, 0])
).setOffset(10, -10);
var labelPointGraphic = new esri.Graphic(new esri.geometry.Point(label.X, label.Y), textSymbol);
app.areaLabelsLayer.add(labelPointGraphic);
In my browser there is a 10px label printed at a specified coordinate with an offset of [10,-10]. When I print my map using esri.dijit.Print, none of the formatting seems to copy. I know I can change label.X and label.Y to an approximate offset, but this will only really work for a specified zoom level. What can I do to keep my font, size, and weight in the printed version?