diff --git a/README.md b/README.md index 3013c5e..d7e244e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # sazanami-fonts +The Sazanami type faces are automatically generated from Wadalab font kit. +They also contains some embedded Japanese bitmap fonts. + +This package contains Japanese TrueType font for Gothic and Mincho type face. + diff --git a/sazanami-fonts-20040629-fonts.alias b/sazanami-fonts-20040629-fonts.alias new file mode 100644 index 0000000..447b4bc --- /dev/null +++ b/sazanami-fonts-20040629-fonts.alias @@ -0,0 +1,12 @@ +-sazanami-helvetica-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0" +-sazanami-helvetica-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0" +-sazanami-fixed-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0" +-sazanami-fixed-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0" +-sazanami-gothic-medium-r-normal--0-0-0-0-c-0-iso8859-1 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-iso8859-1" +-sazanami-gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0" +-sazanami-gothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0 "-misc-sazanami gothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0" +-sazanami-times-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 "-misc-sazanami mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0" +-sazanami-times-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0 "-misc-sazanami mincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0" +-sazanami-mincho-medium-r-normal--0-0-0-0-c-0-iso8859-1 "-misc-sazanami mincho-medium-r-normal--0-0-0-0-c-0-iso8859-1" +-sazanami-mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0 "-misc-sazanami mincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0" +-sazanami-mincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0 "-misc-sazanami mincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0" \ No newline at end of file diff --git a/sazanami-fonts-20040629-uni7E6B-gothic.patch b/sazanami-fonts-20040629-uni7E6B-gothic.patch new file mode 100644 index 0000000..54d8cbe --- /dev/null +++ b/sazanami-fonts-20040629-uni7E6B-gothic.patch @@ -0,0 +1,347 @@ +--- sazanami-gothic.ttx.orig 2009-09-30 09:12:32.000000000 +0100 ++++ sazanami-gothic.ttx 2009-09-30 09:15:28.000000000 +0100 +@@ -851447,168 +851447,199 @@ + + + +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ + + + +- +- + ++ ++ + + + +- +- + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +- +- + ++ ++ + + + +- +- + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ + + + diff --git a/sazanami-fonts-20040629-uni7E6B-mincho.patch b/sazanami-fonts-20040629-uni7E6B-mincho.patch new file mode 100644 index 0000000..f13ba37 --- /dev/null +++ b/sazanami-fonts-20040629-uni7E6B-mincho.patch @@ -0,0 +1,416 @@ +--- sazanami-mincho.ttx.orig 2009-09-30 15:56:13.000000000 +0100 ++++ sazanami-mincho.ttx 2009-10-01 10:47:28.000000000 +0100 +@@ -1429085,15 +1429085,149 @@ + + + +- ++ + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -1429135,144 +1429269,11 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + + + +- + + + +@@ -1429303,16 +1429304,16 @@ + + + +- ++ + + + + +- ++ + + + +- ++ + + + +@@ -1429331,7 +1429332,7 @@ + + + +- ++ + + + +@@ -1429340,7 +1429341,7 @@ + + + +- ++ + + + +@@ -1429349,7 +1429350,7 @@ + + + +- ++ + + + +@@ -1429358,7 +1429359,7 @@ + + + +- ++ + + + +@@ -1429371,6 +1429372,54 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/sazanami-fonts-20040629-uni8449-mincho.patch b/sazanami-fonts-20040629-uni8449-mincho.patch new file mode 100644 index 0000000..48ccb33 --- /dev/null +++ b/sazanami-fonts-20040629-uni8449-mincho.patch @@ -0,0 +1,398 @@ +--- sazanami-mincho.ttx.orig 2010-06-23 12:31:16.303516122 +0900 ++++ sazanami-mincho.ttx 2010-06-23 12:29:57.373246172 +0900 +@@ -1572354,199 +1572037,214 @@ + + + +- +- +- +- +- +- +- +- +- +- +- ++ + +- +- +- +- +- +- +- ++ ++ ++ ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + ++ ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/sazanami-fonts.spec b/sazanami-fonts.spec new file mode 100644 index 0000000..00fefee --- /dev/null +++ b/sazanami-fonts.spec @@ -0,0 +1,107 @@ +# openkdj default directory ... or create a new fontconfig.properties.src... fontconfig.%{vendor}.properties.src +%define fontdir %{_datadir}/fonts/japanese/TrueType/ +Name: sazanami-fonts +Version: 20040629 +Release: 2mamba +Summary: Sazanami Japanese TrueType fonts +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://sourceforge.jp/projects/efont/ +Source0: http://globalbase.dl.sourceforge.jp/efont/10087/sazanami-%{version}.tar.bz2 +Source1: sazanami-fonts-20040629-fonts.alias +Source2: sazanami-gothic-fontconfig-1.conf +Source3: sazanami-mincho-fontconfig-1.conf +Patch0: sazanami-fonts-20040629-uni7E6B-gothic.patch +Patch1: sazanami-fonts-20040629-uni7E6B-mincho.patch +Patch2: sazanami-fonts-20040629-uni8449-mincho.patch +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: /usr/bin/fonttools +BuildRequires: mkfontdir +BuildRequires: ttmkfdir + +%description +The Sazanami type faces are automatically generated from Wadalab font kit. +They also contains some embedded Japanese bitmap fonts. + +This package contains Japanese TrueType font for Gothic and Mincho type face. + +%prep +%setup -q -n sazanami-%{version} + +ttx -i -a -e sazanami-gothic.ttf +patch -b -z .uni7E6B sazanami-gothic.ttx %{PATCH0} +touch -r sazanami-gothic.ttf sazanami-gothic.ttx +rm sazanami-gothic.ttf +ttx -b sazanami-gothic.ttx +touch -r sazanami-gothic.ttx sazanami-gothic.ttf + +ttx -i -a -e sazanami-mincho.ttf +patch -b -z .uni7E6B sazanami-mincho.ttx %{PATCH1} +patch -b -z .uni8449 sazanami-mincho.ttx %{PATCH2} +touch -r sazanami-mincho.ttf sazanami-mincho.ttx +rm sazanami-mincho.ttf +ttx -b sazanami-mincho.ttx +touch -r sazanami-mincho.ttx sazanami-mincho.ttf + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d %{buildroot}%{fontdir} %{buildroot}%{_sysconfdir}/fonts/{conf.d,conf.avail} + +install -m0644 sazanami-gothic.ttf %{buildroot}%{fontdir}/ +install -m0644 sazanami-mincho.ttf %{buildroot}%{fontdir}/ + +install -m0644 %{SOURCE1} %{buildroot}%{fontdir}/fonts.alias +install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-4-sazanami-gothic.conf +install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-4-sazanami-mincho.conf + +pushd %{buildroot}%{_sysconfdir}/fonts/conf.avail + for f in *.conf; do + ln -s ../conf.avail/$f ../conf.d/$f + done +popd + +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/*-sazanami-*.conf +%{_sysconfdir}/fonts/conf.d/*-sazanami-*.conf +%dir %{fontdir} +%{fontdir}/sazanami-*.ttf +%verify(not md5 size mtime) %{fontdir}/fonts.alias +%verify(not md5 size mtime) %{fontdir}/fonts.dir +%verify(not md5 size mtime) %{fontdir}/fonts.scale +%doc doc +#README + +%changelog +* Fri Feb 08 2013 Silvan Calarco 20040629-2mamba +- updated fontconfig configuration files for fontconfig >= 2.10 + +* Mon Jan 24 2011 gil 20040629-1mamba +- package created by autospec diff --git a/sazanami-gothic-fontconfig-1.conf b/sazanami-gothic-fontconfig-1.conf new file mode 100644 index 0000000..81bab0a --- /dev/null +++ b/sazanami-gothic-fontconfig-1.conf @@ -0,0 +1,25 @@ + + + + + + ja-jp + + + ja + + + sans-serif + + + Sazanami Gothic + + + + + Sazanami Gothic + + sans-serif + + + diff --git a/sazanami-mincho-fontconfig-1.conf b/sazanami-mincho-fontconfig-1.conf new file mode 100644 index 0000000..8811531 --- /dev/null +++ b/sazanami-mincho-fontconfig-1.conf @@ -0,0 +1,25 @@ + + + + + + ja-jp + + + ja + + + serif + + + Sazanami Mincho + + + + + Sazanami Mincho + + serif + + +