diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2021-02-20 08:51:28 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2021-02-27 09:26:02 +0000 |
commit | becaac3972f1fde4e3c44516399468ba5ca65c9b (patch) | |
tree | 124942a742ecd89c75f58de230945b723540d175 /contrib/com_err/parse.y | |
parent | c01da939b0998f8de068a23c9016c377e761255e (diff) | |
download | src-becaac3972f1fde4e3c44516399468ba5ca65c9b.tar.gz src-becaac3972f1fde4e3c44516399468ba5ca65c9b.zip |
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).
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28849
Diffstat (limited to 'contrib/com_err/parse.y')
0 files changed, 0 insertions, 0 deletions