commit
1e0461c46d
60
65-0-khmeros-base.conf
Normal file
60
65-0-khmeros-base.conf
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Content</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS System</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Content</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS System</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
24
65-0-khmeros-battambang.conf
Normal file
24
65-0-khmeros-battambang.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Battambang</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Battambang</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
24
65-0-khmeros-bokor.conf
Normal file
24
65-0-khmeros-bokor.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Bokor</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Bokor</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
41
65-0-khmeros-handwritten.conf
Normal file
41
65-0-khmeros-handwritten.conf
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Fasthand</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Freehand</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Fasthand</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Freehand</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
24
65-0-khmeros-metal-chrieng.conf
Normal file
24
65-0-khmeros-metal-chrieng.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Metal Chrieng</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Metal Chrieng</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
60
65-0-khmeros-muol.conf
Normal file
60
65-0-khmeros-muol.conf
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Muol</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Muol Pali</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Muol Light</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Muol</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Muol Pali</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Muol Light</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
24
65-0-khmeros-siemreap.conf
Normal file
24
65-0-khmeros-siemreap.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Khmer OS Siemreap</family>
|
||||||
|
<default>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Locale-specific overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang" compare="contains">
|
||||||
|
<string>km</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Khmer OS Siemreap</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
BIN
All_KhmerOS_5.0.zip
Normal file
BIN
All_KhmerOS_5.0.zip
Normal file
Binary file not shown.
17
License.txt
Normal file
17
License.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
KhmerOS - font for the Khmer language of Cambodia
|
||||||
|
Copyright 2007 Danh Hong
|
||||||
|
|
||||||
|
This font is free software; you can redistribute it and/or modify it under the
|
||||||
|
terms of the GNU Lesser General Public License as published by the Free
|
||||||
|
Software Foundation; either version 2.1 of the License, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE.? See the GNU Lesser General Public License for
|
||||||
|
more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public License along
|
||||||
|
with this font; if not, write to the Free Software Foundation, Inc., 51
|
||||||
|
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or
|
||||||
|
visit http://www.gnu.org/licenses/lgpl.html
|
||||||
17
khmeros-base.metainfo.xml
Normal file
17
khmeros-base.metainfo.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-base</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Khmer OS</name>
|
||||||
|
<summary>A set of Cambodian fonts</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent
|
||||||
|
sizes for Khmer and English alphabets, so that when texts mix both it is not
|
||||||
|
necessary to have different point sizes for the text in each language.
|
||||||
|
They were created by Danh Hong of the Cambodian Open Institute.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
<updatecontact>psatpute_at_redhat_dot_com</updatecontact>
|
||||||
|
<url type="homepage">http://www.khmeros.info/</url>
|
||||||
|
</component>
|
||||||
6
khmeros-battambang.metainfo.xml
Normal file
6
khmeros-battambang.metainfo.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-battambang</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>khmeros-base</extends>
|
||||||
|
</component>
|
||||||
6
khmeros-bokor.metainfo.xml
Normal file
6
khmeros-bokor.metainfo.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-bokor</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>khmeros-base</extends>
|
||||||
|
</component>
|
||||||
90
khmeros-fonts.spec
Normal file
90
khmeros-fonts.spec
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
%global fontname khmeros
|
||||||
|
%global conf_prefix 65-0-%{fontname}
|
||||||
|
|
||||||
|
Name: %{fontname}-fonts
|
||||||
|
Version: 5.0
|
||||||
|
Release: 27
|
||||||
|
Summary: Khmer font set.
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://www.khmeros.info/en/fonts
|
||||||
|
|
||||||
|
Source0: All_KhmerOS_5.0.zip
|
||||||
|
Source1: %{conf_prefix}-battambang.conf
|
||||||
|
Source2: %{conf_prefix}-bokor.conf
|
||||||
|
Source3: %{conf_prefix}-handwritten.conf
|
||||||
|
Source4: %{conf_prefix}-base.conf
|
||||||
|
Source5: %{conf_prefix}-metal-chrieng.conf
|
||||||
|
Source6: %{conf_prefix}-muol.conf
|
||||||
|
Source7: %{conf_prefix}-siemreap.conf
|
||||||
|
Source8: License.txt
|
||||||
|
Source9: %{fontname}-base.metainfo.xml
|
||||||
|
Source10: %{fontname}-battambang.metainfo.xml
|
||||||
|
Source11: %{fontname}-bokor.metainfo.xml
|
||||||
|
Source12: %{fontname}-handwritten.metainfo.xml
|
||||||
|
Source13: %{fontname}-metal-chrieng.metainfo.xml
|
||||||
|
Source14: %{fontname}-muol.metainfo.xml
|
||||||
|
Source15: %{fontname}-siemreap.metainfo.xml
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: fontpackages-devel
|
||||||
|
Requires: fontpackages-filesystem
|
||||||
|
|
||||||
|
%description
|
||||||
|
All font include Khmer and Latin alphabets, and they have equivalent sizes for
|
||||||
|
Khmer and English alphabets, so that when texts mix both it is not necessary to
|
||||||
|
have different size points of the text for each language. This makes
|
||||||
|
localization possible.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n All_KhmerOS_5.0 -p1
|
||||||
|
install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
||||||
|
install -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} .
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mv 'KhmerOS .ttf' KhmerOS.ttf
|
||||||
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
||||||
|
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
|
||||||
|
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}
|
||||||
|
|
||||||
|
for conffile in *.conf ; do
|
||||||
|
install -m 0644 -p $conffile %{buildroot}%{_fontconfig_templatedir}/${conffile}
|
||||||
|
ln -s %{_fontconfig_templatedir}/$conffile \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}/$conffile
|
||||||
|
done
|
||||||
|
|
||||||
|
install -Dm 0644 -p %{SOURCE9} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE10} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE11} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE12} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE13} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE14} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-muol.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE15} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license License.txt
|
||||||
|
%{_datadir}/appdata/%{fontname}-base.metainfo.xml
|
||||||
|
%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml
|
||||||
|
%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml
|
||||||
|
%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml
|
||||||
|
%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml
|
||||||
|
%{_datadir}/appdata/%{fontname}-muol.metainfo.xml
|
||||||
|
%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml
|
||||||
|
%{_fontconfig_confdir}/*.conf
|
||||||
|
%{_fontconfig_templatedir}/*.conf
|
||||||
|
%{_fontdir}/*.ttf
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Nov 30 2019 jiaxiya <jiaxiyajiaxiya@163.com> - 5.0-27
|
||||||
|
- Package init
|
||||||
6
khmeros-handwritten.metainfo.xml
Normal file
6
khmeros-handwritten.metainfo.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-handwritten</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>khmeros-base</extends>
|
||||||
|
</component>
|
||||||
6
khmeros-metal-chrieng.metainfo.xml
Normal file
6
khmeros-metal-chrieng.metainfo.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-metal-chrieng</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>khmeros-base</extends>
|
||||||
|
</component>
|
||||||
6
khmeros-muol.metainfo.xml
Normal file
6
khmeros-muol.metainfo.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-muol</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>khmeros-base</extends>
|
||||||
|
</component>
|
||||||
6
khmeros-siemreap.metainfo.xml
Normal file
6
khmeros-siemreap.metainfo.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="font">
|
||||||
|
<id>khmeros-siemreap</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>khmeros-base</extends>
|
||||||
|
</component>
|
||||||
Loading…
x
Reference in New Issue
Block a user