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

Fix rotated text rendering #11691

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

AustraleanPerson
Copy link
Contributor

Related Issues

Some issues with text transformation
#11625
#8236
#10650

Purpose

Some text rendering issue when it flipped or rotated. Also aligment issue when text flipped or rotated.
Suppress #11631

Approach

Based on @MaksKBV commit. Issues discovered by @adeas31 have been fixed.

@CLAassistant
Copy link

CLAassistant commented Dec 7, 2023

CLA assistant check
All committers have signed the CLA.

@adeas31 adeas31 self-requested a review December 7, 2023 09:05
*/
QString textToDraw = textString;
if (absMappedBoundingRect.width() > 1 && ((mFontSize <= 0 && painter->font().pointSizeF() <= Helper::minimumTextFontSize) || (mFontSize > 0 && !Utilities::isMultiline(textString)))) {
if (mappedBoundingRect.width() > 1 && ((mFontSize <= 0 && painter->font().pointSizeF() <= Helper::minimumTextFontSize) || mFontSize > 0)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put the comment back and check for multiline. It is not possible to get the elided text for multiline strings.

@adeas31 adeas31 merged commit 13e5671 into OpenModelica:master Jan 26, 2024
2 checks passed
adeas31 pushed a commit to adeas31/OpenModelica that referenced this pull request Jan 26, 2024
* Fix rotated text rendering

* Merge recent changes.
adeas31 added a commit that referenced this pull request Jan 26, 2024
* Fix rotated text rendering

* Merge recent changes.

Co-authored-by: AustraleanPerson <147278612+AustraleanPerson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants