commit ac98835baf9fb2fb5d7144e7a4e8c5af5e3f24c9 Author: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Fri Mar 29 22:44:51 2024 -0500 Add diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..4846d2e --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1,6 @@ +srpm: + dnf -y install wget + find -type f -executable -exec {} \; + cp -r ./* /builddir/build/SOURCES/ + rpmbuild -bs *.spec + cp -r /builddir/build/SRPMS/* \$(outdir) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f1f2b4c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.src.rpm +*.tar.gz +*.tar.xz +*.zip +.build* +results* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0426de5 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +clean: + fd --no-ignore-vcs --type d results --exec rm -rf + fd --no-ignore-vcs src.rpm --exec rm + fd --no-ignore-vcs zip --exec rm + fd --no-ignore-vcs tar.xz --exec rm + fd --no-ignore-vcs tag.gz --exec rm + fd --no-ignore-vcs --type f --hidden --regex '^\.build' --exec rm +.PHONY: clean diff --git a/README.md b/README.md new file mode 100644 index 0000000..35a4656 --- /dev/null +++ b/README.md @@ -0,0 +1,49 @@ +# Better fonts for Fedora +`fontconfig-font-replacements` provides free substitutions for popular +proprietary fonts from Microsoft and Apple operating systems. + +It makes your web browsing more aesthetically pleasing - you won't be seeing +DejaVu Sans font on every damn webpage. + +#### Subpixel (rgb) antialiasing +Default for Fedora are slight hinting and grayscale antialiasing. +Some people find subpixel antialiasing to look better - others can't stand +color fringing caused by it. If you want to try it for yourself install +`fontconfig-enhanced-defaults` package. You can also enable it manually +in `Gnome Tweaks` or by running following command in terminal: + +`dconf write /org/gnome/settings-daemon/plugins/xsettings/antialiasing "'rgba'"` + +to change back to grayscale (default) antialiasing: + +`dconf write /org/gnome/settings-daemon/plugins/xsettings/antialiasing "'grayscale'"` + + +COPR repository: https://copr.fedorainfracloud.org/coprs/dawid/better_fonts/ + +## Installation instructons + +1. Enable COPR repository: + `sudo dnf copr enable dawid/better_fonts -y` +2. Install packages: + `sudo dnf install fontconfig-font-replacements -y` +3. (Optional) Enable subpixel (rgb) antialiasing: + `sudo dnf install fontconfig-enhanced-defaults -y` +4. Log out and log in again or restart computer to see the effect + +## Screenshots +(probably outdated) + +Before | After +-------|------ +[Default fonts before](http://i.imgur.com/KOP6CDf.png) | [Default fonts after](http://i.imgur.com/RZXwkar.png) +[Facebook before](http://i.imgur.com/D5RJrvH.png) | [Facebook after](http://i.imgur.com/jmT0efu.png) +[Flask before](http://i.imgur.com/nEgNh81.png) | [Flask after](http://i.imgur.com/zKfIUEr.png) +[LWN.net before](http://i.imgur.com/eA9LMz1.png) | [LWN.net after](http://i.imgur.com/Yk6W1fa.png) +[NY Times before](http://i.imgur.com/jK0NqA8.png) | [NY Times after](http://i.imgur.com/kAuUv34.png) +[Reddit before](http://i.imgur.com/br7smlN.png) | [Reddit after](http://i.imgur.com/K23nauA.png) +[Wikipedia before](http://i.imgur.com/GnDv0np.png) | [Wikipedia after](http://i.imgur.com/QFdNfhd.png) + +## Building locally + +Check [build_instructions](build_instructions.md) diff --git a/archivo-black-fonts/archivo-black-fontconfig.conf b/archivo-black-fonts/archivo-black-fontconfig.conf new file mode 100644 index 0000000..b9cb5e2 --- /dev/null +++ b/archivo-black-fonts/archivo-black-fontconfig.conf @@ -0,0 +1,18 @@ + + + + + + Archivo Black + + sans-serif + + + + sans-serif + + Archivo Black + + + + diff --git a/archivo-black-fonts/archivo-black-fonts.spec b/archivo-black-fonts/archivo-black-fonts.spec new file mode 100644 index 0000000..f916219 --- /dev/null +++ b/archivo-black-fonts/archivo-black-fonts.spec @@ -0,0 +1,56 @@ +%global fontname archivo-black +%global fontconf 64-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.001 +Release: 1%{?dist} +Summary: Grotesque sans-serif typeface derived from Chivo. Black style + +Group: User Interface/X +License: OFL +URL: https://omnibus-type.com/ +Source0: https://www.omnibus-type.com/wp-content/uploads/Archivo-Black.zip +Source1: %{fontname}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Archivo from Omnibus-Type is a grotesque sans-serif typeface family +derived from Chivo. Black style. + + +%prep +%setup -q -n Archivo-Black + +%build + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p otf/*.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +cp -p OFL.txt LICENSE +sed -i 's/\r$//' LICENSE + +%_font_pkg -f %{fontconf} *.otf +%license LICENSE + +%changelog +* Fri Oct 30 2020 Dawid Zych 1.001-1 +- Use otf version of the font +- Bump version + +* Wed Jan 11 2017 Dawid Zych 1.0004-2 +- Update fontconfig and it's priority. + +* Thu Jan 05 2017 Dawid Zych 1.0004-1 +- Initial packaging. diff --git a/build_instructions.md b/build_instructions.md new file mode 100644 index 0000000..384124d --- /dev/null +++ b/build_instructions.md @@ -0,0 +1,41 @@ +# Build instructions + +Download source packages: + + spectool -g *.spec + +... or if `get-font-name.sh` script exists: + + ./get-font-name.sh + +Build package locally: + + fedpkg --release f33 mockbuild + +Build in copr: + + copr build repo_name package_name.src.rpm + + +# Useful commands + +Check installed fonts: + + rpm -q --whatrequires fontpackages-filesystem + +Check what font is matched with given name: + + fc-match font-name + +Get font information (provided by texlive-lcdftypetools): + + otfinfo --info fontname.ttf + +Some fonts may not work because of FsType bit + + ttembed -n fontname.ttf # to check + ttembed fontname.ttf # to reset + +# Other resources + +[Creating RPM packages](https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/) diff --git a/courier-prime-fonts/courier-prime-fontconfig.conf b/courier-prime-fonts/courier-prime-fontconfig.conf new file mode 100644 index 0000000..a47ebff --- /dev/null +++ b/courier-prime-fonts/courier-prime-fontconfig.conf @@ -0,0 +1,18 @@ + + + + + + Courier Prime + + monospace + + + + monospace + + Courier Prime + + + + diff --git a/courier-prime-fonts/courier-prime-fonts.spec b/courier-prime-fonts/courier-prime-fonts.spec new file mode 100644 index 0000000..6772df7 --- /dev/null +++ b/courier-prime-fonts/courier-prime-fonts.spec @@ -0,0 +1,59 @@ +%global fontname courier-prime +%global fontconf 61-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.203 +Release: 3%{?dist} +Summary: A free, improved, classical monospaced typeface + +Group: User Interface/X +License: OFL +URL: https://quoteunquoteapps.com/courierprime/ +Source0: https://quoteunquoteapps.com/courierprime/downloads/courier-prime.zip +Source1: %{fontname}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Courier Prime is a TrueType monospaced font designed specifically +for screenplays. It was designed by Alan Dague-Greene for John August +and released by Quote-Unquote Apps under the SIL Open Font License (OFL). + + +%prep +%setup -q -c +cp -p 'Courier Prime'/*.ttf . +cp -p 'Courier Prime'/LICENSE/OFL.txt LICENSE +cp -p 'Courier Prime'/LICENSE/OFL-FAQ.txt LICENSE-FAQ +cp -p 'Courier Prime'/'Read me.txt' . + + +%install +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}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +sed -i 's/\r$//' LICENSE-FAQ + +%_font_pkg -f %{fontconf} *.ttf +%license LICENSE LICENSE-FAQ +%doc "Read me.txt" + +%changelog +* Fri Oct 30 2020 Dawid Zych - 1.203-3 +- Update download link. + +* Wed Jan 11 2017 Dawid Zych - 1.203-2 +- Update fontconfig and it's priority. + +* Thu Jan 05 2017 Dawid Zych - 1.203-1 +- Initial packaging. diff --git a/fontconfig-enhanced-defaults/10_fontconfig-enhanced-defaults.gschema.override b/fontconfig-enhanced-defaults/10_fontconfig-enhanced-defaults.gschema.override new file mode 100644 index 0000000..dc20a23 --- /dev/null +++ b/fontconfig-enhanced-defaults/10_fontconfig-enhanced-defaults.gschema.override @@ -0,0 +1,3 @@ +[org.gnome.settings-daemon.plugins.xsettings] +antialiasing='rgba' +hinting='slight' diff --git a/fontconfig-enhanced-defaults/19-enhanced-defaults.conf b/fontconfig-enhanced-defaults/19-enhanced-defaults.conf new file mode 100644 index 0000000..eb5df53 --- /dev/null +++ b/fontconfig-enhanced-defaults/19-enhanced-defaults.conf @@ -0,0 +1,24 @@ + + + + + + true + + + false + + + true + + + hintslight + + + lcddefault + + + rgb + + + diff --git a/fontconfig-enhanced-defaults/fontconfig-enhanced-defaults.spec b/fontconfig-enhanced-defaults/fontconfig-enhanced-defaults.spec new file mode 100644 index 0000000..c1156bc --- /dev/null +++ b/fontconfig-enhanced-defaults/fontconfig-enhanced-defaults.spec @@ -0,0 +1,68 @@ +Name: fontconfig-enhanced-defaults +Version: 2.0 +Release: 1%{?dist} +Summary: Enables slight hinting and subpixel (rgb) antialiasing + +Group: System Environment/Libraries +License: Public Domain +URL: https://github.com/silenc3r/fedora-better-fonts +Source0: 10_fontconfig-enhanced-defaults.gschema.override +Source1: 19-enhanced-defaults.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem +Requires: freetype + +%description +Font configuration files that enable subpixel rendering. + +%install +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/19-enhanced-defaults.conf +ln -s %{_fontconfig_templatedir}/19-enhanced-defaults.conf \ + %{buildroot}%{_fontconfig_confdir}/19-enhanced-defaults.conf + +ln -s %{_fontconfig_templatedir}/70-no-bitmaps.conf \ + %{buildroot}%{_fontconfig_confdir}/70-no-bitmaps.conf +ln -s %{_fontconfig_templatedir}/10-sub-pixel-rgb.conf \ + %{buildroot}%{_fontconfig_confdir}/10-sub-pixel-rgb.conf +ln -s %{_fontconfig_templatedir}/11-lcdfilter-default.conf \ + %{buildroot}%{_fontconfig_confdir}/11-lcdfilter-default.conf + +install -m 0755 -d %{buildroot}%{_datadir}/glib-2.0/schemas +install -m 0644 -p %{SOURCE0} \ + %{buildroot}%{_datadir}/glib-2.0/schemas/10_org.fontconfig-enhanced-defaults.gschema.override + +%files +%{_fontconfig_templatedir}/* +%{_fontconfig_confdir}/* +%{_datadir}/glib-2.0/schemas/* + +%changelog +* Mon Nov 02 2020 Dawid Zych - 2.0-1 +- Enable the package again + +* Fri Oct 30 2020 Dawid Zych - 1.0-1 +- Make it a dummy package + +* Wed Aug 28 2019 Dawid Zych - 0.4.3 +- Drop support for Fedora < 29 + +* Tue Nov 06 2018 Dawid Zych - 0.4.2 +- Use stock Freetype on Fedora 29 and newer + +* Fri Apr 06 2018 Dawid Zych - 0.4-1 +- Add enhanced-defaults.conf again just in case + +* Thu Jan 18 2018 Dawid Zych - 0.3-1 +- Replace config file with symlinks to fontconfig configuration files + +* Tue Jan 17 2017 Dawid Zych - 0.2-1 +- Fix font rendering in Java apps. + +* Thu Jan 05 2017 Dawid Zych - 0.1-1 +- Initial packaging. diff --git a/fontconfig-font-replacements/36-repl-liberation-fonts.conf b/fontconfig-font-replacements/36-repl-liberation-fonts.conf new file mode 100644 index 0000000..7a7ca73 --- /dev/null +++ b/fontconfig-font-replacements/36-repl-liberation-fonts.conf @@ -0,0 +1,65 @@ + + + + + + + + + + Liberation Mono + + + Cousine + + + + + Liberation Mono + + + Cousine + + + + + + + Liberation Sans + + + Arimo + + + + + Liberation Sans + + + Arimo + + + + + + + Liberation Serif + + + Tinos + + + + + Liberation Serif + + + Tinos + + + + diff --git a/fontconfig-font-replacements/37-repl-global-free.conf b/fontconfig-font-replacements/37-repl-global-free.conf new file mode 100644 index 0000000..18cf2ba --- /dev/null +++ b/fontconfig-font-replacements/37-repl-global-free.conf @@ -0,0 +1,906 @@ + + + + + + + + + + Arial + + + Arimo + Liberation Sans + + + + + Arial + + + Arimo + Liberation Sans + + + + + + + Arial Black + + + Archivo Black + + + + + Arial Black + + + Archivo Black + + + + + + + Arial Narrow + + + Liberation Sans Narrow + Nimbus Sans Narrow + + + + + Arial Narrow + + + Liberation Sans Narrow + Nimbus Sans Narrow + + + + + + + Baskerville + + + Libre Baskerville + + + + + Baskerville + + + Libre Baskerville + + + + + + + Calibri + + + Carlito + + + + + Calibri + + + Carlito + + + + + + + Cambria + + + Caladea + + + + + Cambria + + + Caladea + + + + + + + Candara + + + Linux Biolinum O + Linux Biolinum T + Linux Biolinum + + + + + Candara + + + Linux Biolinum O + Linux Biolinum T + Linux Biolinum + + + + + + + Comic Sans MS + + + Komika Text + Signika + Comic Relief + + + + + Comic Sans MS + + + Komika Text + Signika + Comic Relief + + + + + + + Consolas + + + Fira Mono + Cousine + Noto Mono + + + + + Consolas + + + Fira Mono + Cousine + Noto Mono + + + + + + + Constantia + + + Merriweather + + + + + Constantia + + + Merriweather + + + + + + + Corbel + + + Merriweather Sans + + + + + Corbel + + + Merriweather Sans + + + + + + + Courier + + + Courier Prime + TeX Gyre Cursor + Nimbus Mono + + + + + Courier + + + Courier Prime + TeX Gyre Cursor + Nimbus Mono + + + + + + Courier New + + + Courier Prime + TeX Gyre Cursor + Nimbus Mono + + + + + Courier New + + + Courier Prime + TeX Gyre Cursor + Nimbus Mono + + + + + + Courier 10 Pitch + + + Courier Prime + TeX Gyre Cursor + Nimbus Mono + + + + + Courier 10 Pitch + + + Courier Prime + TeX Gyre Cursor + Nimbus Mono + + + + + + + Garamond + + + Cormorant Garamond + + + + + Garamond + + + Cormorant Garamond + + + + + + Adobe Garamond Pro + + + Cormorant Garamond + + + + + Adobe Garamond Pro + + + Cormorant Garamond + + + + + + ITC Garamond + + + Cormorant Garamond + + + + + ITC Garamond + + + Cormorant Garamond + + + + + + Stempel Garamond + + + Cormorant Garamond + + + + + Stempel Garamond + + + Cormorant Garamond + + + + + + @font-face:Garamond Classic FS + + + Cormorant Garamond + + + + + @font-face:Garamond Classic FS + + + Cormorant Garamond + + + + + + + Geneva + + + Noto Sans + + + + + Geneva + + + Noto Sans + + + + + + + Georgia + + + Gelasio + + + + + Georgia + + + Gelasio + + + + + + + Gill Sans + + + Lato + Cabin + Noto Sans + + + + + Gill Sans + + + Lato + Cabin + Noto Sans + + + + + + Gill Sans MT + + + Lato + Cabin + Noto Sans + + + + + Gill Sans MT + + + Lato + Cabin + Noto Sans + + + + + + + Helvetica + + + Arimo + Liberation Sans + TeX Gyre Heros + Nimbus Sans + + + + + Helvetica + + + Arimo + Liberation Sans + TeX Gyre Heros + Nimbus Sans + + + + + + + Helvetica Condensed + + + Liberation Sans Narrow + TeX Gyre Heros Cn + Nimbus Sans Narrow + + + + + Helvetica Condensed + + + Liberation Sans Narrow + TeX Gyre Heros Cn + Nimbus Sans Narrow + + + + + + + Helvetica Neue + + + Source Sans Pro + Noto Sans + Open Sans + Arimo + + + + + Helvetica Neue + + + Source Sans Pro + Noto Sans + Open Sans + Arimo + + + + + + + Impact + + + Passion One + + + + + Impact + + + Passion One + + + + + + + Lucida Console + + + Fira Mono + Cousine + + + + + Lucida Console + + + Fira Mono + Cousine + + + + + + + Lucida + + + Source Sans Pro + Noto Sans + + + + + Lucida + + + Source Sans Pro + Noto Sans + + + + + + Lucida Grande + + + Source Sans Pro + Noto Sans + + + + + Lucida Grande + + + Source Sans Pro + Noto Sans + + + + + + Lucida Sans + + + Source Sans Pro + Noto Sans + + + + + Lucida Sans + + + Source Sans Pro + Noto Sans + + + + + + Lucida Sans T OT + + + Source Sans Pro + Noto Sans + + + + + Lucida Sans T OT + + + Source Sans Pro + Noto Sans + + + + + + Lucida Sans Unicode + + + Source Sans Pro + Noto Sans + + + + + Lucida Sans Unicode + + + Source Sans Pro + Noto Sans + + + + + + + Menlo + + + Cousine + Noto Mono + + + + + Menlo + + + Cousine + Noto Mono + + + + + + + Symbol + + + Open Symbol + Symbola + + + + + Symbol + + + Open Symbol + Symbola + + + + + + + Tahoma + + + Roboto + + + + + Tahoma + + + Roboto + + + + + + + Times + + + Tinos + Liberation Serif + TeX Gyre Termes + Nimbus Roman + + + + + Times + + + Tinos + Liberation Serif + TeX Gyre Termes + Nimbus Roman + + + + + + Times New Roman + + + Tinos + Liberation Serif + TeX Gyre Termes + Nimbus Roman + + + + + Times New Roman + + + Tinos + Liberation Serif + TeX Gyre Termes + Nimbus Roman + + + + + + + Trebuchet MS + + + Fira Sans + + + + + Trebuchet MS + + + Fira Sans + + + + + + Trebuchet + + + Fira Sans + + + + + Trebuchet + + + Fira Sans + + + + + + + Verdana + + + Noto Sans + Open Sans + DejaVu Sans + + + + + Verdana + + + Noto Sans + Open Sans + DejaVu Sans + + + + + + + Wingdings + + + Open Symbol + Symbola + + + + + Wingdings + + + Open Symbol + Symbola + + + + + + + Bitstream Vera Sans + + + DejaVu Sans + + + + + Bitstream Vera Sans + + + DejaVu Sans + + + + + + Bitstream Vera Serif + + + DejaVu Serif + + + + + Bitstream Vera Serif + + + DejaVu Serif + + + + + + Bitstream Vera Sans Mono + + + DejaVu Sans Mono + + + + + Bitstream Vera Sans Mono + + + DejaVu Sans Mono + + + + + + + Andale Mono + + + Cousine + + + + + Andale Mono + + + Cousine + + + + diff --git a/fontconfig-font-replacements/52-latin-free.conf b/fontconfig-font-replacements/52-latin-free.conf new file mode 100644 index 0000000..a9c15bb --- /dev/null +++ b/fontconfig-font-replacements/52-latin-free.conf @@ -0,0 +1,58 @@ + + + + + + + + + serif + + Noto Serif + DejaVu Serif + Tinos + Liberation Serif + Nimbus Roman + + + + + sans-serif + + Noto Sans + Arimo + Liberation Sans + DejaVu Sans + Nimbus Sans + Open Sans + + + + + monospace + + Cousine + DejaVu Sans Mono + Noto Mono + Nimbus Mono + Liberation Mono + Courier + + + + + fantasy + + Passion One + + + + + cursive + + Komika Sans + Signika + + + + diff --git a/fontconfig-font-replacements/66-aliases-wine-free.conf b/fontconfig-font-replacements/66-aliases-wine-free.conf new file mode 100644 index 0000000..ce58225 --- /dev/null +++ b/fontconfig-font-replacements/66-aliases-wine-free.conf @@ -0,0 +1,46 @@ + + + + + + + + + System + + Source Sans Pro + + + Source Sans Pro + + + + MS Shell Dlg + + Source Sans Pro + + + Source Sans Pro + + + + MS Shell Dlg 2 + + Source Sans Pro + + + Source Sans Pro + + + + MS Sans Serif + + Source Sans Pro + + + Source Sans Pro + + + + diff --git a/fontconfig-font-replacements/fontconfig-font-replacements.spec b/fontconfig-font-replacements/fontconfig-font-replacements.spec new file mode 100644 index 0000000..7204d58 --- /dev/null +++ b/fontconfig-font-replacements/fontconfig-font-replacements.spec @@ -0,0 +1,116 @@ +Name: fontconfig-font-replacements +Version: 0.6 +Release: 2%{?dist} +Summary: Font replacement rules for popular proprietary fonts. + +Group: System Environment/Libraries +License: MIT +URL: https://github.com/silenc3r/fedora-better-fonts +Source0: 36-repl-liberation-fonts.conf +Source1: 37-repl-global-free.conf +Source2: 52-latin-free.conf +Source3: 66-aliases-wine-free.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: adobe-source-code-pro-fonts +Requires: archivo-black-fonts +Requires: catharsis-cormorant-garamond-fonts +Requires: courier-prime-fonts +Requires: fontpackages-filesystem +Requires: gelasio-fonts +Requires: google-croscore-arimo-fonts +Requires: google-croscore-cousine-fonts +Requires: google-croscore-tinos-fonts +Requires: google-crosextra-caladea-fonts +Requires: google-crosextra-carlito-fonts +Requires: google-noto-sans-fonts +Requires: google-noto-serif-fonts +Requires: google-roboto-fonts +Requires: komika-text-fonts +Requires: lato-fonts +Requires: libre-baskerville-fonts +Requires: libreoffice-opensymbol-fonts +Requires: linux-libertine-biolinum-fonts +Requires: mozilla-fira-mono-fonts +Requires: mozilla-fira-sans-fonts +Requires: open-sans-fonts +Requires: passion-one-fonts +Requires: sorkintype-merriweather-fonts +Requires: sorkintype-merriweather-sans-fonts + +%description +Font replacement rules for popular proprietary fonts. This includes +Microsoft TrueType Core Fonts, Microsoft ClearType Font Collection and +some others. +Based on Bohoomil's fontconfig ultimate. + +%prep + +%build + +%install +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE0} \ + %{buildroot}%{_fontconfig_templatedir}/36-repl-liberation-fonts.conf +ln -s %{_fontconfig_templatedir}/36-repl-liberation-fonts.conf \ + %{buildroot}%{_fontconfig_confdir}/36-repl-liberation-fonts.conf +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/37-repl-global-free.conf +ln -s %{_fontconfig_templatedir}/37-repl-global-free.conf \ + %{buildroot}%{_fontconfig_confdir}/37-repl-global-free.conf +install -m 0644 -p %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/52-latin-free.conf +ln -s %{_fontconfig_templatedir}/52-latin-free.conf \ + %{buildroot}%{_fontconfig_confdir}/52-latin-free.conf +install -m 0644 -p %{SOURCE3} \ + %{buildroot}%{_fontconfig_templatedir}/66-aliases-wine-free.conf +ln -s %{_fontconfig_templatedir}/66-aliases-wine-free.conf \ + %{buildroot}%{_fontconfig_confdir}/66-aliases-wine-free.conf + +%files +%{_fontconfig_confdir}/* +%{_fontconfig_templatedir}/* + +%changelog +* Mon Nov 02 2020 Dawid Zych - 0.6-2 +- Add Open Sans as requirement + +* Fri Oct 30 2020 Dawid Zych - 0.6-1 +- Use Merriweather fonts from Fedora repo +- Replace EB Garamond with Cormorant Garamond + +* Wed Aug 28 2019 Dawid Zych - 0.5-2 +- Remove liberation-narrow-fonts from Fedora 30+ + +* Fri Apr 13 2018 Dawid Zych - 0.5-1 +- Remove some less common Lucida variants substitutions +- Substitute Lucida Console with Fira Mono +- Substitute Lucida Sans fonts with Source Code Pro +- Substitute Consolas with Fira Mono +- Substitute Helvetica Neue with Source Code Pro +- Substitute Menlo with Cousine +- Substitute Wingdings with Open Symbol +- Substitute Comic Sans MS with Komika Text + +* Thu Apr 12 2018 Dawid Zych - 0.4-2 +- Update version + +* Thu Apr 12 2018 Dawid Zych - 0.4-1 +- Replace SymbolNeu with Open Symbol +- Fix package versioning + +* Fri Apr 05 2018 Dawid Zych - 0.1-1 +- Replace cabin with lato + +* Wed Jan 11 2017 Dawid Zych - 0.003-1 +- Update font replacement rules + +* Wed Jan 11 2017 Dawid Zych - 0.002-1 +- Set monospace font to Source Code Pro +- Add fantasy and cursive default fonts + +* Thu Jan 05 2017 Dawid Zych - 0.001-1 +- Initial packaging. diff --git a/gelasio-fonts/gelasio-fontconfig.conf b/gelasio-fonts/gelasio-fontconfig.conf new file mode 100644 index 0000000..b9a7c69 --- /dev/null +++ b/gelasio-fonts/gelasio-fontconfig.conf @@ -0,0 +1,18 @@ + + + + + + Gelasio + + serif + + + + serif + + Gelasio + + + + diff --git a/gelasio-fonts/gelasio-fonts.spec b/gelasio-fonts/gelasio-fonts.spec new file mode 100644 index 0000000..24a4e03 --- /dev/null +++ b/gelasio-fonts/gelasio-fonts.spec @@ -0,0 +1,59 @@ +%global fontname gelasio +%global fontconf 62-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.006 +Release: 1%{?dist} +Summary: Gelasio serif family by Eben Sorkin + +Group: User Interface/X +License: OFL +URL: https://github.com/SorkinType/Gelasio +Source0: %{name}-%{version}.tar.xz +Source1: %{fontname}-fontconfig.conf +Source2: get-%{fontname}.sh + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Gelasio is designed to be metrics compatible with Georgia. Gelasio is +a "Reale" or Transitional design with many style cues coming from the +period immediately after the Romain du Roi type was introduced. Despite +sharing common letter widths the texture and feeling of the two typefaces +are different. Georgia is warmer and friendlier while Gelasio is cooler +and more formal. + +%prep +%setup -q + +%build + +%install +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}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +mv OFL.txt LICENSE +sed -i 's/\r$//' LICENSE + +%_font_pkg -f %{fontconf} *.ttf +%license LICENSE + +%changelog +* Fri Oct 30 2020 Dawid Zych - 1.006-1 +- Download font from Google Fonts + +* Wed Jan 11 2017 Dawid Zych - 1.0-2 +- Update fontconfig and it's priority. + +* Thu Jan 05 2017 Dawid Zych - 1.0-1 +- Initial packaging. diff --git a/gelasio-fonts/get-gelasio.sh b/gelasio-fonts/get-gelasio.sh new file mode 100755 index 0000000..a6253b9 --- /dev/null +++ b/gelasio-fonts/get-gelasio.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Get upstream zip and make source tar.gz + +ARCHIVE="gelasio-fonts-1.006" +TMPDIR=$(mktemp -d --tmpdir=/var/tmp getgelasio-XXXXXXXXXX) +[ $? != 0 ] && exit 1 +umask 022 +pushd "$TMPDIR" + +wget -N -O $ARCHIVE.zip "https://fonts.google.com/download?family=Gelasio" +unzip $ARCHIVE.zip -d $ARCHIVE +tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE + +popd +mv "$TMPDIR/$ARCHIVE.tar.xz" . +rm -fr "$TMPDIR" diff --git a/impallari-libre-baskerville-fonts/61-impallari-libre-baskerville-fonts.conf b/impallari-libre-baskerville-fonts/61-impallari-libre-baskerville-fonts.conf new file mode 100644 index 0000000..203161e --- /dev/null +++ b/impallari-libre-baskerville-fonts/61-impallari-libre-baskerville-fonts.conf @@ -0,0 +1,17 @@ + + + + + + serif + + Libre Baskerville + + + + Libre Baskerville + + serif + + + diff --git a/impallari-libre-baskerville-fonts/impallari-libre-baskerville-fonts.spec b/impallari-libre-baskerville-fonts/impallari-libre-baskerville-fonts.spec new file mode 100644 index 0000000..13bc9f0 --- /dev/null +++ b/impallari-libre-baskerville-fonts/impallari-libre-baskerville-fonts.spec @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: MIT +%global forgeurl https://github.com/impallari/Libre-Baskerville +%global commit 2fba7c8e0a8f53f86efd3d81bc4c63674b0c613f +%forgemeta + +Version: 1.000 +Release: 1%{?dist} +URL: %{forgeurl} + +%global foundry Impallari +%global fontlicense OFL +%global fontlicenses OFL.txt +%global fontdocs *txt *md +%global fontdocsex %{fontlicenses} + +%global fontfamily Libre Baskerville +%global fontsummary Libre Baskerville is a webfont family optimized for body text +%global fonts *ttf +%global fontconfs %{SOURCE10} +%global fontpkgheader %{expand: +Provides: libre-baskerville-fonts +Obsoletes: libre-baskerville-fonts < 2 +} +%global fontdescription %{expand: +Libre Baskerville is a webfont family optimized for body text. It is +Based on 1941 ATF Baskerville Specimens but it has a taller x-height, +wider counters and less contrast that allow it to work on small sizes in +any screen. + +Libre Baskerville characters set covers 103 Latin languages.} +Source0: %{forgesource} +Source10: 61-%{fontpkgname}.conf + +%fontpkg + +%prep +%forgesetup +%linuxtext *.txt + +%build +%fontbuild + +%install +%fontinstall + +%check +%fontcheck + +%fontfiles + +%defattr(644, root, root, 0755) +%license OFL.txt + +%changelog +* Mon Nov 02 2020 Dawid Zych - 1.000-1 +- Initial packaging diff --git a/itf-kalam-fonts/61-itf-kalam-fonts.conf b/itf-kalam-fonts/61-itf-kalam-fonts.conf new file mode 100644 index 0000000..97bdd65 --- /dev/null +++ b/itf-kalam-fonts/61-itf-kalam-fonts.conf @@ -0,0 +1,17 @@ + + + + + + cursive + + Kalam + + + + Kalam + + cursive + + + diff --git a/itf-kalam-fonts/itf-kalam-fonts.spec b/itf-kalam-fonts/itf-kalam-fonts.spec new file mode 100644 index 0000000..d3c3e4a --- /dev/null +++ b/itf-kalam-fonts/itf-kalam-fonts.spec @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: MIT +%global forgeurl https://github.com/itfoundry/kalam +%global commit 03a4d8a33849b1ad9afdee95006bc66d2d4aed94 +%forgemeta + +Version: 2.001 +Release: 1%{?dist} +URL: %{forgeurl} + +%global foundry ITF +%global fontlicense OFL +%global fontdocs *md + +%global fontfamily Kalam +%global fontsummary Kalam is a handwriting-style typeface supporting the Devanagari and Latin scripts +%global fonts build/*otf +%global fontconfs %{SOURCE10} +%global fontdescription %{expand: +Kalam is a handwriting font family that supports the Devanagari and +Latin writing systems. Even though Kalam's letterforms derive from +handwriting, the fonts have each been optimized for text usage on +screen. All in all, the typeface is a design that feels very personal. +Like many informal handwriting-style fonts, it appears rather fresh and +new when seen on screen or printed on the page. + +Kalam's letterforms feature a very steep slant from the top right to the +bottom left. They are similar to letters used in everyday handwriting, +and look like they might have been written with either a thin felt-tip +pen, or a ball-point pen. In the Devanagari letterforms, the +knotted-terminals are open, but some other counter forms are closed. +Features like these strengthen the feeling that text set in this +typeface has been written very quickly, in a rapid manner.} + +Source0: %{forgesource} +Source10: 61-%{fontpkgname}.conf + +%fontpkg + +%package doc +Summary: Optional documentation files of %{name} +BuildArch: noarch +%description doc +This package provides optional documentation files shippend with +%{name}. + +%prep +%forgesetup + +%build +%fontbuild + +%install +%fontinstall + +%check +%fontcheck + +%fontfiles + +%files doc +%defattr(644, root, root, 0755) + +%changelog +* Mon Nov 02 2020 Dawid Zych - 2.001-1 +- Initial packaging diff --git a/komika-text-fonts/komika-text-fontconfig.conf b/komika-text-fonts/komika-text-fontconfig.conf new file mode 100644 index 0000000..70fe9e3 --- /dev/null +++ b/komika-text-fonts/komika-text-fontconfig.conf @@ -0,0 +1,12 @@ + + + + + + Komika Text + + cursive + + + + diff --git a/komika-text-fonts/komika-text-fonts.spec b/komika-text-fonts/komika-text-fonts.spec new file mode 100644 index 0000000..459bf31 --- /dev/null +++ b/komika-text-fonts/komika-text-fonts.spec @@ -0,0 +1,43 @@ +%global fontname komika-text +%global fontconf 61-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 2.0 +Release: 1%{?dist} +Summary: Casual typeface similar to Comic Sans MS. +Group: User Interface/X +License: custom +URL: https://www.fontsquirrel.com/fonts/Komika-Text +Source0: https://www.fontsquirrel.com/fonts/download/Komika-Text +Source1: %{fontname}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Casual typeface similar to Comic Sans MS. + +%prep +%setup -q -c + +%build + +%install +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}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +%_font_pkg -f %{fontconf} *.ttf +%license "Apostrophic Labs License.txt" + +%changelog +* Fri Apr 13 2018 Dawid Zych - 2.0-1 +- Initial packaging. diff --git a/libre-baskerville-fonts/get-libre-baskerville.sh b/libre-baskerville-fonts/get-libre-baskerville.sh new file mode 100755 index 0000000..1369333 --- /dev/null +++ b/libre-baskerville-fonts/get-libre-baskerville.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Get upstream zip and make source tar.gz + +ARCHIVE="libre-baskerville-fonts-1.0" +TMPDIR=$(mktemp -d --tmpdir=/var/tmp getlibrebaskerville-XXXXXXXXXX) +[ $? != 0 ] && exit 1 +umask 022 +pushd "$TMPDIR" + +wget -N -O $ARCHIVE.zip https://fonts.google.com/download?family=Libre%20Baskerville +unzip $ARCHIVE.zip -d $ARCHIVE +tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE + +popd +mv "$TMPDIR/$ARCHIVE.tar.xz" . +rm -fr "$TMPDIR" diff --git a/libre-baskerville-fonts/libre-baskerville-fontconfig.conf b/libre-baskerville-fonts/libre-baskerville-fontconfig.conf new file mode 100644 index 0000000..197423c --- /dev/null +++ b/libre-baskerville-fonts/libre-baskerville-fontconfig.conf @@ -0,0 +1,18 @@ + + + + + + Libre Baskerville + + serif + + + + serif + + Libre Baskerville + + + + diff --git a/libre-baskerville-fonts/libre-baskerville-fonts.spec b/libre-baskerville-fonts/libre-baskerville-fonts.spec new file mode 100644 index 0000000..fa95f8e --- /dev/null +++ b/libre-baskerville-fonts/libre-baskerville-fonts.spec @@ -0,0 +1,57 @@ +%global fontname libre-baskerville +%global fontconf 63-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.0 +Release: 3%{?dist} +Summary: Libre Baskerville font designed by Pablo Impallari +Group: User Interface/X +License: OFL +URL: https://fonts.google.com/specimen/Libre+Baskerville +Source0: %{name}-%{version}.tar.xz +Source1: %{fontname}-fontconfig.conf +Source2: get-libre-baskerville.sh + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Libre Baskerville is a web font optimized for body text (typically 16px.) +It is based on the American Type Founder's Baskerville from 1941, but it +has a taller x-height, wider counters and a little less contrast, that +allow it to work well for reading on-screen. + + +%prep +%setup -q + +%build + +%install +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}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +mv OFL.txt LICENSE +sed -i 's/\r$//' LICENSE + +%_font_pkg -f %{fontconf} *.ttf +%license LICENSE + +%changelog +* Fri Oct 30 2020 Dawid Zych 1.0-3 +- Download font from Google Fonts (@paul) + +* Wed Jan 11 2017 Dawid Zych 1.0-2 +- Update fontconfig and it's priority. + +* Thu Jan 05 2017 Dawid Zych 1.0-1 +- Initial packaging. diff --git a/notes b/notes new file mode 100644 index 0000000..3d14992 --- /dev/null +++ b/notes @@ -0,0 +1,49 @@ +Open Sans is sooo much better than Arimo +- Open Sans and Noto Sans are pretty much indentical +- Noto Sans has a bit thicker glyphs and less accents + +Lucida Grande: +Lucida Sans: +Lucida Sans Unicode: + - ??? + +Helvetica Neue: + - Noto Sans + +Comic Sans: + - Calluna Sans + - Kalam + - Patrick Hand + - Gloria Hallelujah + - Indie Flower - really playful + + - Handlee - no special chars + - Schoolbell - nope + +TODO: + make list of MS fonts by type (serif, sans-serif) + + +Tools: + http://typographing.com + +Android fonts: + https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/data/fonts/fonts.xml + +Problems: +https://blog.mozilla.org/nnethercote/2019/07/25/the-rust-compiler-is-still-getting-faster/ + +links: +- https://blog.spoongraphics.co.uk/articles/the-best-free-alternatives-to-the-most-popular-fonts +- http://www.designtheway.com/most-used-fonts-alternative-google-fonts/ +- https://eev.ee/blog/2015/05/20/i-stared-into-the-fontconfig-and-the-fontconfig-stared-back-at-me/ + + +nice looking sites: +- http://news.harvard.edu/gazette/story/2017/04/over-nearly-80-years-harvard-study-has-been-showing-how-to-live-a-healthy-and-happy-life/ +Georgia usage: +- https://josebrowne.com/on-coding-ego-and-attention/ +TeX Gyre Scholar Regular +- http://jepsen.io/analyses/postgresql-12.3 +Cambria +- https://www.forbes.com/sites/erikkain/2013/07/02/quake-iii-arena-bots-reportedly-stop-fighting-after-4-year-match/#5aab55076233 diff --git a/passion-one-fonts/passion-one-fontconfig.conf b/passion-one-fonts/passion-one-fontconfig.conf new file mode 100644 index 0000000..f411f2f --- /dev/null +++ b/passion-one-fonts/passion-one-fontconfig.conf @@ -0,0 +1,12 @@ + + + + + + Passion One + + fantasy + + + + diff --git a/passion-one-fonts/passion-one-fonts.spec b/passion-one-fonts/passion-one-fonts.spec new file mode 100644 index 0000000..51a8ce3 --- /dev/null +++ b/passion-one-fonts/passion-one-fonts.spec @@ -0,0 +1,48 @@ +%global fontname passion-one +%global fontconf 61-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.001 +Release: 1%{?dist} +Summary: Passion One is a set of 3 display fonts aimed to composing titles in big sizes. + +Group: User Interface/X +License: OFL +URL: https://fonts.google.com/specimen/Passion+One +Source0: https://www.fontsquirrel.com/fonts/download/passion-one +Source1: %{fontname}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Passion One is a set of 3 display fonts aimed to composing titles in +big sizes. Its counterforms decrease as the passion increases! Please +use them only for your most passionate thoughts and ideas. + +%prep +%setup -q -c + +%build + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +mv "SIL Open Font License.txt" LICENSE + +%_font_pkg -f %{fontconf} *.otf +%license LICENSE + +%changelog +* Thu Apr 12 2018 Dawid Zych - 1.001-1 +- Initial packaging. diff --git a/quoteunquoteapps-courier-prime-fonts/61-quoteunquoteapps-courier-prime-fonts.conf b/quoteunquoteapps-courier-prime-fonts/61-quoteunquoteapps-courier-prime-fonts.conf new file mode 100644 index 0000000..c78ea62 --- /dev/null +++ b/quoteunquoteapps-courier-prime-fonts/61-quoteunquoteapps-courier-prime-fonts.conf @@ -0,0 +1,17 @@ + + + + + + monospace + + Courier Prime + + + + Courier Prime + + monospace + + + diff --git a/quoteunquoteapps-courier-prime-fonts/courier-prime-fonts.spec b/quoteunquoteapps-courier-prime-fonts/courier-prime-fonts.spec new file mode 100644 index 0000000..df74a8a --- /dev/null +++ b/quoteunquoteapps-courier-prime-fonts/courier-prime-fonts.spec @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: MIT +%global forgeurl https://github.com/quoteunquoteapps/CourierPrime +%global commit 7fd585a2dd4c1612c79b3308e300923d1c13df93 +%forgemeta + +Version: 3.018 +Release: 1%{?dist} +URL: https://quoteunquoteapps.com/courierprime/ + +%global foundry QuoteUnquoteApps +%global fontlicense OFL +%global fontlicenses OFL.txt +%global fontdocs *txt *md +%global fontdocsex %{fontlicenses} requirements.txt + +%global fontfamily Courier Prime +%global fontsummary A free, improved, classical monospaced typeface +%global fonts fonts/ttf/*ttf +%global fontconfs %{SOURCE10} +%global fontpkgheader %{expand: +Provides: courier-prime-fonts +Obsoletes: courier-prime-fonts < %{version}-%{release} +} +%global fontdescription %{expand: +Courier Prime is a new take on IBM's Courier which was designed in 1956 +by Howard Kettler. + +It is a monospaced family, designed specifically for screenplays. Overall +the family is more refined than its predecessor. The serifs are crisper +and less rounded. The counters are subtly wider. The bold weight is a +bit darker and the italics are more cursive.} + + +Source0: %{forgesource} +Source10: 61-%{fontpkgname}.conf + +%fontpkg + +%package doc +Summary: Optional documentation files of %{name} +BuildArch: noarch +%description doc +This package provides optional documentation files shippend with +%{name}. + +%prep +%forgesetup +%linuxtext *.txt + +%build +%fontbuild + +%install +%fontinstall + +%check +%fontcheck + +%fontfiles + +%files doc +%defattr(644, root, root, 0755) +%license OFL.txt + +%changelog +* Mon Nov 02 2020 Dawid Zych - 3.018-1 +- Initial packaging diff --git a/sorkintype-gelasio-fonts/60-sorkintype-gelasio-fonts.conf b/sorkintype-gelasio-fonts/60-sorkintype-gelasio-fonts.conf new file mode 100644 index 0000000..4b8f44e --- /dev/null +++ b/sorkintype-gelasio-fonts/60-sorkintype-gelasio-fonts.conf @@ -0,0 +1,17 @@ + + + + + + serif + + Gelasio + + + + Gelasio + + serif + + + diff --git a/sorkintype-gelasio-fonts/sorkintype-gelasio-fonts.spec b/sorkintype-gelasio-fonts/sorkintype-gelasio-fonts.spec new file mode 100644 index 0000000..c6ddf30 --- /dev/null +++ b/sorkintype-gelasio-fonts/sorkintype-gelasio-fonts.spec @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: MIT +%global forgeurl https://github.com/SorkinType/Gelasio +%global commit 45b816432931142b0bb78f5a968d3bd27b9e8d2f +%forgemeta + +Version: 1.006 +Release: 3%{?dist} +URL: %{forgeurl} + +%global foundry SorkinType +%global fontlicense OFL +%global fontlicenses OFL.txt +%global fontdocs *txt *md +%global fontdocsex %{fontlicenses} requirements.txt + +%global fontfamily Gelasio +%global fontsummary Gelasio is an original typeface which is metrics compatible with Georgia +%global fonts fonts/ttf/*ttf +%global fontconfs %{SOURCE10} +%global fontpkgheader %{expand: +Provides: gelasio-fonts +Obsoletes: gelasio-fonts < %{version}-%{release} +} +%global fontdescription %{expand: +Gelasio is an original typeface which is metrics compatible with Georgia +in its Regular, Bold, Italic and Bold Italic weights. It supports the +Google Fonts Latin Pro glyph set, enabling the typesetting of English, +Western, Eastern and Southern European languages as well as Vietnamese +and 130+ other languages.} + +Source0: %{forgesource} +Source10: 60-%{fontpkgname}.conf + +%fontpkg + +%package doc +Summary: Optional documentation files of %{name} +BuildArch: noarch +%description doc +This package provides optional documentation files shippend with +%{name}. + +%prep +%forgesetup +%linuxtext *.txt + +%build +%fontbuild + +%install +%fontinstall + +%check +%fontcheck + +%fontfiles + +%files doc +%defattr(644, root, root, 0755) +%license OFL.txt +%doc Test*Documents/*pdf + +%changelog +* Tue May 10 2022 Jeffrey Serio - 1.006-4 +- Change commit hash for sorkintype-gelasio-fonts.spec + +* Mon Nov 02 2020 Dawid Zych - 1.006-3 +- Skip variable fonts +- Add additional docs + +* Mon Nov 02 2020 Dawid Zych - 1.006-2 +- Initial packaging diff --git a/tests/default_fonts_test.html b/tests/default_fonts_test.html new file mode 100644 index 0000000..0be6286 --- /dev/null +++ b/tests/default_fonts_test.html @@ -0,0 +1,123 @@ + + + +FONT TEST + + + +Arial: The quick brown fox jumps over the lazy dog + +
+ +Arial Black: The quick brown fox jumps over the lazy dog + +
+ +Arial Narrow: The quick brown fox jumps over the lazy dog + +
+ +Baskerville: The quick brown fox jumps over the lazy dog + +
+ +Calibri: The quick brown fox jumps over the lazy dog + +
+ +Cambria: The quick brown fox jumps over the lazy dog + +
+ +Candara: The quick brown fox jumps over the lazy dog + +
+ +Comic Sans MS: The quick brown fox jumps over the lazy dog + +
+ +Consolas: The quick brown fox jumps over the lazy dog + +
+ +Constantia: The quick brown fox jumps over the lazy dog + +
+ +Corbel: The quick brown fox jumps over the lazy dog + +
+ +Courier New: The quick brown fox jumps over the lazy dog + +
+ +Garamond: The quick brown fox jumps over the lazy dog + +
+ +Geneva: The quick brown fox jumps over the lazy dog + +
+ +Georgia: The quick brown fox jumps over the lazy dog + +
+ +Gill Sans: The quick brown fox jumps over the lazy dog + +
+ +Helvetica: The quick brown fox jumps over the lazy dog + +
+ +Helvetica Condensed: The quick brown fox jumps over the lazy dog + +
+ +Helvetica Neue: The quick brown fox jumps over the lazy dog + +
+ +Impact: The quick brown fox jumps over the lazy dog + +
+ +Liberation Mono: The quick brown fox jumps over the lazy dog + +
+ +Liberation Sans: The quick brown fox jumps over the lazy dog + +
+ +Liberation Serif: The quick brown fox jumps over the lazy dog + +
+ +Symbol: The quick brown fox jumps over the lazy dog + +
+ +Tahoma: The quick brown fox jumps over the lazy dog + +
+ +Times New Roman: The quick brown fox jumps over the lazy dog + +
+ +Trebuchet MS: The quick brown fox jumps over the lazy dog + +
+ +Verdana: The quick brown fox jumps over the lazy dog + +
+ +Wingdings: The quick brown fox jumps over the lazy dog + + + diff --git a/tests/helvetica_test.html b/tests/helvetica_test.html new file mode 100644 index 0000000..a114e47 --- /dev/null +++ b/tests/helvetica_test.html @@ -0,0 +1,30 @@ + + + +HELVETICA TEST + + + + + + + + + + + + + + + + + + + + + + + +
Arimo:The quick brown fox jumps over the lazy dog 1234567890
Clear Sans:The quick brown fox jumps over the lazy dog 1234567890
TeX Gyre Heros:The quick brown fox jumps over the lazy dog 1234567890
Noto Sans:The quick brown fox jumps over the lazy dog 1234567890
Work Sans:The quick brown fox jumps over the lazy dog 1234567890
+ + diff --git a/ubuntu-fonts/ubuntu-fontconfig.conf b/ubuntu-fonts/ubuntu-fontconfig.conf new file mode 100644 index 0000000..d660f28 --- /dev/null +++ b/ubuntu-fonts/ubuntu-fontconfig.conf @@ -0,0 +1,26 @@ + + + + + + Ubuntu + + sans-serif + + + + + Ubuntu Condensed + + sans-serif + + + + + Ubuntu Mono + + monospace + + + + diff --git a/ubuntu-fonts/ubuntu-fonts.spec b/ubuntu-fonts/ubuntu-fonts.spec new file mode 100644 index 0000000..b06fe3a --- /dev/null +++ b/ubuntu-fonts/ubuntu-fonts.spec @@ -0,0 +1,49 @@ +%global fontname ubuntu +%global fontconf 61-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 0.83 +Release: 2%{?dist} +Summary: Ubuntu font family + +License: Ubuntu Font Licence 1.0 +URL: https://font.ubuntu.com/ +Source0: https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0.83.zip +Source1: %{fontname}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +The new Ubuntu Font Family was started to enable the personality of Ubuntu +to be seen and felt in every menu, button and dialog. The typeface is +sans-serif, uses OpenType features and is manually hinted for clarity on +desktop and mobile computing screens. + +%prep +%setup -q -n ubuntu-font-family-%{version} + +%build + +%install +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}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +%_font_pkg -f *-%{fontname}.conf *.ttf +%license LICENCE.txt LICENCE-FAQ.txt copyright.txt TRADEMARKS.txt +%doc CONTRIBUTING.txt FONTLOG.txt README.txt + +%changelog +* Thu Oct 29 2020 Dawid Zych - 0.83-2 +- Fix broken symlink by @upanasiuk +* Fri Jan 06 2017 Dawid Zych - 0.83-1 +- Initial packaging.