Bug - LineHeight property on TextSymbol not working

141
0
3 weeks ago
JamesIng
New Contributor III

When creating a new text Graphic symbol, the 'lineHeight' property of the symbol doesn't seem to actually apply on multiline text symbols as expected in the Javascript API 4.29.

The documentation states the lineHeight property should be a value between 0.1and 4 which should act as a multiplier for the standard line height of the text label.

Using the esri code sample  "MapNotesLayer"  (https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/)

And setting the lineHeight on the textSymbol to 4  show exactly the same result as setting the value to 0.1

JamesIng_0-1712799279328.png

JamesIng_1-1712799341962.png


Note the property of lineWidth is set to cause the symbol to be multi-lined, but the same result occurs when setting a textSymbol to be multiline using the "\n" escape.

James from www.landkind.com
Tags (2)
0 Replies