<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PrintTask does not honour font styles in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342321#M31654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Matthieu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that you're not using 'bolder' as the font-weight. I found that this broke the printing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/198924-supported-textsymbol-properties-in-print"&gt;https://community.esri.com/thread/198924-supported-textsymbol-properties-in-print&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also wonder if there are some other settings which break the printing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 04:01:11 GMT</pubDate>
    <dc:creator>JordanKing3</dc:creator>
    <dc:date>2017-07-28T04:01:11Z</dc:date>
    <item>
      <title>PrintTask does not honour font styles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342320#M31653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am having an issue with the print task:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Whenever I add a Graphics Layer with TextSymbols in it, add it to the map and try to print the different layers, the Text elements do&amp;nbsp;print, but all the font styles are ignored.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The font size, style etc print as default (Arial, 10pt) etc. I have tried looking at the JSON passed, and everything looks fine and should actually work.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;What I see on the map (font size to 50pt for demo) :&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/363584_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;What I see on the printed map:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/363585_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342320#M31653</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2017-07-20T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask does not honour font styles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342321#M31654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Matthieu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that you're not using 'bolder' as the font-weight. I found that this broke the printing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/198924-supported-textsymbol-properties-in-print"&gt;https://community.esri.com/thread/198924-supported-textsymbol-properties-in-print&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also wonder if there are some other settings which break the printing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 04:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342321#M31654</guid>
      <dc:creator>JordanKing3</dc:creator>
      <dc:date>2017-07-28T04:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask does not honour font styles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342322#M31655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None of the style were actually applied (I tried many). I am working with Arc 10.4 and the API 3.21 .&lt;/P&gt;&lt;P&gt;I found a workaround though :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating my own custom toolbox, instead of the ESRI built-in one, using&amp;nbsp;ConvertWebMapToMapDocument.&lt;/P&gt;&lt;P&gt;The TextSymbols are converted into an Annotation class, and when looking at the attributes, none of the styles passed with the JSON were actually seen in the table&amp;nbsp;(apart from the actual text).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;arcpy.da.UpdateCursor to re-apply the styles to the annotation class before creating the pdf. It did not work. Apparently there is a bug/issue with this python function, and I had to revert back to the old&amp;nbsp;arcpy.UpdateCursor to make it work. (&lt;A href="https://community.esri.com/thread/83590"&gt;Annotation and da.UpdateCursor&lt;/A&gt;&amp;nbsp; last message.)&lt;/P&gt;&lt;P&gt;I don't know if this is the function that they use in the built in print toolbox but that would explain the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On map:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/364843_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;on Print :&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/364842_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 08:21:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-does-not-honour-font-styles/m-p/342322#M31655</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2017-07-28T08:21:03Z</dc:date>
    </item>
  </channel>
</rss>

