1 Summary: A library for character- and string-glyphs from Adobe Type 1 fonts.
7 Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
8 URL: http://www.windowmaker.org/
9 BuildRoot: /tmp/%{name}-%{version}-root
12 t1lib is a library distributed under the GNU General Public Library License
13 for generating character- and string-glyphs from Adobe Type 1 fonts under
14 UNIX. t1lib uses most of the code of the X11 rasterizer donated by IBM to
15 the X11-project. But some disadvantages of the rasterizer being included in
16 X11 have been eliminated. Here are some of the features:
18 - t1lib is completely independent of X11 (although the program provided for
19 testing the library needs X11)
21 - fonts are made known to library by means of a font database file at
24 - searchpaths for all types of input files are configured by means of a
25 configuration file at runtime
27 - characters are rastered as they are needed
29 - characters and complete strings may be rastered by a simple function
32 - when rastering strings, pairwise kerning information from .afm-files
33 may optionally be taken into account
35 - an interface to ligature-information of afm-files is provided
37 - a program to generate afm-files from Type 1 font files is included
39 - rotation is supported at any angles
41 - there's support for extending and slanting fonts
43 - underlining, overlining and overstriking is supported
45 - new encoding vectors may be loaded at runtime and fonts may be
46 reencoded using these encoding vectors
48 - antialiasing is implemented using three gray-levels between black and
51 - An interactive test program called "xglyph" is included in the
52 distribution. This program allows to test all of the features of the
53 library. It requires X11.
56 Summary: Development files for t1lib
57 Group: Development/Libraries
58 Requires: %{name} = %{version}
61 The files needed for developing applications using t1lib.
64 Summary: Static library for t1lib
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{version}
69 The files needed for developing applications using t1lib.
72 %setup -n T1-%{version}
76 CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr
80 if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi
81 mkdir -p $RPM_BUILD_ROOT/usr/{lib,share,bin,include}
82 make prefix=$RPM_BUILD_ROOT/usr install
84 cp -fr Fonts/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
86 CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr --with-static-lib
89 gzip -9nf Changes README.%{name}-%{version} doc/*
95 %defattr(644,root,root,755)
96 %doc {Changes,README.%{name}-%{version},doc/*}.gz
97 %attr(755,root,root) %{_bindir}/*
98 %attr(755,root,root) %{_libdir}/*.so.*
99 %dir %{_datadir}/%{name}-%{version}
100 %dir %{_datadir}/%{name}-%{version}/enc
101 %dir %{_datadir}/%{name}-%{version}/afm
102 %dir %{_datadir}/%{name}-%{version}/type1
103 %dir %{_datadir}/%{name}-%{version}/doc
104 %config %{_datadir}/%{name}-%{version}/t1lib.config
105 %{_datadir}/%{name}-%{version}/enc/*
106 %{_datadir}/%{name}-%{version}/afm/*
107 %{_datadir}/%{name}-%{version}/type1/*
108 %doc %{_datadir}/%{name}-%{version}/doc/*
115 %defattr(644,root,root,755)