Force legend to match attribute spacing?

768
5
Jump to solution
08-03-2021 11:25 AM
GB_MattPanunto_GISS
Occasional Contributor II

I have a script that generates a legend field in my feature class. The resulting field values are spaced exactly how I want them to display, and they look great in both the attribute table, and in the Map's layer list (below image, left).

However, when I create a legend for the layer, the legend's spacing seems to be different, so things can start to look sloppy and shift around (below image, right).

It would seem that legends use differently sized spaces compared to the attribute field/layer list. Is there any way to force it to look exactly like it does in the attribute table/layer list?

GB_MattPanunto_GISS_0-1628014460136.png

 

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

You appear to use a different font in the legend. Can you change it to match the TOC's font?

View solution in original post

5 Replies
DrVSSKiran
Occasional Contributor II

Try to increase the spacing size +5 to 6 in your script. 

0 Kudos
GB_MattPanunto_GISS
Occasional Contributor II

I don't understand what you mean by this. I'm using Python for what it's worth.

0 Kudos
DrVSSKiran
Occasional Contributor II

It's nothing but  attribute field length. 

0 Kudos
KenBuja
MVP Esteemed Contributor

You appear to use a different font in the legend. Can you change it to match the TOC's font?

GB_MattPanunto_GISS
Occasional Contributor II

That was it! There are a few fonts that significantly improve the spacing issue. Do you happen to know what font the TOC is? I thought maybe it was Arial, but that seems to be off by just a hair.

0 Kudos