From patchwork Sat Oct 18 08:40:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 610 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776931; bh=vXKj3zeusfOnIIrC+WQpGsteKyOlLfltITiX5dGlZXQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LazAaDKy9zutupVjMXfvKkf77N5D/iiw4BpNFkigJgRe8bHWys7xJYljd2lzPqr9P iUdJZqVcP1Cf3f6jzHHYLGm5+hlrVLCN0+6rsVoxgBRpSEBZWL4QBDI0DMYiI+M0HJ ovlVE7gvyZmpcLLoLq5yyzTSvqrcnRqaVhwLAoqx80REgoS0taR7idCygrBiChjmRO BJ6oZ7jG0xFMjIO6App0iE43q/FQ2cqcsqzVkCxTW7UeOo7lXVBISfQI8pIhKb9a3B Rc+czYG/BPoyl+dz36qLyBUWFGmBElkN1m0OoP3hdJ6Y4zfuzDYVKl9b6/55LXBXI5 Y0XY4r3W/pHHQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7E9EF681CD for ; Sat, 18 Oct 2025 02:42:11 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id bRcjCGPHM8tP for ; Sat, 18 Oct 2025 02:42:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776931; bh=vXKj3zeusfOnIIrC+WQpGsteKyOlLfltITiX5dGlZXQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LazAaDKy9zutupVjMXfvKkf77N5D/iiw4BpNFkigJgRe8bHWys7xJYljd2lzPqr9P iUdJZqVcP1Cf3f6jzHHYLGm5+hlrVLCN0+6rsVoxgBRpSEBZWL4QBDI0DMYiI+M0HJ ovlVE7gvyZmpcLLoLq5yyzTSvqrcnRqaVhwLAoqx80REgoS0taR7idCygrBiChjmRO BJ6oZ7jG0xFMjIO6App0iE43q/FQ2cqcsqzVkCxTW7UeOo7lXVBISfQI8pIhKb9a3B Rc+czYG/BPoyl+dz36qLyBUWFGmBElkN1m0OoP3hdJ6Y4zfuzDYVKl9b6/55LXBXI5 Y0XY4r3W/pHHQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6C43F6814E for ; Sat, 18 Oct 2025 02:42:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776928; bh=vZ+Zd6evyz7vwwhtlHQ/Jy3VSfTLCSJlkqekGommYQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YucSV1fVvOBvEZah1gDkKN/e8X823y7bZdu4Dlc+qkmjNdC0bXteOutxwaL3W7vyX juZ6pUdV9/cNESzOsV/9kncqdz8c2L8E9kyTTGqHkP8t/5UxnScH5NUQ4t1odQMaMW qz+pbUBbvopvBdqAi7suWXQI/lwBuKH2tiiZcle2h2Bu6LksIf52AAZwNQ6l8KvYoK ma0g0ywbQbzBnQojVq1KgVMnYKbm7/NdOHuKTHb1IV2A1hfKy1Hfa2aVQ3H04gCjo9 qTW4g4GN6avGvc6z3I0rDh/mkndvYjmZPPffCCzz/woLsYawsMleVyjvR3Ws2qQEPR +UkEwMtTw6GAg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D0D38681BE; Sat, 18 Oct 2025 02:42:08 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id wcL0DrrEHJys; Sat, 18 Oct 2025 02:42:08 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776922; bh=lVsXIrXuoT2x8lfIJPX5CuPH/JMQ0VRpSSOsEdSMrdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=drBuctph/5RrOHKSXVgawuBskqsWYm8BxZFX37KpWvF+OZ8JT8q6avRkkiKKGTd/k nv8/0MVK3wKvjPN5NDBwrP0JcxTbDh6AehpNnvLOcYbWA+ZuCo9Ns/jySDd3DRiA0O zs4aNGbGAUaVIYT+2e5p05Wv3VWqqIVtsNu03V552ZHj3rQG7QfCb8palg+eV4wGJr sKlMyZnuJDQFB6WfN+dRPSdcxqHkT5vWpKVmjpwZLtU39CyHsI7m2kG3S8jBLM1TpB jXWaMkAeeEDirCbeuyf1CPfjun7yMfKjZVwRHIx1sp2pJ03G/XdOaRD6I9iHILU/xk pkK53S9jy25cA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 5DD6A6814E; Sat, 18 Oct 2025 02:42:02 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Sat, 18 Oct 2025 02:40:55 -0600 Message-ID: <20251018084117.1798704-11-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251018084117.1798704-1-sjg@u-boot.org> References: <20251018084117.1798704-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: LYIZAAIHFOB24XKNPWJQSZNIXM2V6LHY X-Message-ID-Hash: LYIZAAIHFOB24XKNPWJQSZNIXM2V6LHY X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 10/24] sandbox: Enable Ubuntu fonts List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Bring the Ubuntu fonts into the build. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 2 ++ test/cmd/font.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index ff2e9ac6e75..0d115368d1b 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -335,6 +335,8 @@ CONFIG_VIDEO_COPY=y CONFIG_CONSOLE_ROTATION=y CONFIG_CONSOLE_TRUETYPE=y CONFIG_CONSOLE_TRUETYPE_CANTORAONE=y +CONFIG_CONSOLE_TRUETYPE_UBUNTU_LIGHT=y +CONFIG_CONSOLE_TRUETYPE_UBUNTU_BOLD=y CONFIG_I2C_EDID=y CONFIG_VIDEO_SANDBOX_SDL=y CONFIG_VIDEO_DSI_HOST_SANDBOX=y diff --git a/test/cmd/font.c b/test/cmd/font.c index ce694fef7e4..adfeebe920d 100644 --- a/test/cmd/font.c +++ b/test/cmd/font.c @@ -36,6 +36,11 @@ static int font_test_base(struct unit_test_state *uts) ut_assert_nextline("ankacoder_c75_r"); if (IS_ENABLED(CONFIG_CONSOLE_TRUETYPE_CANTORAONE)) ut_assert_nextline("cantoraone_regular"); + if (IS_ENABLED(CONFIG_CONSOLE_TRUETYPE_UBUNTU_LIGHT)) + ut_assert_nextline("ubuntu_light"); + if (IS_ENABLED(CONFIG_CONSOLE_TRUETYPE_UBUNTU_BOLD)) + ut_assert_nextline("ubuntu_bold"); + ut_assert_console_end(); ut_assertok(vidconsole_get_font_size(dev, &name, &size));