Page MenuHomeFreeBSD

loader: use display pixel density for font autoselection
AbandonedPublic

Authored by tsoome on Mon, Feb 22, 9:37 AM.

Details

Reviewers
None
Summary

Calculate font size from 16 density independent pixels (dp) by using:
size = 16 * ppi/160 * display_factor

We are specifying font size 16dp, and assuming 1dp = 160ppi.
Also apply scaling factor 2 (display_factor).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 37259
Build 34148: arc lint + arc unit