HOW TO
![[O-Image] UK Flag](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL24-0EM39000000wdLi.png)
This article was contributed by Esri UK.
The instructions provided describe how to use dynamic values of font properties (font type and size) in a VBScript label expression.
Right-click the layer in the Table of Contents and select Open Attribute Table.
![[O-Image] Open Attribute Table](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLk.png)
In the attribute table, click the table options button and select Add Field.
![[O-Image] Add New Fields](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLd.png)
![[O-Image] TextSize](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLa.png)
![[O-Image] FontType](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLU.png)
![[O-Image] Label](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLe.png)
![[O-Image] Expression](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLb.png)
Code:
"<FNT name='" & [FontType] & "' size='" & [TextSize] & "'>" & [Label] & "</FNT>"
Note:
Make sure that all of the single and double quotes (' and ") are included. Otherwise, there may be errors or labels are not displayed properly.
![[O-Image] Label Expression](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLg.png)
Note:
The label expression can be verified by entering the following sample test string in the Expression text box and clicking Verify.
Code:
"<FNT name='Arial' size='10'>ABC</FNT>"
![[O-Image] Sample Test String](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000011537/00N39000003LL2C-0EM39000000wdLc.png)
Note:
Make sure that the font type(s) chosen are installed on the machine. Otherwise, the labels may not display or may display incorrectly using a substitute font type.
Article ID: 000011537
Get help from ArcGIS experts
Start chatting now