Priyank.Jain2 Posted February 6, 2017 Posted February 6, 2017 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?
silent Posted February 6, 2017 Posted February 6, 2017 Hi Priyank, There is a small bug inside source/engine/gui/fonts/FontRich.cpp. Please, apply following patch to fix it: fontrich.patch How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
silent Posted February 7, 2017 Posted February 7, 2017 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts