openframeworks / openframeworks/openFrameworks
ofTrueTypeFont rendering with different dpi
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Just getting one subject that arised here
https://github.com/openframeworks/openFrameworks/issues/4789#issuecomment-1122578943
to discuss in its own thread
ofTrueTypeFont::setGlobalDpi();
this function doesn't work as expected and letters are scaled.
I think maybe it worth taking a look at FreeType, there are some changes after 2.7.0, I'm not sure which version is being used in OF.
https://news.ycombinator.com/item?id=12111747
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
Start at ofTrueTypeFont::setGlobalDpi() and trace how the font rendering path applies DPI and scales letters. Check the FreeType version used by openFrameworks and compare its behavior with the reported changes after 2.7.0; done means rendering at different DPI values no longer produces unexpected letter scaling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100