<?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: Webfonts in custom CSS in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/webfonts-in-custom-css/m-p/302882#M15201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replying to original post so that I can mark it as answered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I came across this on StackOverflow: &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F14676613%2Fhow-to-import-google-web-font-in-css-file" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Here is the CSS that finally got me the result:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;@import &lt;/SPAN&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DOpen%2BSans%2BCondensed%3A" target="_blank"&gt;https://fonts.googleapis.com/css?family=Open+Sans+Condensed:&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;300&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;);&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;#title&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; {&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;font-family : &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit;"&gt;'Open Sans Condensed'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;sans-serif&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I think that one key thing to mention, that is covered in that StackOverflow discussion, is that the @import line needs to sit in the top line of your CSS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:31:16 GMT</pubDate>
    <dc:creator>JamesPreston</dc:creator>
    <dc:date>2021-12-11T14:31:16Z</dc:date>
    <item>
      <title>Webfonts in custom CSS</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webfonts-in-custom-css/m-p/302881#M15200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;custom CSS to the Basic Template application, and want to use a webfont for some of the text. Is this possible with the custom CSS tool?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have played around with the @font-face rule in the CSS, thinking that this might provide a workaround, but to no avail. I feel that there is something that I am not quite grasping, as I am new to CSS and HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here was what I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@font-face {
&amp;nbsp;&amp;nbsp;&amp;nbsp; font-family: 'Open Sans Condensed', sans-serif;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; src: url(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DOpen%2BSans%2BCondensed%3A300%29%3B" target="_blank"&gt;https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300);&lt;/A&gt;
}

#title {
font-family : 'Open Sans Condensed', sans-serif !important;
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can understand after some googling, it seems that webfonts may only be able to be imported in the HTML of a page, and then utilised with CSS. Is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOLVED!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across this on StackOverflow: &lt;A href="http://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file" title="http://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the CSS that finally got me the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;@import url(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DOpen%2BSans%2BCondensed%3A300%29%3B" target="_blank"&gt;https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300);&lt;/A&gt;
#title {
font-family : 'Open Sans Condensed', sans-serif;
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that one key thing to mention, that is covered in that StackOverflow discussion, is that the @import line needs to sit in the top line of your CSS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webfonts-in-custom-css/m-p/302881#M15200</guid>
      <dc:creator>JamesPreston</dc:creator>
      <dc:date>2021-12-11T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Webfonts in custom CSS</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webfonts-in-custom-css/m-p/302882#M15201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replying to original post so that I can mark it as answered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I came across this on StackOverflow: &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F14676613%2Fhow-to-import-google-web-font-in-css-file" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Here is the CSS that finally got me the result:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;@import &lt;/SPAN&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DOpen%2BSans%2BCondensed%3A" target="_blank"&gt;https://fonts.googleapis.com/css?family=Open+Sans+Condensed:&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;300&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;);&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;#title&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; {&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;font-family : &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit;"&gt;'Open Sans Condensed'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="value" style="font-weight: inherit; font-style: inherit;"&gt;sans-serif&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I think that one key thing to mention, that is covered in that StackOverflow discussion, is that the @import line needs to sit in the top line of your CSS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webfonts-in-custom-css/m-p/302882#M15201</guid>
      <dc:creator>JamesPreston</dc:creator>
      <dc:date>2021-12-11T14:31:16Z</dc:date>
    </item>
  </channel>
</rss>

