bold labels get cut off when using firefox

Answered
0
0

Hi,

this behavior is quite new in our application … is this a bug in the new version 2.2.8?

I already read an earlier closed task “https://wisej.com/support/question/autosize-labels-get-cut-off-when-using-firefox-and-certain-fonts”

but that doesn’t fix this error.

The error obviously only happens if the font is bold (Microsoft Sans Serif 13px <- Standard, AutoSize=true) and the browser is Firefox.

Generally the font of the application looks terrible in Firefox NOW, but  in Chrome and Edge everything still looks good.

 

Best regards,

Harald

  • You must to post comments
Best Answer
0
0

This is the solution: SANS-SERIF does not work, I set it back to @default, since then everything works fine with AutoSize=true
And I also tried to remove the <style …> workaround in the default.html … and that works too … only the wrong font was the reason for this behaviour..

Thank you!!!

If I select more than one label in the designer at the same time and click “….” in the font property and select bold THEN all selected labels are automatically set to Microsoft SANS SERIF font

  • You must to post comments
Good Answer
0
0

Tried Chrome, IE and Firefox with a Label “Passwort:” set to bold and width 63, which is the minimum before it gets truncated.

 

Attachment
  • Luca (ITG)
    I did but it sets the label to even a bigger width. What is the width you have?
  • Harald Zimmerer
    with absolute width 63px and 13px Sans Serif bold “Passwort” is displayed without the colon at the end
  • Harald Zimmerer
    with absolute width 64px and 13px Sans Serif bold “Passwort:” is displayed completely (“Passwort” with a colon at the end)
  • Harald Zimmerer
    with Autosize=true the designer sets width to 63 <- the colon at the end is not displayed
  • Luca (ITG)
    How did you pick Sans Serif?
0
0

this special <style ..> doesn’t work as expected … actually nothing happens after inserting

screenshots in the attachment show the difference

 

Firefox 80.0 (64-Bit)

Attachment
  • Luca (ITG)
    Can you update FF and let me know? We need to find a better solution to this FF problem anyway but let me know if upgrading changes something.
  • Luca (ITG)
    Can you also tell me the exact width you have for the “Passwort:” label?
  • Harald Zimmerer
    the same behaviour with FF 81.0 (64-Bit)
  • You must to post comments
0
0

Try to add this to your Default.html. A Firefox recent update seems to have changed the rendering of fonts and we had to remove the -0.03em adjustment. Let me know and please send also a screen shot and the FF exact version.

Inside <head>

<style>

/* Fix Firefox wrong font rendering. */
@-moz-document url-prefix() {
div {
letter-spacing: -0.03em;
}
}

</style>

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.