Compare commits
10 Commits
b2f9aa7d52
...
30710a3bb2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30710a3bb2 | ||
|
|
c862f931ad | ||
|
|
c749a03f2a | ||
|
|
8282dfc023 | ||
|
|
794a2f507a | ||
|
|
57acc4092b | ||
|
|
f9803405c7 | ||
|
|
d6ea6e707d | ||
|
|
c00c092b17 | ||
|
|
dd720d7b2a |
29
90-thai-scalable-synthetic-garuda.conf
Normal file
29
90-thai-scalable-synthetic-garuda.conf
Normal 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>
|
||||||
29
90-thai-scalable-synthetic-kinnari.conf
Normal file
29
90-thai-scalable-synthetic-kinnari.conf
Normal 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>
|
||||||
29
90-thai-scalable-synthetic-laksaman.conf
Normal file
29
90-thai-scalable-synthetic-laksaman.conf
Normal 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>
|
||||||
29
90-thai-scalable-synthetic-umpush.conf
Normal file
29
90-thai-scalable-synthetic-umpush.conf
Normal 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>
|
||||||
BIN
fonts-tlwg-0.7.3.tar.xz
Normal file
BIN
fonts-tlwg-0.7.3.tar.xz
Normal file
Binary file not shown.
92
thai-scalable-fonts.spec
Normal file
92
thai-scalable-fonts.spec
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
%global fontconf 90-thai-scalable-synthetic
|
||||||
|
|
||||||
|
Name: thai-scalable-fonts
|
||||||
|
Version: 0.7.3
|
||||||
|
Release: 2
|
||||||
|
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 = %{version}-%{release} thai-scalable-kinnari-fonts = %{version}-%{release} thai-scalable-loma-fonts = %{version}-%{release} thai-scalable-norasi-fonts = %{version}-%{release} thai-scalable-purisa-fonts = %{version}-%{release}
|
||||||
|
Obsoletes: thai-scalable-garuda-fonts < %{version}-%{release} thai-scalable-kinnari-fonts < %{version}-%{release} thai-scalable-loma-fonts < %{version}-%{release} thai-scalable-norasi-fonts < %{version}-%{release} thai-scalable-purisa-fonts < %{version}-%{release}
|
||||||
|
Provides: thai-scalable-sawasdee-fonts = %{version}-%{release} thai-scalable-tlwgmono-fonts = %{version}-%{release} thai-scalable-tlwgtypewriter-fonts = %{version}-%{release} thai-scalable-tlwgtypist-fonts = %{version}-%{release}
|
||||||
|
Obsoletes: thai-scalable-sawasdee-fonts < %{version}-%{release} thai-scalable-tlwgmono-fonts < %{version}-%{release} thai-scalable-tlwgtypewriter-fonts < %{version}-%{release} thai-scalable-tlwgtypist-fonts < %{version}-%{release}
|
||||||
|
Provides: thai-scalable-tlwgtypo-fonts = %{version}-%{release} thai-scalable-umpush-fonts = %{version}-%{release} thai-scalable-laksaman-fonts = %{version}-%{release} thai-scalable-waree-fonts = %{version}-%{release}
|
||||||
|
Obsoletes: thai-scalable-tlwgtypo-fonts < %{version}-%{release} thai-scalable-umpush-fonts < %{version}-%{release} thai-scalable-laksaman-fonts < %{version}-%{release} thai-scalable-waree-fonts < %{version}-%{release}
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%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}/fonts/opentype/thai/*
|
||||||
|
%{_datadir}/fontconfig/conf.avail/*.conf
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 01 2024 lingsheng <lingsheng1@h-partners.com> - 0.7.3-2
|
||||||
|
- Delete blank line in description,add version for provides and obsoletes
|
||||||
|
|
||||||
|
* Sat Oct 29 2022 wangkerong <wangkeorng@h-partners.com> - 0.7.3-1
|
||||||
|
- Upgrade to 0.7.3
|
||||||
|
|
||||||
|
* Thu Jul 30 2020 xiaoweiwei <xiaoweiwei5@huawei.com> - 0.7.2-1
|
||||||
|
- upgrade to 0.7.2
|
||||||
|
|
||||||
|
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 0.6.5-5
|
||||||
|
- Package init
|
||||||
4
thai-scalable-fonts.yaml
Normal file
4
thai-scalable-fonts.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: tlwg/fonts-tlwg
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user