diff --git a/README.md b/README.md index 9cb2f6d..4336f90 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # cjkuni-uming-fonts-ttf +CJK Unifonts are Unicode TrueType fonts derived from original fonts made available by Arphic Technology under "Arphic Public License" and extended by the CJK Unifonts project. + diff --git a/chinese-fonts-ttf-0.2.20080216.1-enable_symbol_antialiasing.patch b/chinese-fonts-ttf-0.2.20080216.1-enable_symbol_antialiasing.patch new file mode 100644 index 0000000..7901f8f --- /dev/null +++ b/chinese-fonts-ttf-0.2.20080216.1-enable_symbol_antialiasing.patch @@ -0,0 +1,12 @@ +diff -Nru chinese-fonts-ttf-0.2.20080216.1.orig/25-ttf-arphic-uming-bitmaps.conf chinese-fonts-ttf-0.2.20080216.1/25-ttf-arphic-uming-bitmaps.conf +--- chinese-fonts-ttf-0.2.20080216.1.orig/25-ttf-arphic-uming-bitmaps.conf 2008-02-19 07:27:06.000000000 +0100 ++++ chinese-fonts-ttf-0.2.20080216.1/25-ttf-arphic-uming-bitmaps.conf 2009-09-09 16:17:06.465739868 +0200 +@@ -9,7 +9,7 @@ + AR PL UMing TW + AR PL UMing TW MBE + +- false ++ true + true + false + diff --git a/cjkuni-uming-fonts-ttf-0.2.20080216.1-libfontconfig-2.10.patch b/cjkuni-uming-fonts-ttf-0.2.20080216.1-libfontconfig-2.10.patch new file mode 100644 index 0000000..f5f5001 --- /dev/null +++ b/cjkuni-uming-fonts-ttf-0.2.20080216.1-libfontconfig-2.10.patch @@ -0,0 +1,112 @@ +diff -Nru cjkuni-uming-fonts-ttf-0.2.20080216.1.orig/25-ttf-arphic-uming-bitmaps.conf cjkuni-uming-fonts-ttf-0.2.20080216.1/25-ttf-arphic-uming-bitmaps.conf +--- cjkuni-uming-fonts-ttf-0.2.20080216.1.orig/25-ttf-arphic-uming-bitmaps.conf 2013-02-08 12:03:13.039314426 +0100 ++++ cjkuni-uming-fonts-ttf-0.2.20080216.1/25-ttf-arphic-uming-bitmaps.conf 2013-02-08 12:04:49.563289427 +0100 +@@ -4,10 +4,16 @@ + + + +- AR PL UMing CN +- AR PL UMing HK +- AR PL UMing TW +- AR PL UMing TW MBE ++ AR PL UMing CN ++ ++ ++ AR PL UMing HK ++ ++ ++ AR PL UMing TW ++ ++ ++ AR PL UMing TW MBE + + true + true +@@ -16,10 +22,16 @@ + + + +- AR PL UMing CN +- AR PL UMing HK +- AR PL UMing TW +- AR PL UMing TW MBE ++ AR PL UMing CN ++ ++ ++ AR PL UMing HK ++ ++ ++ AR PL UMing TW ++ ++ ++ AR PL UMing TW MBE + + 17 + true +diff -Nru cjkuni-uming-fonts-ttf-0.2.20080216.1.orig/41-ttf-arphic-uming.conf cjkuni-uming-fonts-ttf-0.2.20080216.1/41-ttf-arphic-uming.conf +--- cjkuni-uming-fonts-ttf-0.2.20080216.1.orig/41-ttf-arphic-uming.conf 2008-02-19 07:26:39.000000000 +0100 ++++ cjkuni-uming-fonts-ttf-0.2.20080216.1/41-ttf-arphic-uming.conf 2013-02-08 12:04:38.331408620 +0100 +@@ -6,36 +6,42 @@ + Serif faces + --> + +- AR PL ShanHeiSun Uni +- AR PL ShanHeiSun Uni MBE +- AR PL UMing CN +- AR PL UMing HK +- AR PL UMing TW +- AR PL UMing TW MBE +- serif ++ serif ++ ++ AR PL ShanHeiSun Uni ++ AR PL ShanHeiSun Uni MBE ++ AR PL UMing CN ++ AR PL UMing HK ++ AR PL UMing TW ++ AR PL UMing TW MBE ++ + + + +- AR PL ShanHeiSun Uni +- AR PL ShanHeiSun Uni MBE +- AR PL UMing CN +- AR PL UMing HK +- AR PL UMing TW +- AR PL UMing TW MBE +- sans-serif ++ sans-serif ++ ++ AR PL ShanHeiSun Uni ++ AR PL ShanHeiSun Uni MBE ++ AR PL UMing CN ++ AR PL UMing HK ++ AR PL UMing TW ++ AR PL UMing TW MBE ++ + + + +- AR PL ShanHeiSun Uni +- AR PL ShanHeiSun Uni MBE +- AR PL UMing CN +- AR PL UMing HK +- AR PL UMing TW +- AR PL UMing TW MBE +- monospace ++ monospace ++ ++ AR PL ShanHeiSun Uni ++ AR PL ShanHeiSun Uni MBE ++ AR PL UMing CN ++ AR PL UMing HK ++ AR PL UMing TW ++ AR PL UMing TW MBE ++ + + diff --git a/cjkuni-uming-fonts-ttf.spec b/cjkuni-uming-fonts-ttf.spec new file mode 100644 index 0000000..2152838 --- /dev/null +++ b/cjkuni-uming-fonts-ttf.spec @@ -0,0 +1,115 @@ +# openkdj default directory ... or create a new fontconfig.properties.src... fontconfig.%{vendor}.properties.src +%define fontdir %{_datadir}/fonts/chinese/TrueType +Name: cjkuni-uming-fonts-ttf +Version: 0.2.20080216.1 +Release: 6mamba +Summary: Chinese Unicode TrueType font in Ming face +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.freedesktop.org/wiki/Software/CJKUnifonts +Source0: http://ftp.de.debian.org/debian/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_%{version}.orig.tar.gz +Source1: cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming.conf +Source2: cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-render.conf +Source3: cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-embolden.conf +Patch0: chinese-fonts-ttf-0.2.20080216.1-enable_symbol_antialiasing.patch +Patch1: cjkuni-uming-fonts-ttf-0.2.20080216.1-libfontconfig-2.10.patch +License: Arphic Public License +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +#BuildRequires: ttmkfdir +#BuildRequires: mkfontdir +Obsoletes: chinese-fonts-ttf +Provides: chinese-fonts-ttf +Provides: cjkuni-uming-ttf-fonts +Obsoletes: cjkuni-uming-ttf-fonts +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +CJK Unifonts are Unicode TrueType fonts derived from original fonts made available by Arphic Technology under "Arphic Public License" and extended by the CJK Unifonts project. + +%prep +%setup -q -c %{name}-%{version} +%patch0 -p1 +%patch1 -p1 + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d %{buildroot}%{fontdir} %{buildroot}%{_sysconfdir}/fonts/{conf.d,conf.avail} + +install -m0644 *.ttc %{buildroot}%{fontdir}/ + +#( +# cd %{buildroot}%{fontdir} +# ln -sf uming.ttc uming.ttf +#) + +install -m0644 *.conf %{buildroot}%{_sysconfdir}/fonts/conf.avail/ + +pushd %{buildroot}%{_sysconfdir}/fonts/conf.avail + for f in *.conf; do + ln -s ../conf.avail/$f ../conf.d/$f + done +popd + +# don't install configuration which sets this font as default for serif, sans-serif and monospace +rm -f %{buildroot}%{_sysconfdir}/fonts/conf.d/41-ttf-arphic-uming.conf + +install -m0644 fonts.dir %{buildroot}%{fontdir}/ +install -m0644 fonts.scale %{buildroot}%{fontdir}/ + +#ttmkfdir -d %{buildroot}%{fontdir} -o %{buildroot}%{fontdir}/fonts.scale +#mkfontdir %{buildroot}%{fontdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache %{_datadir}/fonts +fi +: + +%postun +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache %{_datadir}/fonts + fi +fi +: + +%files +%defattr(-,root,root) +%{_sysconfdir}/fonts/conf.avail/*arphic-uming*.conf +%{_sysconfdir}/fonts/conf.d/*arphic-uming*.conf +%dir %{fontdir} +%{fontdir}/uming.* +%{fontdir}/fonts.dir +%{fontdir}/fonts.scale +%doc license +#%doc CONTRIBUTERS FONTLOG Font_Comparison_ShanHeiSun_UMing.* +#%doc INSTALL KNOWN_ISSUES NEWS README* TODO license + +%changelog +* Fri Feb 08 2013 Silvan Calarco 0.2.20080216.1-6mamba +- don't install fontconfig file which makes this font default for serif,sans-serif and monospace + +* Fri Feb 08 2013 Silvan Calarco 0.2.20080216.1-5mamba +- added patch to fix warnings with fontconfig >= 2.10 + +* Mon Mar 28 2011 Silvan Calarco 0.2.20080216.1-4mamba +- rename from cjkuni-uming-ttf-fonts to cjkuni-uming-fonts-ttf + +* Mon Feb 21 2011 gil 0.2.20080216.1-3mamba +- rebuilt + +* Wed Feb 16 2011 gil 0.2.20080216.1-2mamba +- obsoletes chinese-fonts-ttf +- apply chinese-fonts-ttf-0.2.20080216.1-enable_symbol_antialiasing.patch + +* Mon Jan 24 2011 gil 0.2.20080216.1-1mamba +- package created by autospec diff --git a/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-embolden.conf b/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-embolden.conf new file mode 100644 index 0000000..30b1999 --- /dev/null +++ b/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-embolden.conf @@ -0,0 +1,21 @@ + + + + + + + AR PL UMing + + + + 100 + + + 180 + + + true + + + + diff --git a/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-render.conf b/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-render.conf new file mode 100644 index 0000000..7f36729 --- /dev/null +++ b/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming-render.conf @@ -0,0 +1,12 @@ + + + + + + AR PL UMing + + false + 90 + false + + \ No newline at end of file diff --git a/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming.conf b/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming.conf new file mode 100644 index 0000000..ea40b40 --- /dev/null +++ b/cjkuni-uming-ttf-fonts-0.2.20080216.1-arphic-uming.conf @@ -0,0 +1,81 @@ + + + + + + zh-hk + zh-tw + + + serif + + + AR PL UMing TW + AR PL UMing HK + + + + AR PL UMing TW + + serif + + + + AR PL UMing HK + + serif + + + + + + zh-hk + zh-tw + + + sans-serif + + + AR PL UMing TW + AR PL UMing HK + + + + AR PL UMing TW + + sans-serif + + + + AR PL UMing HK + + sans-serif + + + + + + zh-hk + zh-tw + + + monospace + + + AR PL UMing TW + AR PL UMing HK + + + + AR PL UMing TW + + monospace + + + + AR PL UMing HK + + monospace + + +