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 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 67553C678D4 for ; Tue, 7 Mar 2023 10:21:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF98C85B8A; Tue, 7 Mar 2023 11:21:47 +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="boVwCGnp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 17DE285B61; Tue, 7 Mar 2023 11:21:44 +0100 (CET) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 8CE1385906 for ; Tue, 7 Mar 2023 11:21:41 +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-wm1-x334.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso10060731wmq.1 for ; Tue, 07 Mar 2023 02:21:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678184500; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WtmOpXLOuFvz73sxtUe9lkJoK1fX45kMST2GnpGSFc4=; b=boVwCGnpktYJ9vTgDL/g87ahP/k1CqRxDxI3JYkVyDGDLeQIbx6Ne3yh7q4iMa8/h5 sgrgruM20rcSyw74IlqPg0X8UodDyPB5WQDwczUpxyZiUPJcJYyySO0/KABNkMi+56+7 Uq7KnaiVWscDErqtUo9853SfB1A8AgR8scq7Vt2YLH3JGT/+N0NI7tMNiEXpa0uwpCTV YyYIjhyNoo8EsQeEptq+AS0DcTxZgNYUuceq1h8P05hNPnQBJ4LIYQmufa6VYgGIdMzM hOk8Y+6G25LjZma/XOK73xZKuTmj0UKEQzahiE+/Cmjyu0LAVn96sx5+HPrw5jikI8X2 AIFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678184500; 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=WtmOpXLOuFvz73sxtUe9lkJoK1fX45kMST2GnpGSFc4=; b=pDdHjyEpl7Q1pgWJ/MpWlRzUV8c1IMLi7YOux1yrmW1yVL4Q5SpeT5WsgaE4joTkfh Pjlokxf8YT1qf11xE17q2qesQDKfWFG/hH4wKkvBaqmUsdZ4Iusy5Zmn2+Y4ksJz1cF/ JoHnMhJ+3eNgGbIuZ4qYLsJ8yRmuU7bITXeJ+F1ddj/eDawz65gsJYutXKZ0Ams2Acns +16OcXHv2BJsTPdJ2V9D3at7NkPo2Qgb/3J6SWQahUOJ555/2S5OAkWrXiXAZ2DuSNHy csEdv33xAPAIt24Tb9tMObJF08H2p4FlqpZpS9o5I6jl0k6lw4I4yfFbqWM9MCecyb6D eBCg== X-Gm-Message-State: AO0yUKXnLGWqHjZQM6BsCVbglkZQPOqILHzkEWBrKih6VtlUc7F2Qn4L gL+wtqmfqPwJ0UUS50NP6u+hRG0SHJI= X-Google-Smtp-Source: AK7set/JwR4siYRTwhdVzwYjgULQGrtgVKl8KI2f4RdpK2eYAxTbraWSIZrzRQzf5kiOO6/rHNpNTQ== X-Received: by 2002:a05:600c:3b27:b0:3eb:399f:6b70 with SMTP id m39-20020a05600c3b2700b003eb399f6b70mr12230752wms.31.1678184499724; Tue, 07 Mar 2023 02:21:39 -0800 (PST) Received: from debian.localdomain ([37.45.231.77]) by smtp.googlemail.com with ESMTPSA id d42-20020a05600c4c2a00b003e6efc0f91csm12306258wmp.42.2023.03.07.02.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 02:21:39 -0800 (PST) From: Dzmitry Sankouski To: U-Boot Mailing List Cc: Dzmitry Sankouski , Alexey Romanov , Anatolij Gustschin , Heinrich Schuchardt , Ilias Apalodimas , John Keeping , Julien Masson , Masahisa Kojima , Neil Armstrong , Roger Knecht , Simon Glass Subject: [PATCH v8 00/10] vidconsole: refactoring and support for wider fonts Date: Tue, 7 Mar 2023 13:21:10 +0300 Message-Id: <20230307102121.1925581-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.8 at phobos.denx.de X-Virus-Status: Clean Version 7 has vidconsole_get_font_size() function reworked to use driver ops. 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' Changes in v8: - fix build with disabled CONFIG_VIDEO_COPY - add 12X22 font to sandox defconfig 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() logic to driver ops 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: add 12x22 font defconfigs video console: add 12x22 console simple font test cmd/Kconfig | 8 + cmd/Makefile | 2 +- cmd/font.c | 6 +- common/splash.c | 17 +- configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + drivers/video/Kconfig | 30 + drivers/video/Makefile | 6 + drivers/video/console_core.c | 212 + drivers/video/console_normal.c | 177 +- drivers/video/console_rotate.c | 371 +- drivers/video/console_truetype.c | 3 +- drivers/video/vidconsole-uclass.c | 11 + drivers/video/vidconsole_internal.h | 120 + include/video_console.h | 17 +- 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 | 13 +- test/dm/video.c | 41 + 23 files changed, 13518 insertions(+), 5048 deletions(-) create mode 100644 drivers/video/console_core.c create mode 100644 drivers/video/vidconsole_internal.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