]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: use display pixel density for font autoselection
authorToomas Soome <tsoome@FreeBSD.org>
Sat, 20 Feb 2021 08:51:28 +0000 (10:51 +0200)
committerToomas Soome <tsoome@FreeBSD.org>
Sat, 27 Feb 2021 09:26:02 +0000 (11:26 +0200)
commitbecaac3972f1fde4e3c44516399468ba5ca65c9b
tree124942a742ecd89c75f58de230945b723540d175
parentc01da939b0998f8de068a23c9016c377e761255e
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
stand/common/gfx_fb.c
stand/common/gfx_fb.h
stand/efi/libefi/efi_console.c
stand/efi/loader/framebuffer.c
stand/i386/libi386/vbe.c