Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D16F1C636D6 for ; Thu, 23 Feb 2023 18:10:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DC2E85AFF; Thu, 23 Feb 2023 19:10:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dAJ3aSRj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4B54B8595D; Thu, 23 Feb 2023 19:10:38 +0100 (CET) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 59FAE851EB for ; Thu, 23 Feb 2023 19:10:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dsankouski@gmail.com Received: by mail-ed1-x532.google.com with SMTP id f13so44790624edz.6 for ; Thu, 23 Feb 2023 10:10:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1bVs1jCYGvtxrDgNfw8n9vpav4YlASZFkerLoH/fKzk=; b=dAJ3aSRjU70T7KQDt2sT7BlsF4dV36YDpLjcvIVeFPO0zHMa+JNSsGi6aRmRwi7fJ7 QiLSswpNyzFBwvOzvOfnipkMuSZLtuB0fK0nJEZYFD6ODbnpd/j/ZmU3xmdBGr7rWoci n4q1pCUJQ7RbMBvBoDJ0wHmflG6kKJFnv6MWfJ2F2k5v2F3gCxQc6TmDnz9y6cmu9bbW 3fc/T9A/Xpp9adEg77OjZ1n9fJDsw3BLoV+Rp0wIJeNK+GH28fnZ1wMsFhmtWzJApEr6 +Mn9vvwlY8kXzfbDr+v+fPupQeD3i3mydH6kE1NTaZAv5DZRrq3JzC0jdX2K0972AdXK r23w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1bVs1jCYGvtxrDgNfw8n9vpav4YlASZFkerLoH/fKzk=; b=XChz3Zvw8+jgJl6deviPQHi3lDNN0aM4gUU3P3/orCzAZdRcikmVMD/gCu/QOyJbIH 7N/wctkIqHVN2yS19+xnIUDnjtehBmd2Va4MX5VkPDygCQYJ+zXdAiWFoIbvviGxeGfL eC38EjRzs41+bb1VKZrxwTtCBRWjUmSs+WSdTCXKHlAWEehfhl3v3o63XuJRIy/fuJPS r2cTHIuMMDY8oy7WPMGlZRRdPu/YBy2H8lm5vhYV4Ok9yFY0rbuB8qNa5sbrib1Ux9Ux 5XD50ATxjdaRaA9qsbPBomVe3aAqwlqtY3ja2O/nEAF5JshXbQEkQQDCrNCn62NAkgZO Ml8Q== X-Gm-Message-State: AO0yUKXMXjLV/U4YBt/YMPOkWaYtMhiqKXCLndu+yuxRjU7B3poiNtHi f6u33KTywMfYRWXC2CVqs+9GOaCRi5A= X-Google-Smtp-Source: AK7set+0ITW5o2lJ5DqSrtxKxvLada/5s+pewRturcLP0mOKX7VirRoWpucrZkQeJVH3o8H+lCpMVQ== X-Received: by 2002:a50:ff0e:0:b0:4af:502b:442f with SMTP id a14-20020a50ff0e000000b004af502b442fmr11425967edu.28.1677175833597; Thu, 23 Feb 2023 10:10:33 -0800 (PST) Received: from debian.localdomain ([178.127.181.53]) by smtp.googlemail.com with ESMTPSA id j10-20020a50d00a000000b004af516b5010sm3822989edf.94.2023.02.23.10.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 10:10:33 -0800 (PST) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski , Anatolij Gustschin , Simon Glass Subject: [PATCH v6 00/10] vidconsole: refactoring and support for wider fonts Date: Thu, 23 Feb 2023 21:10:20 +0300 Message-Id: <20230223181030.1596976-1-dsankouski@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Version 6 contains entire rebased patch series. New patch 'move vidconsole_get_font_size() to test.h' added. Version 5 contain minor changes: - move common functions to console-core.c file - remove static keyword from shared functions In version 4, only first patch sent, because review fixes to this would add large rebase & patch formatting overhead. When it'll receive reviewed tag, I'll resent entire rebased series. Modern mobile phones typically have high pixel density. Bootmenu is hardly readable on those with 8x16 font. This patch series aims to add wider fonts for devices with high ppi. Add 16x32, 12x22 fonts from linux, and allow font size configuration. There was significant changes in version 2: - fix video tests failures - add runtime font size configuration - add test for 12x22 font In version 3, 'video console: add select font logic to vidconsole uclass driver' patch was removed in favor of already merged patch 'video: Add font functions to the vidconsole API' Dzmitry Sankouski (10): video console: refactoring and optimization video console: add support for fonts wider than 1 byte video console: move 8x16 font data in named header video console: implement multiple fonts configuration video console: move vidconsole_get_font_size() to test.h video console: allow font size configuration at runtime video console: add 12x22 Sun font from linux video console: add 16x32 Terminus font from linux video console: sandbox_defconfig: add 12x22 font video console: add 12x22 console simple font test cmd/Kconfig | 8 + cmd/Makefile | 2 +- cmd/font.c | 5 +- common/splash.c | 17 +- configs/sandbox_defconfig | 5 +- drivers/video/Kconfig | 30 + drivers/video/Makefile | 6 + drivers/video/console_core.c | 203 + drivers/video/console_normal.c | 176 +- drivers/video/console_rotate.c | 368 +- drivers/video/console_truetype.c | 8 +- drivers/video/vidconsole_internal.h | 114 + include/cmd/test.h | 19 + include/video_console.h | 9 - include/video_font.h | 31 +- include/video_font_4x6.h | 11 +- include/video_font_8x16.h | 4624 ++++++++++++++++++++ include/video_font_data.h | 4644 +------------------- include/video_font_sun12x22.h | 6158 +++++++++++++++++++++++++++ include/video_font_ter16x32.h | 2062 +++++++++ test/cmd/font.c | 1 + test/dm/video.c | 41 + 22 files changed, 13488 insertions(+), 5054 deletions(-) create mode 100644 drivers/video/console_core.c create mode 100644 drivers/video/vidconsole_internal.h create mode 100644 include/cmd/test.h create mode 100644 include/video_font_8x16.h create mode 100644 include/video_font_sun12x22.h create mode 100644 include/video_font_ter16x32.h -- 2.30.2