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

viewertexteditor: Fix incorrect text rendering when pixel aspect ratio not 1 #2084

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

p9malino26
Copy link

Addresses issue #1844, although it solves the problem with text only and not polygon, shape, and transform

@ThomasWilshaw
Copy link
Collaborator

Olive is about to undergo some largish code refactoring and I wanted to check on the status of old PRs before we do that. Do you plan to update/continue with the PR? Thanks

@p9malino26
Copy link
Author

It's up to you whether to merge this or not. I think this may be useful. If not then feel free to close this.

@@ -150,11 +150,12 @@ void TextGeneratorV3::GenerateFrame(FramePtr frame, const GenerateJob& job) cons

// Draw rich text onto image
QPainter p(&img);
p.scale(1.0 / frame->video_params().divider(), 1.0 / frame->video_params().divider());
const double par = frame->video_params().pixel_aspect_ratio().toDouble();
Copy link
Collaborator

@ThomasWilshaw ThomasWilshaw Feb 12, 2023

Choose a reason for hiding this comment

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

Long explicit names are prefered so something like pixel_aspect_ratio would be better

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.

2 participants