LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-ttfquery.spec of Package python-ttfquery (Project home:pashov_d)

Name:           python-ttfquery
Version:        1.0.4
Release:        0
Url:            http://ttfquery.sourceforge.net/
Summary:        FontTools-based package for querying system fonts
License:        BSD-style, see license.txt for details
Group:          Development/Libraries/Python
Source:         TTFQuery-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel, fonttools
Provides:       TTFQuery = %{version}


%description
TTFQuery builds on the FontTools package to allow the Python programmer to accomplish a number of tasks:

    * query the system to find installed fonts
    * retrieve metadata about any TTF font file (even those not yet
      installed)
          o abstract family type
          o proper font name
          o glyph outlines
    * build simple metadata registries for run-time font matching

With these functionalities, it is possible to readily
create OpenGL solid-text rendering libraries which
can accept abstract font-family names as font specifiers
and deliver platform-specific TTF files to match those libraries.

TTFQuery doesn't provide rendering services, but a sample
implementation can be found in the OpenGLContext project, from
which TTFQuery was refactored.

%prep
%setup -q -n TTFQuery-%{version}

%build

%install
python setup.py install --root="%{buildroot}" --prefix="%{_prefix}"

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root)
%doc license.txt
%{py_prefix}/lib/python%{py_ver}/*

%changelog