Skip to content
New issue

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

Enable set font size to JKQTMathText in pixels. #76

Closed
igormironchik opened this issue Jul 2, 2022 · 1 comment
Closed

Enable set font size to JKQTMathText in pixels. #76

igormironchik opened this issue Jul 2, 2022 · 1 comment
Assignees

Comments

@igormironchik
Copy link

Hello. The subject.

Corresponding to the code:

class JKQTMATHTEXT_LIB_EXPORT JKQTMathText : public QObject {
    protected:
        /** \brief base font size in points */
        double fontSize;

Font size in JKQTMathText is set with points, that is platform dependent, as Qt for a long time is not accurate in this question. I did a lot of applications where were necessary to see the same picture on all devices, and I was forced to calculate fonts' sizes by hands and set them in pixels.

Thanks.

jkriege2 added a commit that referenced this issue Jul 4, 2022
… alternative to the existing functions that set them in points), implements request #76
@jkriege2 jkriege2 self-assigned this Jul 4, 2022
@jkriege2
Copy link
Owner

jkriege2 commented Jul 4, 2022

implemented in 2ef1813 ... hope it works for you

@jkriege2 jkriege2 closed this as completed Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants