Helge Hielscher wrote:

today I read about the Gentum font in a newsgroup. It is located here: http://www.sil.org/~gaultney/gentium/ and the samples look very good.

But the licence may be to strict:

These fonts may not be altered in any way, and can be distributed to others only if the complete font archive remains unchanged and all files are distributed together. They can be placed on web sites or CD-ROMs as long as no cost is charged for their use. They may not be 'bundled' with products for sale without my written permission. The fonts are copyright 2002 Victor Gaultney.


I hope this doesn't breach the group's etiquette, but you are welcome to make use of the following spec:



%define family gentium
%define name fonts-ttf-%{family}
%define fontdir fonts/ttf/%{family}

Summary: TrueType Gentium Fonts
Name: %{name}
Version: 1.0
Release: 2mdk
License: Copyrighted Freeware
Group: User Interface/X
Source: http://www.sil.org/~gaultney/gentium/files/Gentium1.zip
URL: http://www.sil.org/~gaultney/gentium/
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root
BuildPrereq: freetype-tools, unzip
Prereq: chkfontpath, fontconfig

%description
Gentium is a typeface family designed to enable the diverse ethnic
groups around the world who use the Latin script to produce readable,
high-quality publications. It supports a wide range of Latin-based
alphabets and includes glyphs that correspond to all the Latin ranges
of Unicode.

The design is intended to be highly readable, reasonably compact, and visually attractive. The additional 'extended' Latin letters are designed to naturally harmonize with the traditional 26 ones. Diacritics are treated with careful thought and attention to their use. Gentium also supports both ancient and modern Greek, including a number of alternate forms.

%prep
%setup -T -c -n %{name}
/usr/bin/unzip -L %SOURCE0

%build
mv "gentium release 1" fonts
mv "fonts/gentium 1 read me.txt" README
cd fonts
/usr/sbin/ttmkfdir > fonts.dir

%install
rm -rf %{buildroot}
cd fonts
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{fontdir}
cp *.ttf fonts.dir $RPM_BUILD_ROOT%{_datadir}/%{fontdir}

%clean
rm -rf %{buildroot}

%post
if test $1 -eq 1
then
  /usr/sbin/chkfontpath --add %{fontdir}
fi
if test -x /usr/bin/fc-cache
then
  /usr/bin/fc-cache
fi

%preun
if test $1 -eq 0
then
  /usr/sbin/chkfontpath --remove %{fontdir}
fi

%files
%defattr(-,root,root,-)
%doc README
%{_datadir}/%{fontdir}

%changelog




Reply via email to