Commit a12475ea authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add a bunch of more fonts to the platform

This adds liberation-fonts, gnu-free-fonts, and the
google caladea & carlito fonts. This way we have metric compatible
fonts for the MS core fonts, and a font with a lot of coverage.
parent 762846ea
......@@ -44,7 +44,7 @@ PACKAGES = \
libsecret \
itstool yelp-xsl yelp-tools \
hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts liberation-fonts gnu-free-fonts google-crosextra-caladea-fonts google-crosextra-carlito-fonts \
gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
dconf gvfs desktop-file-utils json-glib libnotify vte mozjs24 gjs \
gstreamer1 python3-cairo pygobject3 \
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Cambria</family>
<accept>
<family>Caladea</family>
</accept>
</alias>
<alias binding="same">
<family>Caladea</family>
<default>
<family>Cambria</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Calibri</family>
<accept>
<family>Carlito</family>
</accept>
</alias>
<alias binding="same">
<family>Carlito</family>
<default>
<family>Calibri</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Caladea</family>
</prefer>
</alias>
<alias>
<family>Caladea</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Carlito</family>
</prefer>
</alias>
<alias>
<family>Carlito</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family>
<prefer>
<family>FreeMono</family>
</prefer>
</alias>
<alias>
<family>FreeMono</family>
<default>
<family>monospace</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>FreeSans</family>
</prefer>
</alias>
<alias>
<family>FreeSans</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<match target="scan">
<test name="family">
<string>FreeSans</string>
</test>
<edit name="lang" mode="assign">
<minus>
<name>lang</name>
<langset>
<string>bho</string>
<string>brx</string>
<string>doi</string>
<string>hi</string>
<string>hne</string>
<string>kok</string>
<string>mai</string>
<string>mr</string>
<string>sa</string>
<string>sat</string>
<string>as</string>
<string>bn</string>
<string>pa</string>
</langset>
</minus>
</edit>
</match>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>FreeSerif</family>
</prefer>
</alias>
<alias>
<family>FreeSerif</family>
<default>
<family>serif</family>
</default>
</alias>
<match target="scan">
<test name="family">
<string>FreeSerif</string>
</test>
<edit name="lang" mode="assign">
<minus>
<name>lang</name>
<langset>
<string>bho</string>
<string>brx</string>
<string>doi</string>
<string>hi</string>
<string>hne</string>
<string>kok</string>
<string>mai</string>
<string>mr</string>
<string>sa</string>
<string>sat</string>
<string>as</string>
<string>bn</string>
<string>pa</string>
</langset>
</minus>
</edit>
</match>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Courier New</family>
<accept>
<family>Liberation Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Liberation Mono</family>
<default>
<family>Courier New</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Liberation Sans Narrow</family>
</prefer>
</alias>
<alias>
<family>Liberation Sans Narrow</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Arial</family>
<accept>
<family>Liberation Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Liberation Sans</family>
<default>
<family>Arial</family>
</default>
</alias>
</fontconfig>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Times New Roman</family>
<accept>
<family>Liberation Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Liberation Serif</family>
<default>
<family>Times New Roman</family>
</default>
</alias>
</fontconfig>
%global fontname dejavu
%global _fontdir %{_datadir}/fonts/%{fontname}
%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
Name: %{fontname}-fonts
Version: 2.34
......@@ -26,17 +29,17 @@ original style, using an open collaborative development process.
%install
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{_datadir}/fonts/dejavu
install -m 0644 -p ttf/*.ttf %{buildroot}%{_datadir}/fonts/dejavu
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p ttf/*.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d \
%{buildroot}%{_datadir}/fontconfig/conf.avail
install -m 0755 -d %{buildroot}%{_fontconfig_confdir} \
%{buildroot}%{_fontconfig_templatedir}
cd fontconfig
for fontconf in *conf ; do
install -m 0644 -p $fontconf %{buildroot}%{_datadir}/fontconfig/conf.avail
ln -s %{_datadir}/fontconfig/conf.avail/$fontconf \
%{buildroot}%{_sysconfdir}/fonts/conf.d/$fontconf
install -m 0644 -p $fontconf %{buildroot}%{_fontconfig_templatedir}
ln -s %{_fontconfig_templatedir}/$fontconf \
%{buildroot}%{_fontconfig_confdir}/$fontconf
done
%clean
......@@ -46,9 +49,9 @@ rm -fr %{buildroot}
%files
%defattr(0644,root,root,0755)
%doc AUTHORS BUGS LICENSE NEWS README
%{_datadir}/fonts/dejavu
%{_datadir}/fontconfig/conf.avail/*
%{_sysconfdir}/fonts/conf.d/*
%{_fontdir}
%{_fontconfig_templatedir}/*
%{_fontconfig_confdir}/*
%changelog
* Thu Nov 13 2014 Alexander Larsson <alexl@redhat.com> - 2.34-1%{?dist}
......
......@@ -13,18 +13,22 @@ BuildRequires: dbus-libs
BuildRequires: dejavu-fonts
BuildRequires: desktop-file-utils
BuildRequires: glib2
BuildRequires: gnu-free-fonts
BuildRequires: gobject-introspection
BuildRequires: google-crosextra-caladea-fonts
BuildRequires: google-crosextra-carlito-fonts
BuildRequires: gstreamer1
BuildRequires: hicolor-icon-theme
BuildRequires: libICE-dev
BuildRequires: libXv
BuildRequires: libXpm
BuildRequires: libXv
BuildRequires: libXxf86vm-dev
BuildRequires: libepoxy-dev
BuildRequires: liberation-fonts
BuildRequires: libproxy
BuildRequires: mesa-libGL
BuildRequires: pulseaudio-libs-dev
BuildRequires: xkeyboard-config-dev
BuildRequires: gobject-introspection
BuildRequires: SDL2
BuildRequires: SDL2_image
BuildRequires: SDL2_net
......@@ -42,7 +46,10 @@ Requires: dejavu-fonts
Requires: desktop-file-utils
Requires: fontconfig
Requires: glib2
Requires: gnu-free-fonts
Requires: gobject-introspection
Requires: google-crosextra-caladea-fonts
Requires: google-crosextra-carlito-fonts
Requires: graphite2
Requires: gstreamer1
Requires: harfbuzz
......@@ -71,6 +78,7 @@ Requires: libXtst
Requires: libXv
Requires: libXxf86vm
Requires: libepoxy
Requires: liberation-fonts
Requires: libproxy
Requires: libwayland-client
Requires: libwayland-cursor
......
%global fontname gnu-free
%global priority 69
%global fontconf %{priority}-%{fontname}
%global _fontdir %{_datadir}/fonts/%{fontname}
%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
Name: %{fontname}-fonts
Version: 20120503
Release: 1%{?dist}
Summary: Free UCS Outline Fonts
# Standard font exception
License: GPLv3+ with exceptions
URL: http://www.gnu.org/software/freefont/
Source0: http://ftp.gnu.org/gnu/freefont/freefont-ttf-%{version}.zip
Source2: %{fontconf}-mono.conf
Source3: %{fontconf}-sans.conf
Source4: %{fontconf}-serif.conf
BuildArch: noarch
BuildRequires: freedesktop-sdk-base
%description
Gnu FreeFont is a free family of scalable outline fonts, suitable for general
use on computers and for desktop publishing. It is Unicode-encoded for
compatibility with all modern operating systems.
Besides a full set of characters for writing systems based on the Latin
alphabet, FreeFont contains large selection of characters from other writing
systems some of which are hard to find elsewhere.
FreeFont also contains a large set of symbol characters, both technical and
decorative. We are especially pleased with the Mathematical Operators range,
with which most of the glyphs used in LaTeX can be displayed.
%prep
%setup -qn freefont-%{version}
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -p -m 644 *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf
install -m 0644 -p %{SOURCE3} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
install -m 0644 -p %{SOURCE4} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf
for fconf in %{fontconf}-mono.conf \
%{fontconf}-sans.conf \
%{fontconf}-serif.conf ; do
ln -s %{_fontconfig_templatedir}/$fconf \
%{buildroot}%{_fontconfig_confdir}/$fconf
done
%files
%doc AUTHORS ChangeLog
%dir %{_fontdir}
%{_fontdir}
%{_fontconfig_templatedir}/*
%{_fontconfig_confdir}/*
%changelog
* Mon Mar 9 2015 Alexander Larsson <alexl@redhat.com> - 20120503-1
- Initial version
%global fontname google-crosextra-caladea
%global fontconf62 62-%{fontname}
%global fontconf30 30-0-%{fontname}
%global _fontdir %{_datadir}/fonts/%{fontname}
%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
%global archivename crosextrafonts-20130214
Name: %{fontname}-fonts
Version: 1.002
Release: 0.5.20130214%{?dist}
Summary: Serif font metric-compatible with Cambria font
# License added in font as "otfinfo -i Caladea-Regular.ttf | grep License"
# also from http://code.google.com/p/chromium/issues/detail?id=280557
License: ASL 2.0
URL: http://code.google.com/p/chromium/issues/detail?id=168879
Source0: http://gsdview.appspot.com/chromeos-localmirror/distfiles/%{archivename}.tar.gz
Source1: 30-0-%{fontname}-fontconfig.conf
Source2: 62-%{fontname}-fontconfig.conf
BuildArch: noarch
BuildRequires: freedesktop-sdk-base
%description
Caladea is metric-compatible with Cambria font. This font is a serif
typeface family based on Lato.
%prep
%setup -q -n %{archivename}
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf
ln -s %{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf30}-fontconfig.conf
ln -s %{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf62}-fontconfig.conf
%files
%dir %{_fontdir}
%{_fontdir}
%{_fontconfig_templatedir}/*
%{_fontconfig_confdir}/*
%changelog
* Mon Mar 9 2015 Alexander Larsson <alexl@redhat.com> - 1.002-0.5.20130214
- Initial version
%global fontname google-crosextra-carlito
%global fontconf62 62-%{fontname}
%global fontconf30 30-0-%{fontname}
%global _fontdir %{_datadir}/fonts/%{fontname}
%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
%global archivename crosextrafonts-carlito-20130920
Name: %{fontname}-fonts
Version: 1.103
Release: 0.3.20130920%{?dist}
Summary: Sans-serif font metric-compatible with Calibri font
License: OFL
URL: http://code.google.com/p/chromium/issues/detail?id=280557
Source0: http://gsdview.appspot.com/chromeos-localmirror/distfiles/%{archivename}.tar.gz
Source1: 30-0-%{fontname}-fontconfig.conf
Source2: 62-%{fontname}-fontconfig.conf
BuildArch: noarch
BuildRequires: freedesktop-sdk-base
%description
Carlito is metric-compatible with Calibri font. Carlito comes in regular, bold,
italic, and bold italic. The family covers Latin-Greek-Cyrillic (not a
complete set, though) with about 2,000 glyphs. It has the same character
coverage as Calibri. This font is sans-serif typeface family based on Lato.
%prep
%setup -q -n %{archivename}
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf
ln -s %{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf30}-fontconfig.conf
ln -s %{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf62}-fontconfig.conf
%files
%dir %{_fontdir}
%{_fontdir}
%{_fontconfig_templatedir}/*
%{_fontconfig_confdir}/*
%changelog
* Mon Mar 9 2015 Alexander Larsson <alexl@redhat.com> - 1.103-0.3.20130920
- Initial version
%global priority 59
%global fontname liberation
%global fontconf %{priority}-%{fontname}
%global archivename %{name}-ttf-%{version}
%global _fontdir %{_datadir}/fonts/%{fontname}
%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
Name: %{fontname}-fonts
Summary: Fonts to replace commonly used Microsoft Windows fonts
Version: 2.00.1
Release: 1%{?dist}
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
# exceptions:
# The first exception is the standard FSF font exception.
# The second exception is an anti-lockdown clause somewhat like the one in
# GPLv3. This license is Free, but GPLv2 and GPLv3 incompatible.
License: Liberation
Group: User Interface/X
URL: http://fedorahosted.org/liberation-fonts/
Source0: https://fedorahosted.org/releases/l/i/liberation-fonts/%{archivename}.tar.gz
Source2: %{name}-mono.conf
Source3: %{name}-sans.conf
Source4: %{name}-serif.conf
Source5: %{name}-narrow.conf
BuildArch: noarch
BuildRequires: freedesktop-sdk-base
%description
The Liberation Fonts are intended to be replacements for the three most
commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier
New.
%files
%doc AUTHORS ChangeLog
%dir %{_fontdir}
%{_fontdir}
%{_fontconfig_templatedir}/*
%{_fontconfig_confdir}/*
%prep
%setup -q -n %{archivename}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
# fonts .ttf
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
# Repeat for every font family
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf
install -m 0644 -p %{SOURCE3} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
install -m 0644 -p %{SOURCE4} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf
install -m 0644 -p %{SOURCE5} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-narrow.conf