rust-windowing / rust-windowing/winit
HiDPI: Missing interface to access physical dpi value.
Open
Nobody has claimed this yet.
S - api
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Description
Now MonitorId::get_hidpi_factor returns a logical dpi factor.
But there is no function to access physcial dpi value of a screen, like QScreen::physicalDotsPerInch in Qt.
It's necessary for any physical-size-aware software like Ruler.
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 MonitorId::get_hidpi_factor and trace how the monitor value is implemented across the supported windowing backends. Add an interface that exposes a screen's physical dpi, and verify that physical-size-aware software can distinguish it from the logical dpi factor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100