<?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: TextSymbol on GraphicsLayer doesn't support most fonts compared to esri 3 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340250#M82528</link>
    <description>&lt;P&gt;When using a GraphicsLayer, only the fonts listed in the &lt;A href="https://developers.arcgis.com/javascript/latest/labeling/#non-mapimagelayer-fonts" target="_self"&gt;Non-MapImageLayer fonts&lt;/A&gt; section are supported by default.&amp;nbsp; Technically any font in pbf format is supported, but last I checked (which was awhile ago), there didn't seem to be a way to convert ttf fonts to pbf format.&amp;nbsp; If there was such a way, that could solve the problem, since one could set up their own repository with their own pbf files.&lt;/P&gt;&lt;P&gt;If you could find ttf versions of the fonts listed in the aforementioned section of the documentation, you could install them on the machine hosting ArcGIS Server, and they would then be supported both on client and server.&amp;nbsp; Otherwise, yes, Arial is pretty much the only font supported by both the server and the JavaScript SDK.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 23:40:46 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-10-20T23:40:46Z</dc:date>
    <item>
      <title>TextSymbol on GraphicsLayer doesn't support most fonts compared to esri 3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340218#M82527</link>
      <description>&lt;P&gt;Hello, our team displays esri Graphics on a GraphicsLayer and we have a second GraphicsLayer with textSymbols on them that represent labels of the graphics. In esri 3, we were able to set the family of esri.Font to be any font, including fonts that might be acquired through the browser from a third party like google fonts.&lt;/P&gt;&lt;P&gt;From the new esri 4 API&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/labeling/#custom-fonts-and-disconnected-environments" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/labeling/#custom-fonts-and-disconnected-environments&lt;/A&gt;&amp;nbsp;it sounds like "&lt;SPAN&gt;In 2D MapViews, the fonts files used are&amp;nbsp;&lt;/SPAN&gt;pbf&lt;SPAN&gt;&amp;nbsp;for all non-MapImageLayer layers and for TextSymbol, and&amp;nbsp;&lt;/SPAN&gt;woff2&lt;SPAN&gt;&amp;nbsp;for renderPreviewHTML." describes our situation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This would be a breaking change for us as we've found that setting font family in the same way in most cases leads to a fallback case being hit. The only font that supports all our needs from the current font server is Arial. Does anyone have any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 21:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340218#M82527</guid>
      <dc:creator>JacksonQiu</dc:creator>
      <dc:date>2023-10-20T21:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: TextSymbol on GraphicsLayer doesn't support most fonts compared to esri 3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340250#M82528</link>
      <description>&lt;P&gt;When using a GraphicsLayer, only the fonts listed in the &lt;A href="https://developers.arcgis.com/javascript/latest/labeling/#non-mapimagelayer-fonts" target="_self"&gt;Non-MapImageLayer fonts&lt;/A&gt; section are supported by default.&amp;nbsp; Technically any font in pbf format is supported, but last I checked (which was awhile ago), there didn't seem to be a way to convert ttf fonts to pbf format.&amp;nbsp; If there was such a way, that could solve the problem, since one could set up their own repository with their own pbf files.&lt;/P&gt;&lt;P&gt;If you could find ttf versions of the fonts listed in the aforementioned section of the documentation, you could install them on the machine hosting ArcGIS Server, and they would then be supported both on client and server.&amp;nbsp; Otherwise, yes, Arial is pretty much the only font supported by both the server and the JavaScript SDK.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 23:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340250#M82528</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-10-20T23:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: TextSymbol on GraphicsLayer doesn't support most fonts compared to esri 3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340255#M82529</link>
      <description>&lt;P&gt;I think what Jackson is asking is that in esri 3 for GraphicLayer, you could specify any font for esri.Font including any user browser installed font. But in esri 4, according to&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/labeling/#custom-fonts-and-disconnected-environments" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/labeling/#custom-fonts-and-disconnected-environments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can't do that anymore in the GraphicsLayer.&amp;nbsp; Only MapImageLayer and 3D scene view seem to support user browser installed fonts. That appears to be the breaking change from esri 3 to 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonathanTiu_0-1697852118297.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83642i7CE4B08401FAC4BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonathanTiu_0-1697852118297.png" alt="JonathanTiu_0-1697852118297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 01:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340255#M82529</guid>
      <dc:creator>JonathanTiu</dc:creator>
      <dc:date>2023-10-21T01:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: TextSymbol on GraphicsLayer doesn't support most fonts compared to esri 3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340282#M82530</link>
      <description>&lt;P&gt;I think both&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/697272"&gt;@JonathanTiu&lt;/a&gt;&amp;nbsp;are correct.&lt;/P&gt;&lt;P&gt;For additional information, we changed the implementation of how we handle font resources at version 4.8:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/labeling-in-2d/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/labeling-in-2d/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 19:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-on-graphicslayer-doesn-t-support-most/m-p/1340282#M82530</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2023-10-21T19:47:58Z</dc:date>
    </item>
  </channel>
</rss>

