From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1572FC31E5B for ; Tue, 18 Jun 2019 20:34:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA85F2147A for ; Tue, 18 Jun 2019 20:34:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730702AbfFRUei (ORCPT ); Tue, 18 Jun 2019 16:34:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:37346 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730176AbfFRUeh (ORCPT ); Tue, 18 Jun 2019 16:34:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6FCE0ABE3; Tue, 18 Jun 2019 20:34:36 +0000 (UTC) From: Takashi Iwai To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Subject: [PATCH RFC 0/3] Automatically choose a bigger font for high resolution screens Date: Tue, 18 Jun 2019 22:34:22 +0200 Message-Id: <20190618203425.10723-1-tiwai@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this is an RFC patch for automatically selecting a bigger font for high resolution monitors if available. Although we recently got a 16x32 sized font support in the kernel, using it still requires some extra kernel option. This patch reduces this and the kernel will pick up a bigger font. The logic is simply checking the text screen size. If it's over a threshold, the penalty is given to the function that chooses the default font. The threshold was chosen so that the normal display up to Full HD won't be affected. There are two preliminary patches and they are merely cleanups. They can be applied no matter whether to take the last patch or not. thanks, Takashi === Takashi Iwai (3): fonts: Fix coding style fonts: Use BUILD_BUG_ON() for checking empty font table fonts: Prefer a bigger font for high resolution screens lib/fonts/fonts.c | 103 ++++++++++++++++++++++++------------------------------ 1 file changed, 46 insertions(+), 57 deletions(-) -- 2.16.4