openframeworks / openframeworks/openFrameworks

ofTrueTypeFont rendering with different dpi

Open
#6,970 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

section-typography
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.