Jump to content

[SOLVED] use subscript in format()


photo

Recommended Posts

We are not able to set subscript to a label using:

label.setText( format( "Volume: %.0f m<sup>3</sup>", value ) );

Error on log is FontRich::parse(): depth of glyphs stack is not zero

 

What could be wrong?

Link to comment

Please, keep in mind that this fix is not available in 2.4. If you will update engine in your projects you will need to apply this fix one more time. Due to changed codestyle attached patch will no longer works. Please, change lines manually.

 

Fix is merged to the upcoming 2.4.1 update.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...