diff --git a/90-thai-scalable-synthetic-garuda.conf b/90-thai-scalable-synthetic-garuda.conf new file mode 100644 index 0000000..170ccf9 --- /dev/null +++ b/90-thai-scalable-synthetic-garuda.conf @@ -0,0 +1,29 @@ + + + + + + + Browallia + + + Garuda + + + + + Garuda + + + Browallia + + + + 0.68 + 0 + 0 + 0.68 + + + + diff --git a/90-thai-scalable-synthetic-kinnari.conf b/90-thai-scalable-synthetic-kinnari.conf new file mode 100644 index 0000000..aae85c7 --- /dev/null +++ b/90-thai-scalable-synthetic-kinnari.conf @@ -0,0 +1,29 @@ + + + + + + + Angsana + + + Kinnari + + + + + Kinnari + + + Angsana + + + + 0.67 + 0 + 0 + 0.67 + + + + diff --git a/90-thai-scalable-synthetic-laksaman.conf b/90-thai-scalable-synthetic-laksaman.conf new file mode 100644 index 0000000..0b17b51 --- /dev/null +++ b/90-thai-scalable-synthetic-laksaman.conf @@ -0,0 +1,29 @@ + + + + + + + TH Sarabun + + + Laksaman + + + + + Laksaman + + + TH Sarabun + + + + 0.66 + 0 + 0 + 0.66 + + + + diff --git a/90-thai-scalable-synthetic-umpush.conf b/90-thai-scalable-synthetic-umpush.conf new file mode 100644 index 0000000..1cef3f4 --- /dev/null +++ b/90-thai-scalable-synthetic-umpush.conf @@ -0,0 +1,29 @@ + + + + + + + Cordia + + + Umpush + + + + + Umpush + + + Cordia + + + + 0.65 + 0 + 0 + 0.65 + + + + diff --git a/README.en.md b/README.en.md deleted file mode 100644 index cb7c33c..0000000 --- a/README.en.md +++ /dev/null @@ -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/) diff --git a/README.md b/README.md deleted file mode 100644 index a61bd0f..0000000 --- a/README.md +++ /dev/null @@ -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/) diff --git a/fonts-tlwg-0.6.5.tar.xz b/fonts-tlwg-0.6.5.tar.xz new file mode 100644 index 0000000..e1ad29e Binary files /dev/null and b/fonts-tlwg-0.6.5.tar.xz differ diff --git a/thai-scalable-fonts.spec b/thai-scalable-fonts.spec new file mode 100644 index 0000000..68a9cac --- /dev/null +++ b/thai-scalable-fonts.spec @@ -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 - 0.6.5-5 +- Package init