We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to run debug version it has debug error notification about font. This is due to the
QFont EFont(QFont::StyleHint _hint, const char* _family, int _size, int _weight = -1); inline QFont EFont(const char* _family, int _size, int _weight = -1) { return EFont(QFont::Helvetica, _family, _size, _weight); }
QFont EFont(QFont::StyleHint _hint, const char* _family, int _size, int _weight) { QFont f; f.setStyleHint(_hint, QFont::PreferMatch); f.setFamily(_family); f.setPointSize(_size); f.setWeight(_weight); return f; }
When the font weight is -1, it shouldn't call f.setWeight(_weight); I corrected it in the next way and it started to work:
f.setWeight(_weight);
QFont EFont(QFont::StyleHint _hint, const char* _family, int _size, int _weight) { QFont f; f.setStyleHint(_hint, QFont::PreferMatch); f.setFamily(_family); f.setPointSize(_size); if (_weight != -1) { f.setWeight(_weight); } return f; }
Could you please look at the fix and update your sources?
The text was updated successfully, but these errors were encountered:
#143 fixed QFont issue with negative weight
0567f2d
@alprist thanks for reporting!
Sorry, something went wrong.
cas4ey
No branches or pull requests
When I try to run debug version it has debug error notification about font. This is due to the
common_functions.h
common_functions.cpp
When the font weight is -1, it shouldn't call
f.setWeight(_weight);
I corrected it in the next way and it started to work:Could you please look at the fix and update your sources?
The text was updated successfully, but these errors were encountered: