From 2ebdbcf8f59f376a44c7e5bbb5934b89da445ab0 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Wed, 22 Oct 2025 18:13:49 +0800 Subject: [PATCH] media-fonts/yozai-font: new package, add 0.868 Signed-off-by: Huang Rui --- .github/workflows/overlay.toml | 7 +++++ media-fonts/yozai-font/Manifest | 3 ++ media-fonts/yozai-font/metadata.xml | 30 +++++++++++++++++++ .../yozai-font/yozai-font-0.868.ebuild | 29 ++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 media-fonts/yozai-font/Manifest create mode 100644 media-fonts/yozai-font/metadata.xml create mode 100644 media-fonts/yozai-font/yozai-font-0.868.ebuild diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index e1bddf17b4..db8302ea0a 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -943,6 +943,13 @@ github_account = "Linerre" #url = "https://code.google.com/archive/p/wangfonts/downloads" #regex = "wangfonts-([\\d.]+).zip" +["media-fonts/yozai-font"] +source = "github" +github = "lxgw/yozai-font" +use_latest_release = true +prefix = "v" +github_account = "vowstar" + ["media-fonts/zhudou"] source = "github" github = "Buernia/Zhudou-Sans" diff --git a/media-fonts/yozai-font/Manifest b/media-fonts/yozai-font/Manifest new file mode 100644 index 0000000000..0a53d9db1e --- /dev/null +++ b/media-fonts/yozai-font/Manifest @@ -0,0 +1,3 @@ +DIST yozai-font-0.868.ttf 15605374 BLAKE2B 0a978db879d40c6df8b180d0c5533e3468ecad307f5d139280db067ac5a36123d559835222b20d0ed091fefaa4fed4fd89be09992cb0ef7e9422e6191267604b SHA512 f9cc10f7800573f077a58d28d9b1bc61d7acb35b4c82e28a3adaf142c22bfdd06fcccc42eed43eb12742657ed530fbc76123417a78096302f77c0d1f9e23420f +DIST yozai-font-light-0.868.ttf 15229134 BLAKE2B c6603ef39ad15d923266a34eaa6ff5c56c5504a2d378811297fb111d1b6efeb138dab6f020b7b945a3c24e604e03758715fd18f1577da14bcb47cbe5e66d417a SHA512 508b17e54f93782f2fdc60dceb9374298f2c2341b4140562626cdd911e15694b7eff9e364beb9121cc0bfd1f98145836d93baf54873a94b09936065422b73936 +DIST yozai-font-medium-0.868.ttf 15238394 BLAKE2B b0fadd72c736b103add2e7d87c9ca73589ab758761442011a8540cdf4995d9c9a560cba17fd4a2aa21fbf668c0db9c4d9546dc7d0503f84623dfb88ed4c8e4ef SHA512 4be998a47b6fe9f73165ebe9920a9db624e7fecb78c5199def5290d599aa4713c8c7bfc629aa43ca71734096916d75fc19805772fec8bb5d3ad4ba44ee583e99 diff --git a/media-fonts/yozai-font/metadata.xml b/media-fonts/yozai-font/metadata.xml new file mode 100644 index 0000000000..757d43541f --- /dev/null +++ b/media-fonts/yozai-font/metadata.xml @@ -0,0 +1,30 @@ + + + + + vowstar@gmail.com + Huang Rui + + + + lxgw/yozai-font + + + Yozai Font (悠哉字体) is an open-source Chinese font derived from + Y.OzFont. This is a casual, friendly Chinese font suitable for + informal contexts and creative designs. The font includes three + weights: Light, Regular, and Medium, providing flexibility for + various design needs. + + + 悠哉字体是一款衍生于 Y.OzFont 的开源中文字体。这是一款休闲、 + 友好的中文字体,适合非正式场合和创意设计。字体包含三个字重: + Light(细体)、Regular(常规体)和 Medium(中等体),为各种 + 设计需求提供灵活性。 + + + Light weight variant + Regular weight variant + Medium weight variant + + diff --git a/media-fonts/yozai-font/yozai-font-0.868.ebuild b/media-fonts/yozai-font/yozai-font-0.868.ebuild new file mode 100644 index 0000000000..69c7663927 --- /dev/null +++ b/media-fonts/yozai-font/yozai-font-0.868.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit font + +DESCRIPTION="Yozai Font (悠哉字体) - A Chinese font derived from Y.OzFont" +HOMEPAGE="https://github.com/lxgw/yozai-font" +SRC_URI=" + light? ( https://github.com/lxgw/yozai-font/releases/download/v${PV}/Yozai-Light.ttf -> ${PN}-light-${PV}.ttf ) + regular? ( https://github.com/lxgw/yozai-font/releases/download/v${PV}/Yozai-Regular.ttf -> ${P}.ttf ) + medium? ( https://github.com/lxgw/yozai-font/releases/download/v${PV}/Yozai-Medium.ttf -> ${PN}-medium-${PV}.ttf ) +" + +S="${WORKDIR}" +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~loong ~riscv ~x86" + +IUSE="light +regular medium" + +FONT_SUFFIX="ttf" + +src_unpack() { + use light && cp -v "${DISTDIR}/${PN}-light-${PV}.ttf" "Yozai-Light.ttf" + use regular && cp -v "${DISTDIR}/${P}.ttf" "Yozai-Regular.ttf" + use medium && cp -v "${DISTDIR}/${PN}-medium-${PV}.ttf" "Yozai-Medium.ttf" +}