Project

General

Profile

Actions

Feature #13575

closed

loader: use display pixel density for font autoselection

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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

This should pick "better" font compared to "lets try to get terminal size 80x24" method.

Testing done: I only do have one system with external monitor and EDID data, I did test all available video modes with it and the result is as expected. More testing is very welcome.

Actions #1

Updated by Electric Monk over 1 year ago

  • Gerrit CR set to 1282
Actions #2

Updated by Electric Monk over 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 1b1c4b089b04ffa47f04c2923dc78c7fcafcf964

commit  1b1c4b089b04ffa47f04c2923dc78c7fcafcf964
Author: Toomas Soome <tsoome@me.com>
Date:   2021-03-18T08:05:47.000Z

    13575 loader: use display pixel density for font autoselection
    Reviewed by: Yuri Pankov <yuripv@yuripv.dev>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Actions

Also available in: Atom PDF