HomeFreeBSD

loader: use display pixel density for font autoselection

Description

loader: use display pixel density for font autoselection

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).

(cherry picked from commit becaac3972f1fde4e3c44516399468ba5ca65c9b)

Details

Provenance
tsoomeAuthored on Feb 20 2021, 8:51 AM
Parents
rGe8b0f76b6130: O_RELATIVE_BENEATH: return ENOTCAPABLE instead of EINVAL for abs path
Branches
Unknown
Tags
Unknown