openframeworks / openframeworks/openFrameworks
setting custom viewport in cairo renderer does not work
Open
Nobody has claimed this yet.
bug
core
section-internals
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
the following code creates a blank pdf
ofBeginSaveScreenAsPDF("test.pdf", true, true, ofRectangle(0, 0, 100, 300));
ofSetColor(0);
ofCircle(0,0,100,100);
ofEndSaveScreenAsPDF();
While this code places a circle in the upper left corner as expected:
ofBeginSaveScreenAsPDF("test.pdf");
ofSetColor(0);
ofCircle(0,0,100,100);
ofEndSaveScreenAsPDF();
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the blank PDF with the custom viewport example and compare it with the default ofBeginSaveScreenAsPDF call. Trace the Cairo renderer's custom viewport handling; done means the custom-size PDF contains the circle in the expected upper-left position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100