!2 Init package
From: @misaka00251 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
91828641f5
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# oldstandard-sfd-fonts
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
Old Standard True-Type Fonts
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# oldstandard-sfd-fonts
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
Old Standard True-Type Fonts
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
||||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
oldstand-manual.pdf
Normal file
BIN
oldstand-manual.pdf
Normal file
Binary file not shown.
BIN
oldstandard-2.0.2.src.zip
Normal file
BIN
oldstandard-2.0.2.src.zip
Normal file
Binary file not shown.
34
oldstandard-sfd-fonts-fontconfig.conf
Normal file
34
oldstandard-sfd-fonts-fontconfig.conf
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<match target="font">
|
||||||
|
<test name="family">
|
||||||
|
<string>Old Standard</string>
|
||||||
|
</test>
|
||||||
|
</match>
|
||||||
|
<match target="pattern">
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
</match>
|
||||||
|
<alias binding="same">
|
||||||
|
<family>Old Standard</family>
|
||||||
|
<accept>
|
||||||
|
<family>Old Standard TTF</family>
|
||||||
|
</accept>
|
||||||
|
</alias>
|
||||||
|
<alias binding="same">
|
||||||
|
<family>Old Standard</family>
|
||||||
|
<accept>
|
||||||
|
<family>Old Standard SFD</family>
|
||||||
|
</accept>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Old Standard SFD</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
81
oldstandard-sfd-fonts.spec
Normal file
81
oldstandard-sfd-fonts.spec
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
%global fontname oldstandard
|
||||||
|
%global fontconf 60-%{fontname}.conf
|
||||||
|
|
||||||
|
Name: %{fontname}-sfd-fonts
|
||||||
|
Version: 2.0.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Old Standard True-Type Fonts
|
||||||
|
|
||||||
|
License: OFL-1.1
|
||||||
|
URL: https://fontlibrary.org/en/font/old-standard
|
||||||
|
Source0: http://www.thessalonica.org.ru/downloads/oldstandard-2.0.2.src.zip
|
||||||
|
# This is used to generate the fontconfig configuration file, thanks to Ankur Sinha.
|
||||||
|
# https://src.fedoraproject.org/rpms/oldstandard-sfd-fonts/raw/main/f/oldstandard-sfd-fonts-fontconfig.conf
|
||||||
|
Source1: %{name}-fontconfig.conf
|
||||||
|
Source2: http://www.thessalonica.org.ru/downloads/oldstand-manual.pdf
|
||||||
|
# This is for appstream, thanks to Parag Nemade.
|
||||||
|
# https://src.fedoraproject.org/rpms/oldstandard-sfd-fonts/raw/main/f/oldstandard.metainfo.xml
|
||||||
|
Source3: %{fontname}.metainfo.xml
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: fontforge,fontpackages-devel
|
||||||
|
Requires: fontpackages-filesystem
|
||||||
|
|
||||||
|
%description
|
||||||
|
The Old Standard font family is an attempt to revive
|
||||||
|
a specific type of Modern (classicist) style of serif
|
||||||
|
typefaces, very commonly used in various editions
|
||||||
|
printed in the late 19th and early 20th century,
|
||||||
|
but almost completely abandoned later.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -n oldstandard-%{version}
|
||||||
|
|
||||||
|
for i in $(ls OldStandard*.sfd);do
|
||||||
|
sed -i -e 's/OldStandardTT/OldStandardSFD/' -e 's/Old \Standard \TT/Old \Standard \SFD/' $i;
|
||||||
|
done
|
||||||
|
for txt in OFL* ; do
|
||||||
|
sed 's/\r//' $txt > $txt.new
|
||||||
|
touch -r $txt $txt.new
|
||||||
|
mv $txt.new $txt
|
||||||
|
done
|
||||||
|
|
||||||
|
install -m 644 -p %{SOURCE2} .
|
||||||
|
|
||||||
|
%build
|
||||||
|
fontforge -lang=ff -script "-" OldStandard*.sfd <<EOF
|
||||||
|
i = 1
|
||||||
|
while ( i < \$argc )
|
||||||
|
Open (\$argv[i], 1)
|
||||||
|
Generate (\$fontname + ".otf")
|
||||||
|
PrintSetup (5)
|
||||||
|
PrintFont (0, 0, "", \$fontname + "-sample.pdf")
|
||||||
|
Close()
|
||||||
|
i++
|
||||||
|
endloop
|
||||||
|
EOF
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -m 755 -d %{buildroot}%{_fontdir}
|
||||||
|
install -m 644 -p *.otf %{buildroot}%{_fontdir}
|
||||||
|
|
||||||
|
install -m 755 -d %{buildroot}%{_fontconfig_templatedir} \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}
|
||||||
|
|
||||||
|
install -m 644 -p %{SOURCE1} \
|
||||||
|
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
||||||
|
|
||||||
|
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||||
|
|
||||||
|
# Add AppStream metadata
|
||||||
|
install -Dm 0644 -p %{SOURCE3} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||||
|
|
||||||
|
%_font_pkg -f %{fontconf} *.otf
|
||||||
|
%doc *.txt *.pdf
|
||||||
|
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Jun 06 2022 misaka00251 <misaka00251@misakanet.cn> - 2.0.2-1
|
||||||
|
- Init package (Thanks to fedora team)
|
||||||
19
oldstandard.metainfo.xml
Normal file
19
oldstandard.metainfo.xml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
|
||||||
|
<component type="font">
|
||||||
|
<id>oldstandard</id>
|
||||||
|
<metadata_license>CC-BY-3.0</metadata_license>
|
||||||
|
<name>Old Standard</name>
|
||||||
|
<summary>Old Standard True-Type Fonts</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
The Old Standard font family is an attempt to revive
|
||||||
|
a specific type of Modern (classicist) style of serif
|
||||||
|
typefaces, very commonly used in various editions
|
||||||
|
printed in the late 19th and early 20th century,
|
||||||
|
but almost completely abandoned later.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
<updatecontact>pnemade_at_redhat_dot_com</updatecontact>
|
||||||
|
<url type="homepage">http://www.thessalonica.org.ru/en/fonts.html</url>
|
||||||
|
</component>
|
||||||
Loading…
x
Reference in New Issue
Block a user