Select to view content in your preferred language

Linking text size through a field in ArcMap

860
2
01-20-2022 12:43 PM
MappingBeginner12
New Contributor

I'm trying to link a Field (that I created within a Layer) where it will change the size of the text just by changing it in the Attributes.

MappingBeginner12_0-1642711260980.png

 

To "link" the Angle, I went to Layer Properties>Labels>Other Options > Placement Properties...>"Place label at an angle specified by a field"

MappingBeginner12_1-1642711339915.png

And set it to my "TEXT_ANGLE" field.

How can I do the same for the size?

 

Any inputs are welcomed. Thank you.

0 Kudos
2 Replies
curtvprice
MVP Esteemed Contributor

I believe the only way to do this is to use label classes, and have a different text size for each group.  You can use a SQL expression for each label class.

Using label classes to label features from the same layer differently

 

0 Kudos
JesseWickizer
Esri Contributor

You can use text formatting tags to achieve this.

In your case, use the FNT formatting tag with size attribute to define the font size from the feature's attributes.

Here's an example Arcade label expression that uses this method:

 

"<FNT size= '" + $feature.TEXT_SIZE + "'>" + $feature.Name + "</FNT>"

 

 

0 Kudos