I am trying to format text in a text box in an ArcGIS Pro layout. Until recently I have never had issues, but I am starting to have issues whereby text formatting doesn't seem to be pushing through. An example is show below where I am trying to get the first line bold and underlined to no avail. I have tried a number of different fonts to ensure the font type wasn't the problem. Any ideas on resolving this would be welcome. I am using ArcGIS Pro 3.5.2.
Solved! Go to Solution.
Hey @Woosh_AP
I've figured it out! It's the ampersand &!
It looks like you'll need to escape the ampersands like this:
&
<BOL>Layer Credits:</BOL>
<dyn type="layout" name="AP Wall Map" property="serviceLayerCredits"/>; Danielson, J.J., and Gesch, D.B., 2011, Global multi-resolution terrain elevation data 2010 (GMTED2010): U.S. Geological Survey Open-File Report 2011-1073 U.S. Geological Survey Publications Warehouse; Lang, N., Jetz, W., Schindler, K., & Wegner, J. D. (2022). A high-resolution canopy height model of the Earth. arXiv preprint arXiv:2204.08322 arxiv.org/abs/2204.08322; UNEP-WCMC and IUCN (2021), Protected Planet: The World Database on Protected Areas (WDPA), Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net.; © OpenStreetMap contributors; www.geoboundaries.org; WorldBank.
Cody
Reference link
Text formatting tags—ArcGIS Pro | Documentation
did you see or try the _BOL and/or _UND tags near the bottom of the page?
Hey @Woosh_AP
As Dan said, BOL and UND are the correct tags to use, but I'm wondering if you're in the right spot, this is where to be:
Right Click the text box, very bottom go to properties and use can use this "Show plain text" to see how things are formatted:
This shows:
From Dan's link, you can use <BOL></BOL> or <FNT style="Bold"></FNT> but if you type it directly into the box, it will not take formatting, like this:
Clicked into box:
Clicked out of box:
The dynamic text showing something like this:
Hope that helps!
Cody
Thanks both,
I have indeed tried both, and from the element properties dialog, not directly in the text box
Hey @Woosh_AP
Peculiar! Would you be able to copy and paste your text into a reply? Also, the plain text is here:
Then the text I use is this here, could you give this a shot:
Description: <dyn type="mapFrame" name="{0}" property="description"/>
<BOL>Test</BOL>: <dyn type="layout" name="LayoutName" property="serviceLayerCredits"/>
Cody
I tried your text and also not working.
My text is copied below:
<BOL>Layer Credits:</BOL>
<dyn type="layout" name="AP Wall Map" property="serviceLayerCredits"/>; Danielson, J.J., and Gesch, D.B., 2011, Global multi-resolution terrain elevation data 2010 (GMTED2010): U.S. Geological Survey Open-File Report 2011-1073 U.S. Geological Survey Publications Warehouse; Lang, N., Jetz, W., Schindler, K., & Wegner, J. D. (2022). A high-resolution canopy height model of the Earth. arXiv preprint arXiv:2204.08322 arxiv.org/abs/2204.08322; UNEP-WCMC and IUCN (2021), Protected Planet: The World Database on Protected Areas (WDPA), Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net.; © OpenStreetMap contributors; www.geoboundaries.org; WorldBank.
Hey @Woosh_AP
I've figured it out! It's the ampersand &!
It looks like you'll need to escape the ampersands like this:
&
<BOL>Layer Credits:</BOL>
<dyn type="layout" name="AP Wall Map" property="serviceLayerCredits"/>; Danielson, J.J., and Gesch, D.B., 2011, Global multi-resolution terrain elevation data 2010 (GMTED2010): U.S. Geological Survey Open-File Report 2011-1073 U.S. Geological Survey Publications Warehouse; Lang, N., Jetz, W., Schindler, K., & Wegner, J. D. (2022). A high-resolution canopy height model of the Earth. arXiv preprint arXiv:2204.08322 arxiv.org/abs/2204.08322; UNEP-WCMC and IUCN (2021), Protected Planet: The World Database on Protected Areas (WDPA), Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net.; © OpenStreetMap contributors; www.geoboundaries.org; WorldBank.
Cody
Wow! That indeed was it (in combination with the font I was using).
Thanks so much.