From patchwork Wed Feb 15 11:42:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 1742813 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Ux5duIfP; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PGx6M6qDqz23hX for ; Wed, 15 Feb 2023 22:43:22 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5551085A39; Wed, 15 Feb 2023 12:43:10 +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="Ux5duIfP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8440A85518; Wed, 15 Feb 2023 12:43:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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 1A97B85518 for ; Wed, 15 Feb 2023 12:43:05 +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-ej1-x62b.google.com with SMTP id qb15so45428194ejc.1 for ; Wed, 15 Feb 2023 03:43:05 -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=tLtDqIhmvF/8Do5n9o+gIN1gAyxoyLPCmxJP1rPEneA=; b=Ux5duIfPUnFWXwNbn1svKtxlzayxcY9D6yfX3j4c8qwechExP7Jv4JxWV6FKMUtjjI FhSmgbKZW5oiX8nHdxuVjVg49r7TELf+rR86NP04xIQI9wRtI9SQfBpIuuiIGw4lr/nv YLkW7vY8lb5Ikpf/XhC17v2fQGl22y1Nq/FaU3dgyctbO0mqp6V2uxB1aCO1H1olMm5c uDWUQw5m55mhAKzwv6xEn7Ie3cS3ja4wJObd2nGYs/+AJfE1xFoxHLCy65xbA9Q4wjw9 /rhzLWTzlfuXKLcS9sGV36Cr92lir3YDghWFM2Ex41HArh6o+0+I/qHVJWUQGj1cTLUR 5Lpw== 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=tLtDqIhmvF/8Do5n9o+gIN1gAyxoyLPCmxJP1rPEneA=; b=nvF3phM6RqddrDU8Jt+Jo87a8lBdd4Ze+YYKAvarA+Bh+yChIuPcMvEvW0HFWBDhbM zzGQGMoO6RfKN52/c0KdqyTrjxwwA5MwWv2YkRfpCC7d7jXUgWUNIGz3gos00e+w7osY 1+6sGyd2xdEtZeGnC9/PUuuzB5V7SDI7L6jt80fjTxicz79JOJBICWKtOTmPHl3O86Tk L0paOqRx3hUPQHnZ3tOwnuRDEgEg2wbpeyC+ZVDTgXYD67/ldcK4AkVf9s40BSlX1tp8 xT4S6VQ9TIUcw8zdjQYdkRXHWb2pN6j2SZbqjFr1DKvtmVizYiowphlUcu/Rl5EbpYL4 LD2A== X-Gm-Message-State: AO0yUKXSL1isvX7euU/s520Ke5697dr2ZJuKvwTikS1ABXUL+VxlJmKq eLQv+28zk0GGSlxyUrc0wZYIWwfmWwY= X-Google-Smtp-Source: AK7set//rSi6MEbinc8VmDOGjY2EBCdKLPcxI3k7Ojlz4cGNTXy01kQaL2krSzVM4vxH19linOaleA== X-Received: by 2002:a17:906:3c11:b0:884:26ec:388b with SMTP id h17-20020a1709063c1100b0088426ec388bmr2004928ejg.39.1676461384379; Wed, 15 Feb 2023 03:43:04 -0800 (PST) Received: from debian.localdomain ([37.45.175.233]) by smtp.googlemail.com with ESMTPSA id gz19-20020a170906f2d300b008b14b63d3besm299247ejb.197.2023.02.15.03.43.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 03:43:03 -0800 (PST) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski Subject: [PATCH v3 0/9] vidconsole: refactoring and support for wider fonts Date: Wed, 15 Feb 2023 14:42:51 +0300 Message-Id: <20230215114300.1151303-1-dsankouski@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 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 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 (9): video console: unite normal and rotated files 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: allow font size configuration at runtime video console: add 12x22 Sun font from linux video console: add 16x32 Terminus font from linux video console: add 12x22 console simple font test cmd/Kconfig | 8 + cmd/Makefile | 2 +- common/splash.c | 17 +- configs/sandbox_defconfig | 3 + drivers/video/Kconfig | 38 +- drivers/video/Makefile | 3 +- drivers/video/console_normal.c | 178 - drivers/video/console_rotate.c | 497 --- drivers/video/console_simple.c | 682 ++++ 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/dm/video.c | 41 + 16 files changed, 13679 insertions(+), 5320 deletions(-) delete mode 100644 drivers/video/console_normal.c delete mode 100644 drivers/video/console_rotate.c create mode 100644 drivers/video/console_simple.c create mode 100644 include/video_font_8x16.h create mode 100644 include/video_font_sun12x22.h create mode 100644 include/video_font_ter16x32.h