Allow any web-based font for labels in maps and vector tile styling

532
16
01-14-2022 10:56 AM
Status: Open
AZendel
Occasional Contributor III

It would be great if we could add any web-accessible font to our web maps, both in the new (former 'beta') map viewer and when styling vector tile maps. The current font selection is somewhat extensive in the number of choices, but many are too 'artsy' and not very practical (Atomic Age, Audiowide, Cabin Sketch, etc). 

I'd love to be able to use Open Sans (with all of its weights - and the condensed version), Lato, Source Sans (multiple weights), PT Sans, Mukta, etc.

It would be nice if there was an input box that we could paste links to the fonts, such as https://fonts.googleapis.com/css2?family=Work+Sans:wght@100&display=swap

16 Comments
RussRoberts

Currently there isnt a matrix available. For labeling its found under here https://developers.arcgis.com/javascript/latest/labeling/

DickieRigdon

Hello,

@RussRoberts  Did Esri remove the use of Roboto font with the recent AGOL update?  The classic version web map apps I had created with Roboto font (in the widget html), now default to Times New Roman.  Roboto used to work when inserted into the html.  Roboto and Lora are our brand guideline typographies at the Department of Conservation.

 

 

RussRoberts

Nope Roboto is still under the labeling options in Map Viewer

RussellRoberts1_0-1658945012174.png

 

DickieRigdon

Understood for Italic version in "Map Viewer" but I'm speaking of "Classic Version web map apps".  For writing text, the App gives seven fonts to choose from a dropdown menu.  However, one can change these styles in the html editor and choose a different font from the seven.  I have substituted Roboto in the html editor.  But recently, Roboto is no longer working and the font displayed is Times New Roman even though Roboto is still the coded font in the html.

82ff0ec0-b5b6-4df4-aede-66678b2bfd5e.png

RussRoberts

That's a question for the Web AppBuilder team and you should post under their forum.

DickieRigdon

Okay, thank you