Select to view content in your preferred language

Font changes in Title

2134
4
06-21-2012 11:24 AM
MaudGillespie
Deactivated User
I am trying to change the font type and size in the config.xml for the flexviewer.  I am not having any results, I have posted my titlefont tag below.  What am I missing?


<title>ArcGIS Viewer for Flex</title>
    <logo>assets/images/logo.png</logo>
    <style>
        <colors>0xFFFFFF,0x1C419A,0x101010,0x000000,0xFFFFFF</colors>
  <titlefont>Gill Sans MT,80</titlefont>
        <alpha>0.8</alpha>
    </style>
Tags (2)
0 Kudos
4 Replies
MaudGillespie
Deactivated User
I will answer my own question, see what worked below, I was also able to customize the subtitle

<title>ArcGIS Viewer for Flex</title>
<subtitle>Subtitle to AGVF</subtitle>
<logo>assets/images/logo.png</logo>
<style>
      <colors>0xFFFFFF,0x1C419A,0x101010,0x000000,0xFFFFFF</colors>
      <titlefont name="Gill Sans MT" size="18"/>
      <subtitlefont name="Gill Sans MT" size="12"/>
      <alpha>0.8</alpha>
</style>
0 Kudos
HeatherGonzago
Esri Contributor
Thanks for pointing this out. The Viewer documentation is currently being revamped with new/more content. This was not initially added but should be. We'll make certain to add this information to avoid anymore confusion.

Thanks.
0 Kudos
NancyGnanicys
Deactivated User
I am trying to change the font weight to bold in my pop up, and perhaps later the font and size and such.  I placed "<descriptionfont fontweight="bold"/>" this code line in, but none of the upper case lettering is changing (the name of the fields which I manually typed in to appear the way I want since this is located in a pop up. I tried the identify but it requires you to select either a point line or polygon each time you make a new selection, and I just wanted to be able to interactively just click on points for Identification and the pop up seemed most simplified.  Anyways, I also put the code line into the main config file where the intial posting person named 198697 had put it, and it still did not work. Any where else I should be looking at?


<?xml version="1.0" ?>
<configuration>
    <title>Vehicle {UnitName}</title>
    <description><![CDATA[IGNITION STATUS:    {IgnitionText}

DATE:      {Date_Time}
<format datefomat="shortDateShortTime"/>

LOCATION:  {Address}, {City} {Zip}

DIR: {Dir}      SPEED:  {Speed}     MILES:   {Miles} 

<descriptionfont fontweight="bold"/>
]]></description>
</configuration>
0 Kudos
AnthonyGiles
Honored Contributor
Lynn,

Within the CDATA tag you can use normal HTML formatting so to make text bold use:

<b>Tags around text</b>


See:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m3...

Regards

Anthony
0 Kudos