[X/B/D][SRU][PATCH 0/2] Enable framebuffer fonts auto selection for HighDPI screen

Po-Hsu Lin po-hsu.lin at canonical.com
Thu Nov 7 11:43:56 UTC 2019


== Justification ==
After bug 1819881 - [CONFIG] please enable highdpi font FONT_TER16x32,
many of our kernel now support TER16x32 font for high resolution screen.

With Takashi Iwai's patch:
  dfd19a50 (fonts: Prefer a bigger font for high resolution screens)

The framebuffer can now decide which font to use base on the screen
resolution. It will be great to have this feature in older kernels as
well.

== Fixes ==
* aa1d19f1 (fonts: Fix coding style)
* dfd19a50 (fonts: Prefer a bigger font for high resolution screens)

First patch just changes the coding style, no actual changes were made.
The second patch added an extra check to see if we can use highDPI font.

These two patches can be cherry-picked into X/B/D

For Eoan and onward, they already have these patches.

== Test ==
Test kernels can be found here:
https://people.canonical.com/~phlin/kernel/lp-1851623-fb-font-detect/

Patch tested on a Dell G7 UHD laptop and it works as expected, the
font displayed in the early boot stage (before switching to color
frame buffer device) will be set to a more readable one.

Screenshots can be found in the attachment of the bug report.

== Regression Potential ==
Low, this only affects the frame buffer, changing the way to decide
which font to use.

Takashi Iwai (2):
  fonts: Fix coding style
  fonts: Prefer a bigger font for high resolution screens

 lib/fonts/fonts.c | 88 ++++++++++++++++++++++++++++---------------------------
 1 file changed, 45 insertions(+), 43 deletions(-)

-- 
2.7.4




More information about the kernel-team mailing list