ol-ext icon indicating copy to clipboard operation
ol-ext copied to clipboard

FontSize of FontSymbol not as expected

Open ngoloc10796 opened this issue 2 years ago • 1 comments

https://codepen.io/viglino/pen/QVNpzm?editors=1010

i have add FontSize: 20 then view as image:

image

Please check! thank you!

ngoloc10796 avatar Mar 23 '22 03:03 ngoloc10796

The fontSize is the size of the font compare to the symbol radius... 20 means the glyph will be 20*radius size and it will be cropped. fontSize greater than 1 may exceed the symbol extent and is cropped.

You have to use the radius option instead if you want to size the symbol.

Viglino avatar Mar 23 '22 08:03 Viglino