Font-family mystery in TextSymbols

162
0
09-06-2021 03:17 AM
MattiasEkström
Regular Contributor

I've developed a measure and coordinate widget based on Tom Sellsteds Measure widget. Everything is fine in my development enviroment but when using my widget in my portal something wierd happens with some of my TextSymbols.

All textSymbols get their font from a global-font variable.

this.defFont = new Font("12px", Font.STYLE_NORMAL, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "Arial, Helvetica, Sans-serif" );

Some of my textSymbols display correctly and others incorrectly, when inspecting the html elements for the graphics my correct symbols has font-family="Arial, Helvetica, Sans-serif" but the incorrect one has font-family="serif, Arial"

Does anyone has an idea how this can happen??

See attached screenshot

0 Kudos
0 Replies