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 1DE1FC636D4 for ; Mon, 13 Feb 2023 16:57:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 354F5857CA; Mon, 13 Feb 2023 17:57:22 +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="hsPuyl5z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AF508857DA; Mon, 13 Feb 2023 17:57:11 +0100 (CET) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 36C7D80B9F for ; Mon, 13 Feb 2023 17:57: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-ed1-x52f.google.com with SMTP id d40so12569562eda.8 for ; Mon, 13 Feb 2023 08:57: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=4kfkYbVvV0pnHu8+piOe0tFy5iIbzmeFuEt7BDANeWQ=; b=hsPuyl5zMbxpaeDaW+3Se9PuaV2dE8eGytKu0EsxNsukTYiLFhInp8w+ZJCIEYxN6M yUYtQtUj0Fc5HD1wy7Fnrl3o/M6lXCL0ZLPfeGW7WwHFCxfk3qRvul9ZzysAe7k5ZGGC oMjZrXS9fWC+eEVSlpTIXBV8cGXwYJui9wlrsQwnJy1VnCiARZklg3Rl/1y/irD40LpL d907nepShgfxB2ezeOwMeFbAHm1VFUiyFLVGJ40jkU0vGIQhcz4JEbbrPPJtUT6y+2d3 Mtv8DIIOb8yEDeseZJynAWeZgG6ZH3jtYxhzkruCFaiD3xMY3IYXOr//+gBs15GuvBqF gw5A== 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=4kfkYbVvV0pnHu8+piOe0tFy5iIbzmeFuEt7BDANeWQ=; b=qjrGLmhjefdFVuku/Jwvg4OMyiUqEnmXvwLClpJuco4T68FUbmNgHHwe6NBF/fIYQR YyRlgehIBpjhdFOxal0ZtzqHSK9ZOJWSwrrcvTX+BLrLmTB9YEv/A1pJCep5FrWbibaF 1DEZ+JiTColcRfk52CgEtID0L6gDXIQCQmmtt85vkl4JshGwWcz6KyeytvAxXZD0gHbW rn+2Qc5CtpW/QlOCo257o9eZPLuc79tPkwXtD6hrYnkJjsfTKKXg1Q4ra/LdbYxqHmPg G9+7iSRgaJZX0qweUS4bXONNAJS1Fq//xwt5EoQSagv3j9rSFvroMfze+RJZRVuhuVpw 7UoQ== X-Gm-Message-State: AO0yUKUzSpgsCuiicn7BNQuB1r2o0/1Qph79RI1xKFHp2hYdWfEfTkLw xvGAZi1+PgL2Ec1e6gc6Sstt0STTzM0= X-Google-Smtp-Source: AK7set8gyOEIAFSa3YYooWhQ9ds6GbK5QOroO/YyZyHw7q7znv0EbIxkcHFnz4Rd2VTVmFP4RJXcSA== X-Received: by 2002:a05:6402:3583:b0:4a3:43c1:843e with SMTP id y3-20020a056402358300b004a343c1843emr9493431edc.18.1676307424567; Mon, 13 Feb 2023 08:57:04 -0800 (PST) Received: from debian.localdomain ([37.45.245.36]) by smtp.googlemail.com with ESMTPSA id v1-20020a50c401000000b004a249a97d84sm6897592edf.23.2023.02.13.08.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 08:57:04 -0800 (PST) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski Subject: [PATCH v2 0/8] vidconsole: refactoring and support for wider fonts Date: Mon, 13 Feb 2023 19:56:52 +0300 Message-Id: <20230213165700.982691-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 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 3: - fix video tests failures - add runtime font size configuration - add test for 12x22 font Dzmitry Sankouski (8): video console: unite normal and rotated files video console: refactoring and optimization video console: add support for fonts wider than 1 byte video console: add select font logic to vidconsole uclass driver 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 +- cmd/font.c | 7 +- common/splash.c | 7 +- configs/qemu-x86_defconfig | 1 + 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 | 638 +++ drivers/video/console_truetype.c | 6 +- drivers/video/vidconsole-uclass.c | 22 + include/video.h | 1 + include/video_console.h | 18 +- 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 + 22 files changed, 13681 insertions(+), 5319 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 -- 2.30.2