File ttf-wqy-zenhei.spec of Package ttf-wqy-zenhei
#
# spec file for package ttf-wqy-zenhei (Version 0.9.41)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ttf-wqy-zenhei
License: GPL v2.0 (with font embedding exception **), see COPYING for details
Group: System/X11/Fonts
PreReq: %suseconfig_fonts_prereq
AutoReqProv: on
Version: 0.9.41
Release: 1
Url: http://wenq.org
Source0: wqy-zenhei-%{version}-May.tar.bz2
Patch: wqy-zenhei-font-config-fixes.diff
Provides: scalable-font-zh-TW, scalable-font-zh-CN, scalable-font-zh-SG
Provides: locale(zh_TW;zh_CN;zh_SG)
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: open-source Chinese font for Hei Ti
PreReq: fontconfig
%description
The WenQuanYi Zen Hei is the first open-source Chinese font
for Hei Ti, a sans-serif font style that are widely used for
general purpose text formatting, and on-screen
display of Chinese characters (such as in Windows Vista and Mac OS).
Simple and elegant font outlines and slightly emboldened strokes
makes the glyphs presenting higher contrast and therefore easy
to read. The unique style of this font also provide a simple
interface for adding grid-fitting information for further
fine-tuning of the on-screen performance.
WenQuanYi Zen Hei contains arguably the largest number of Chinese
Hanzi glyphs of all known open-source outline Chinese fonts: it has
20194 Hanzi glyphs covering 97% of the Unicode CJK Unified
Ideographics [4]. This font provides full coverage to the required
code points for zh_cn, zh_sg, zh_tw, zh_hk and zh_mo locales. The
total vector glyphs in this font is over 35000 including Latin characters,
Japanese kanas, hanguls and symbols from many other languages.
Highly regarded WenQuanYi Bitmap Song fonts were embedded into this
font for those who prefer shaper look of the text rendering, The
embedded bitmap glyphs cover font sizes at 9pt, 10pt, 11pt
and 12pt.
The primary purpose of developing this font is to provide CJK
(Chinese-Japanese-Korean) users a visually pleasing, standard
compliant, platform independent and compact solution for displaying
and printing Chinese on their computers.
We wish you enjoying the font, and joining us to continuously
improve this font for better performance and wider applications.
%prep
%setup -n wqy-zenhei
%patch -p1
%build
# Do nothing for build
%install
mkdir -p $RPM_BUILD_ROOT/usr/share/fonts/truetype
mkdir -p $RPM_BUILD_ROOT/etc/fonts/conf.avail
mkdir -p $RPM_BUILD_ROOT/etc/fonts/conf.d
install -c -m 644 wqy-zenhei.ttc $RPM_BUILD_ROOT/usr/share/fonts/truetype/
#44- is too early to include in, embeddedbitmap will be enabled later, so move to 57-
install -c -m 644 44-wqy-zenhei.conf $RPM_BUILD_ROOT/etc/fonts/conf.avail/57-wqy-zenhei.conf
install -c -m 644 66-wqy-zenhei-sharp.conf $RPM_BUILD_ROOT/etc/fonts/conf.avail/57-wqy-zenhei-sharp.conf
install -c -m 644 66-wqy-zenhei-sharp-no13px.conf $RPM_BUILD_ROOT/etc/fonts/conf.avail/57-wqy-zenhei-sharp-no13px.conf
cd $RPM_BUILD_ROOT/etc/fonts/conf.d
ln -s ../conf.avail/57-wqy-zenhei.conf
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%post
%run_suseconfig_fonts -c
%postun
%run_suseconfig_fonts -c
%files
%defattr(-, root,root)
%doc ChangeLog INSTALL AUTHORS COPYING README WQY_ZENHEI_MONTHLY_BUILD zenheiset
%dir /usr/share/fonts/truetype
/usr/share/fonts/truetype/wqy-zenhei.ttc
/etc/fonts/conf.avail/57-wqy-zenhei.conf
/etc/fonts/conf.avail/57-wqy-zenhei-sharp.conf
/etc/fonts/conf.avail/57-wqy-zenhei-sharp-no13px.conf
/etc/fonts/conf.d/57-wqy-zenhei.conf
%changelog