!1 Package init

Merge pull request !1 from gnaygnil/master
This commit is contained in:
openeuler-ci-bot 2020-02-14 17:46:50 +08:00 committed by Gitee
commit c00c092b17
8 changed files with 199 additions and 75 deletions

View File

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Synthesize Windows Browallia with scaled-down Garuda -->
<match target="pattern">
<test qual="any" name="family" compare="contains">
<string>Browallia</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Garuda</string>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Garuda</string>
</test>
<test target="pattern" qual="any" name="family" compare="contains">
<string>Browallia</string>
</test>
<edit name="matrix" mode="assign">
<matrix>
<double>0.68</double>
<double>0</double>
<double>0</double>
<double>0.68</double>
</matrix>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Synthesize Windows Angsana with scaled-down Kinnari -->
<match target="pattern">
<test qual="any" name="family" compare="contains">
<string>Angsana</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Kinnari</string>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Kinnari</string>
</test>
<test target="pattern" qual="any" name="family" compare="contains">
<string>Angsana</string>
</test>
<edit name="matrix" mode="assign">
<matrix>
<double>0.67</double>
<double>0</double>
<double>0</double>
<double>0.67</double>
</matrix>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Synthesize TH Sarabun with scaled-down Laksaman -->
<match target="pattern">
<test qual="any" name="family" compare="contains">
<string>TH Sarabun</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Laksaman</string>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Laksaman</string>
</test>
<test target="pattern" qual="any" name="family" compare="contains">
<string>TH Sarabun</string>
</test>
<edit name="matrix" mode="assign">
<matrix>
<double>0.66</double>
<double>0</double>
<double>0</double>
<double>0.66</double>
</matrix>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Synthesize Windows Cordia with scaled-down Umpush -->
<match target="pattern">
<test qual="any" name="family" compare="contains">
<string>Cordia</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Umpush</string>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Umpush</string>
</test>
<test target="pattern" qual="any" name="family" compare="contains">
<string>Cordia</string>
</test>
<edit name="matrix" mode="assign">
<matrix>
<double>0.65</double>
<double>0</double>
<double>0</double>
<double>0.65</double>
</matrix>
</edit>
</match>
</fontconfig>

View File

@ -1,36 +0,0 @@
# thai-scalable-fonts
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### 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/)

View File

@ -1,39 +0,0 @@
# thai-scalable-fonts
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
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. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
fonts-tlwg-0.6.5.tar.xz Normal file

Binary file not shown.

83
thai-scalable-fonts.spec Normal file
View File

@ -0,0 +1,83 @@
%global fontconf 90-thai-scalable-synthetic
Name: thai-scalable-fonts
Version: 0.6.5
Release: 5
Summary: Thai TrueType fonts
License: GPLv2+ and Bitstream Vera
URL: http://linux.thai.net/projects/thaifonts-scalable
Source0: http://linux.thai.net/pub/ThaiLinux/software/fonts-tlwg/fonts-tlwg-%{version}.tar.xz
Source1: %{fontconf}-garuda.conf
Source2: %{fontconf}-kinnari.conf
Source3: %{fontconf}-umpush.conf
Source4: %{fontconf}-laksaman.conf
BuildArch: noarch
BuildRequires: fontforge >= 20071110 fontpackages-devel
%description
Thai scalable fonts included here are:
- Kinnari, Garuda and Norasi from the National Font project
- DB Thai Text from DearBook
- TlwgMono, PseudoMono, Purisa by TLWG
%package common
Summary: Common files of %{name}
Requires: fontpackages-filesystem
Provides: thai-scalable-garuda-fonts thai-scalable-kinnari-fonts thai-scalable-loma-fonts thai-scalable-norasi-fonts thai-scalable-purisa-fonts
Obsoletes: thai-scalable-garuda-fonts thai-scalable-kinnari-fonts thai-scalable-loma-fonts thai-scalable-norasi-fonts thai-scalable-purisa-fonts
Provides: thai-scalable-sawasdee-fonts thai-scalable-tlwgmono-fonts thai-scalable-tlwgtypewriter-fonts thai-scalable-tlwgtypist-fonts
Obsoletes: thai-scalable-sawasdee-fonts thai-scalable-tlwgmono-fonts thai-scalable-tlwgtypewriter-fonts thai-scalable-tlwgtypist-fonts
Provides: thai-scalable-tlwgtypo-fonts thai-scalable-umpush-fonts thai-scalable-laksaman-fonts thai-scalable-waree-fonts
Obsoletes: thai-scalable-tlwgtypo-fonts thai-scalable-umpush-fonts thai-scalable-laksaman-fonts thai-scalable-waree-fonts
%description common
This package consists of files used by other %{name} packages.
%prep
%autosetup -n fonts-tlwg-%{version} -p1
%build
%configure --with-ttfdir=%{_fontdir} --enable-ttf
%make_build
%install
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
%make_install
rm %{buildroot}%{_datadir}/fontconfig/conf.avail/64-15-laksaman.conf
rm %{buildroot}%{_datadir}/fontconfig/conf.avail/64-*-tlwg*.conf
rm %{buildroot}%{_datadir}/fontconfig/conf.avail/89-tlwg*-synthetic.conf
install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconf}-garuda.conf
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconf}-kinnari.conf
install -m 0644 -p %{SOURCE3} %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconf}-umpush.conf
install -m 0644 -p %{SOURCE4} %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconf}-laksaman.conf
for fconf in %{fontconf}-garuda.conf \
%{fontconf}-kinnari.conf \
%{fontconf}-umpush.conf \
%{fontconf}-laksaman.conf ; do
ln -s %{_datadir}/fontconfig/conf.avail/$fconf \
%{buildroot}%{_sysconfdir}/fonts/conf.d/$fconf
done
install -d 0755 -p %{buildroot}%{_datadir}/fonts/thai-scalable/
install -m 0644 -p tlwg/*.ttf %{buildroot}%{_datadir}/fonts/thai-scalable/
install -m 0644 -p nectec/*.ttf %{buildroot}%{_datadir}/fonts/thai-scalable/
install -m 0644 -p nf/*.ttf %{buildroot}%{_datadir}/fonts/thai-scalable/
rm -rf %{buildroot}%{_datadir}/fonts/thai-scalable-fonts/
%files
%defattr(-,root,root)
%doc AUTHORS README NEWS
%license COPYING
%files common
%defattr(-,root,root)
%{_sysconfdir}/fonts/conf.d/*.conf
%{_datadir}/fonts/thai-scalable/*
%{_datadir}/fontconfig/conf.avail/*.conf
%changelog
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 0.6.5-5
- Package init