Hello community, here is the log from the commit of package hack-fonts for openSUSE:Factory checked in at 2018-05-10 15:43:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hack-fonts (Old) and /work/SRC/openSUSE:Factory/.hack-fonts.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hack-fonts" Thu May 10 15:43:43 2018 rev:4 rq:603122 version:3.003 Changes: -------- --- /work/SRC/openSUSE:Factory/hack-fonts/hack-fonts.changes 2016-06-14 23:08:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.hack-fonts.new/hack-fonts.changes 2018-05-10 15:43:44.429708928 +0200 @@ -1,0 +2,17 @@ +Tue May 1 22:56:21 UTC 2018 - [email protected] + +- Release 3.003; Major changes: + * New license: + + Eliminated Hack Open Font License + + Added MIT License for Hack work + + These license changes eliminated the Reserved Font Name "Hack" + in the typeface license + + No changes to co-licensure with the Bitstream Vera license + from upstream source + * Only provide ttf + * For details, see + https://github.com/source-foundry/Hack/blob/master/CHANGELOG.md +- Update LICENSE.md and README.md to the versions from master +- Removed service file, seems unnecessary + +------------------------------------------------------------------- Old: ---- Hack-v2_020-ttf.zip _service New: ---- Hack-v3.003-ttf.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hack-fonts.spec ++++++ --- /var/tmp/diff_new_pack.CUQ4e4/_old 2018-05-10 15:43:44.985688552 +0200 +++ /var/tmp/diff_new_pack.CUQ4e4/_new 2018-05-10 15:43:44.989688405 +0200 @@ -1,7 +1,7 @@ # # spec file for package hack-fonts # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 Alexander Evseev # # All modifications and additions to the file contributed by third parties @@ -18,25 +18,23 @@ %define realname Hack -%define realver 2.020 -%define filever 2_020 %define extraver -ttf %define srcext zip # Common info Name: hack-fonts -Version: %{realver} +Version: 3.003 Release: 0 Summary: A typeface designed for source code -License: SUSE-Hack-Open-Font-2.0 and SUSE-Bitstream-Vera +License: MIT AND SUSE-Bitstream-Vera Group: System/X11/Fonts Url: http://sourcefoundry.org/hack/ -Source: https://github.com/chrissimpkins/Hack/releases/download/v%{realver}/%{realname}-v%{filever}%{?extraver}.%{srcext} -Source1: https://raw.githubusercontent.com/chrissimpkins/Hack/v%{realver}/README.md -Source2: https://raw.githubusercontent.com/chrissimpkins/Hack/v%{realver}/LICENSE.md +Source: https://github.com/source-foundry/Hack/releases/download/v%{version}/%{realname}-v%{version}%{?extraver}.%{srcext} +Source1: README.md +Source2: LICENSE.md BuildRequires: fontpackages-devel BuildRequires: unzip %reconfigure_fonts_prereq -Provides: %{realname} = %{realver} +Provides: %{realname} = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -53,13 +51,13 @@ Install and go. %prep -%setup -q -n %{realname}-%{realver}%{?extraver} -c +%setup -q -n %{realname}-%{version}%{?extraver} -c %build %install mkdir -p %{buildroot}%{_ttfontsdir} -install -m644 *.ttf %{buildroot}%{_ttfontsdir} +install -m644 ttf/*.ttf %{buildroot}%{_ttfontsdir} install -d %{buildroot}%{_docdir}/%{name} install -m644 %{S:1} %{S:2} %{buildroot}%{_docdir}/%{name} ++++++ LICENSE.md ++++++ --- /var/tmp/diff_new_pack.CUQ4e4/_old 2018-05-10 15:43:45.025687086 +0200 +++ /var/tmp/diff_new_pack.CUQ4e4/_new 2018-05-10 15:43:45.029686940 +0200 @@ -1,49 +1,30 @@ -## License +The work in the Hack project is Copyright 2018 Source Foundry Authors and licensed under the MIT License -Hack Copyright 2015, Christopher Simpkins with Reserved Font Name "Hack". +The work in the DejaVu project was committed to the public domain. Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera" -DejaVu modifications of the original Bitstream Vera Sans Mono typeface have been committed to the public domain. - - - -This Font Software is licensed under the Hack Open Font License v2.0 and the Bitstream Vera License. - -These licenses are copied below. - - -### Hack Open Font License v2.0 - -(Version 1.0 - 06 September 2015) - -(Version 2.0 - 27 September 2015) - -Copyright 2015 by Christopher Simpkins. All Rights Reserved. - -DEFINITIONS - -"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. - -PERMISSION AND CONDITIONS - -Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated source code, documentation, and binary files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, study, copy, merge, embed, modify, redistribute, and/or sell modified or unmodified copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: - -(1) The above copyright notice and this permission notice shall be included in all modified and unmodified copies of the Font Software typefaces. These notices can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. - -(2) The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "Hack". - -(3) Neither the Font Software nor any of its individual components, in original or modified versions, may be sold by itself. - -TERMINATION - -This license becomes null and void if any of the above conditions are not met. - -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. - -Except as contained in this notice, the names of Christopher Simpkins and the Author(s) of the Font Software shall not be used to promote, endorse or advertise any modified version, except to acknowledge the contribution(s) of Christopher Simpkins and the Author(s) or with their explicit written permission. For further information, contact: chris at sourcefoundry dot org. +### MIT License +Copyright (c) 2018 Source Foundry Authors +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ### BITSTREAM VERA LICENSE ++++++ README.md ++++++ --- /var/tmp/diff_new_pack.CUQ4e4/_old 2018-05-10 15:43:45.045686353 +0200 +++ /var/tmp/diff_new_pack.CUQ4e4/_new 2018-05-10 15:43:45.049686207 +0200 @@ -1,349 +1,226 @@ -# Hack [] (https://github.com/chrissimpkins/Hack/blob/master/CONTRIBUTORS.md) -### A typeface designed for source code - -<a href="https://sourcefoundry.org/hack/"><img src="img/hack-specimen-2.png" alt="Hack-a monospaced sans-serif font for source code" width="728"></a> -<br> -<a href="https://sourcefoundry.org/hack/"><img src="img/c-mockup.png" alt="C source code example" width="728"></a> -<br> -<a href="https://sourcefoundry.org/hack/"><img src="img/python-mockup.png" alt="Python source code example" width="728"></a> -<br> -<a href="https://sourcefoundry.org/hack/"><img src="img/js-mockup.png" alt="JavaScript source code example" width="728"></a> -<br> -<a href="https://sourcefoundry.org/hack/playground.html"><img src="img/font-playground.png" alt="Click to Try Hack in the Font Playground" width="728"></a> +# Hack -## Contents +[](https://github.com/source-foundry/Hack/releases/latest) +[](https://semaphoreci.com/sourcefoundry/hack) +[](https://github.com/source-foundry/Hack/blob/master/docs/CONTRIBUTORS.md) +[](https://gitter.im/source-foundry/Hack) +[](https://github.com/source-foundry/Hack/releases/latest) +[](https://www.jsdelivr.com/package/npm/hack-font) -- [About](https://github.com/chrissimpkins/Hack#about) -- [Typeface Data](https://github.com/chrissimpkins/Hack#data) -- [Type Specimen](http://chrissimpkins.github.io/Hack/font-specimen.html) -- [Desktop Installation](https://github.com/chrissimpkins/Hack#desktop-installation) -- [Web Font Usage](https://github.com/chrissimpkins/Hack#webfont-usage) - - [Hack by CDN](https://github.com/chrissimpkins/Hack#hack-by-cdn) - - [Self-Hosted Font Files](https://github.com/chrissimpkins/Hack#host-hack-font-files-on-your-server) -- [Build Binary List](https://github.com/chrissimpkins/Hack#build-binaries) -- [Changelog](https://github.com/chrissimpkins/Hack/blob/master/CHANGELOG.md) -- [Contributors](https://github.com/chrissimpkins/Hack/blob/master/CONTRIBUTORS.md) -- [License](https://github.com/chrissimpkins/Hack/blob/master/LICENSE.md) +Don't like the development noise from the repository but want to keep up with changes? Check out our [gitter Hack channel](https://gitter.im/source-foundry/Hack). Have a quick question that doesn't require an issue report? Drop by our [gitter Help channel](https://gitter.im/source-foundry/Help) and ask away. -### New! +### A typeface designed for source code -You can now modify the default line spacing in Hack fonts with our new `font-line` tool. Hack uses a default value of 20% UPM for line spacing. Decrease the value to tighten the spacing, increase it to widen your spacing. Modification details are available on the `font-line` repository: +Hack is designed to be a workhorse typeface for source code. It has deep roots in the free, open source typeface community and expands upon the contributions of the [Bitstream Vera](https://www.gnome.org/fonts/) & [DejaVu](http://dejavu-fonts.org/wiki/Main_Page) projects. The large x-height + wide aperture + low contrast design make it legible at commonly used source code text sizes with a sweet spot that runs in the 8 - 14 range. The full set of changes to the upstream source are available in the [changelog](CHANGELOG.md). -https://github.com/source-foundry/font-line +The project is in active development, and we welcome your input and contributions. You may view our design objectives and instructions on how to contribute in [CONTRIBUTING.md](CONTRIBUTING.md). -or [use one of our handy shell scripts](https://github.com/chrissimpkins/Hack/tree/master/tools/line-spacing) that automates the `font-line` install and line spacing modification process for a range of line spacing % UPM values between 10 - 30%. Select the script that fits your needs and execute it in the download directory that contains your .ttf and/or .otf font files **before you install them**. +Frequently asked questions are answered in our [FAQ](FAQ.md). +### Contents -### About +* [Features](#overview-of-features) +* [Quick installation](#quick-installation) +* [Package manager installation](#package-managers) +* [Web font usage](#web-font-usage) +* [Additional tools for font customization](#additional-tools-for-hack-font-customization) +* [Resources](#resources) +* [Contributing](#contributing) +* [Build tools](#built-with) +* [Acknowledgments](#acknowledgments) +* [License](#license) -No frills. No gimmicks. Hack is hand groomed and optically balanced to be a workhorse face for code. -It has deep roots in the libre, open source typeface community and expands upon the contributions of the Bitstream Vera & DejaVu projects. The face has been re-designed with a larger glyph set, modifications of the original glyph shapes (including distinct point styles and semi-bold punctuation weight in the regular set to make analphabetic characters less transparent), and meticulous attention to metrics (including numerous spacing adjustments to improve the rhythm of the face and the legibility of code at small text sizes). The large x-height + wide aperture + low contrast design combined with PostScript hinting/hint replacement programs and a TrueType instruction set make it highly legible at commonly used source code text sizes with a sweet spot that runs in the 8px - 12px range on modern desktop and laptop monitors. Combine it with an HD monitor and you can comfortably work at 6 or 7px sizes. The full set of changes are available in the [changelog](https://github.com/chrissimpkins/Hack/blob/master/CHANGELOG.md). +### Specimen -The font binaries are released under a license that permits unlimited print, desktop, and web use for commercial and non-commercial applications. It may be embedded and distributed in documents and applications. The source is released in the widely supported UFO format and may be modified to derive new typeface branches. The full text of the license is available in [LICENSE.md](https://github.com/chrissimpkins/Hack/blob/master/LICENSE.md) +<a href="http://source-foundry.github.io/Hack/font-specimen.html"><img src="img/hack-specimen-3-crunch.png" alt="Hack — a typeface designed for source code" width="728"></a> -### Data +## Overview of features - **Typeface Name**: Hack - **Category**: Monospaced -- **Powerline Support**: Yes -- **Glyph Number**: 1561 +- **Character set support**: ASCII, Latin-1, Latin Extended A, Greek, Cyrillic +- **Powerline Support**: Yes, included by default - **Included Styles**: Regular, Bold, Italic, Bold Italic +## Quick installation -### Specimen - -<a href="http://chrissimpkins.github.io/Hack/font-specimen.html"><img src="img/hack-waterfall.png" alt="Hack font specimen" width="728"></a> - -Click the image for the full type specimen. - +**NOTE ON FONT UPDATES** +*If you are updating your version of Hack, be sure to remove the previously installed version and clear your font cache first to avoid conflicts that can lead to platform-specific rendering errors. Many platforms/distros offer package managers that automate this process. We release a Windows installer to automate the install/update process on the Windows platform. See below for additional details.* -### Desktop Installation +### Linux -Hack is available for download in either [OTF][otf_latest] or [TTF][ttf_latest] formats. The best format and install approach depends on your operating system. If you do not know which format is optimal for your system, the TTF files should be used as your default. - -Because Hack is under active development and updates are released frequently we highly recommended using a package manager or other auto-updating utility. While the package manager releases may be a bit delayed relative to the repository releases, the package managers automate and simplify font updates on your system. Please note that the Hack packages in these package managers are not maintained by the Hack project developers. If you come across a problem with the release schedule in your package manager, please report it directly to the respective package maintainer on your platform. - -#### OS X - -The easiest way to install and update Hack on OS X is to use the [Homebrew](http://brew.sh/) package manager. To install the fonts on OS X use the command: - - $ brew cask install caskroom/fonts/font-hack - - -**OS X Users Please Note**: There has been a change in the Homebrew-Cask system that requires an update of `brew-cask`. If you encounter an error during your Hack install attempt, please execute the following command and then install with the above command again: +1. Download the [latest version of Hack][ttf_latest]. +2. Extract the files from the archive (`.zip`). +3. Copy the font files to either your system font folder (often `/usr/share/fonts/`) or user font folder (often `~/.local/share/fonts/` or `/usr/local/share/fonts`). +4. Copy the font configuration file in `config/fontconfig/` to either the system font configuration folder (often `/etc/fonts/conf.d/`) or the font user folder (often `~/.config/fontconfig/conf.d`) +5. Clear and regenerate your font cache and indexes with the following command: ``` -$ brew uninstall --force brew-cask && brew update +$ fc-cache -f -v ``` -Please see [issue report #169](https://github.com/chrissimpkins/Hack/issues/169) for additional details. - -To install the fonts manually you may use either the [OTF][otf_latest] or [TTF][ttf_latest] formats. Download the zip file and extract it. Double clicking each of the font files will open a preview in [Font Book](https://support.apple.com/en-us/HT201749) and the "Install Font" button will copy the font to the correct system location. +You can confirm that the fonts are installed with the following command: -#### Linux / BSD - -Most Linux and BSD systems can handle either [TTF][ttf_latest] or [OTF][otf_latest] format fonts. We are aware of package manager support on the following distros: - -* *Arch Linux*: install the [ttf-hack](https://www.archlinux.org/packages/community/any/ttf-hack/) package from the community repository ([otf-hack](https://aur.archlinux.org/packages/otf-hack/) is available in the AUR): +``` +$ fc-list | grep "Hack" +``` - $ pacman -S ttf-hack +Some Linux users may find that font rendering is improved on their distro with [these instructions](https://wiki.manjaro.org/index.php?title=Improve_Font_Rendering). -* *Fedora / CentOS*: install from [copr](https://copr.fedoraproject.org/coprs/heliocastro/hack-fonts/). For Fedora >= 23: +### macOS - $ dnf install dnf-plugins-core - $ dnf copr enable heliocastro/hack-fonts - $ dnf install hack-fonts +1. Download the [latest version of Hack][ttf_latest]. +2. Extract the files from the archive (`.zip`) and click to open them. +3. Follow the instructions from your operating system. +4. Enjoy! - For Fedora <= 22 and CentOS <= 7: - $ yum install yum-plugin-copr - $ yum copr enable heliocastro/hack-fonts +### Windows -* *Gentoo Linux*: install the [media-fonts/hack](https://packages.gentoo.org/packages/media-fonts/hack) package from the main Portage tree: +[](https://github.com/source-foundry/Hack-windows-installer/releases/latest) - $ emerge -av media-fonts/hack +The [Hack Windows Installer](https://github.com/source-foundry/Hack-windows-installer/releases/latest) simplifies installation on the Windows platform. The tool guides you through the installation process and addresses some common rendering issues that occur with font installs/updates on the Windows platform. This tool is the recommended installation approach for Windows users. -* *Ubuntu / Debian*: install either [fonts-hack-ttf](http://packages.ubuntu.com/xenial/fonts-hack-ttf) or [fonts-hack-otf](http://packages.ubuntu.com/xenial/fonts-hack-otf). Packages are currently available for Ubuntu Xenial or later and the Debian unstable branch: - $ apt-get install fonts-hack-ttf +### Chrome/ChromeOS - For older systems either manually download and install one of the deb packages or see the [manual install instructions](https://wiki.ubuntu.com/Fonts) and [issue report #189](https://github.com/chrissimpkins/Hack/issues/189). +To use with [Secure Shell](https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo), +edit the following fields in Options: -For other systems, check for packages using your distro's package manager search function. If no packages exist download your preferred format and copy the font files to either your system font folder (often `/usr/share/fonts/`) or user font folder (often `~/.local/share/fonts/`). On systems using Fontconfig you may need to regenerate the font caches and indexes after copying the files (e.g. `fc-cache -s; mkfontscale <install_path>; mkfontdir <install_path>`). + - font-family: `"Hack"` + - user-css: `https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css` +## Package managers -#### Windows +We highly recommend the convenience of a community developed package manager or other auto-updating utility if this is available on your platform. While the package manager releases may be a bit delayed relative to the repository releases, the packages distributed through these package managers were designed to tune and automate font installs and updates on your system. -On Windows, the [TTF][ttf_latest] format files are recommended. Download the zip, extract the files, and double click on them to open them in the font previewer. Clicking the "Install" button will then copy them to the correct place on your system. +We are aware of Hack support in the following package managers (with associated package names): -@texhex created a [multi-font installer for Windows 7 - Windows 10](https://github.com/texhex/OSFontPack) that is actively maintained and includes the current release of the Hack fonts. Windows has a complex font caching mechanism that has led to problems for many users who try to install a new version of the Hack fonts over previously installed versions. Michael's tool addresses these caching issues. See [issue report #177](https://github.com/chrissimpkins/Hack/issues/177) for details about the tool and check out his repository for more information. +- **Arch Linux**: `ttf-hack` +- **Chocolatey (Windows)**: `hackfont` +- **Debian**: `fonts-hack-ttf` +- **Fedora / CentOS**: `dnf-plugins-core :: heliocastro/hack-fonts :: hack-fonts` +- **Gentoo Linux**: `media-fonts/hack` +- **Homebrew Cask (OS X)**: `caskroom/fonts/font-hack` +- **Open BSD**: `fonts/hack-fonts` +- **OpenSUSE**: `hack-fonts` +- **Ubuntu**: `fonts-hack-ttf` +- **Visual Studio Package Manager**: `hack.font` -**Windows Users Please Note**: If you have previously installed the Hack fonts on your Windows system and are having issues with installation of a newer version, please remove the old Hack fonts before you attempt the new font install. Either navigate to `c:\windows\fonts` and delete all Hack fonts in the directory, or open the directory path `Control Panel\Appearance and Personalization\Fonts`, right click on each of the Hack fonts and delete them. See [issue report #152](https://github.com/chrissimpkins/Hack/issues/152) and [issue report #177](https://github.com/chrissimpkins/Hack/issues/177) for additional information. +For installation issues with Hack packages, please contact the package maintainer directly. -### Webfont Usage +## Web font usage -Hack webfonts are released in eot, ttf, woff, and woff2 formats. They include a complete Hack character set build and a smaller [basic Latin](http://www.unicode.org/charts/PDF/U0000.pdf) + [Latin-1 supplement](http://www.unicode.org/charts/PDF/U0080.pdf) Unicode character block build. The latter build set is smaller in size and is intended to improve page loading times when you do not need the entire Hack character set. +Hack is available in the woff and woff2 web font formats. **Bold** and *italic* styles are included by default and work out-of-the-box via the `<strong>` and `<em>` tags. -You can view the rendering of the webfonts at a range of sizes on the [Hack type specimen](http://chrissimpkins.github.io/Hack/font-specimen.html). +Hack is available through the jsDelivr and cdnjs CDN services: -#### Hack by CDN +[](https://www.jsdelivr.com/package/npm/hack-font) +[](https://cdnjs.com/libraries/hack-font) -Thanks to the generous gang at [jsDelivr](https://github.com/jsdelivr/jsdelivr), you can use a CDN to include Hack on your site with a single stylesheet link in the head of your HTML files. There is no need to download font files from the repository or serve them from your web server. +The following snippets provide examples of Hack web font use through the jsDelivr CDN. Adjust the URL paths to those provided by cdnjs (click the link above to find the appropriate URL) to switch to the cdnjs CDN. -Average latency, average uptime, and total downtime data for jsDelivr vs. other popular CDN are available for [http](http://www.cdnperf.com/#jsdelivr,cdnjs,google,yandex,microsoft,jquery,bootstrapcdn/http/30) and [https](http://www.cdnperf.com/#jsdelivr,cdnjs,google,yandex,microsoft,jquery,bootstrapcdn/https/30) protocols. Please understand that this is a free CDN resource and, while it does have industry backing, it could go away at anytime. If this is a critical issue for your use scenario, please purchase your own CDN plan and host the webfonts yourself. +#### 1. Add Hack to HTML -Include **one** of the following lines in the `<head>` section of your site's HTML: +Include one of the following in the <head> section of your HTML file: -##### Basic Latin + Latin-1 Supplement Character Set +**Subset web fonts** ```html -<link rel="stylesheet" href="//cdn.jsdelivr.net/font-hack/2.019/css/hack.min.css"> +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack-subset.css"> ``` -##### Full Character Set +**Full character set web fonts** ```html -<link rel="stylesheet" href="//cdn.jsdelivr.net/font-hack/2.019/css/hack-extended.min.css"> +<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css"> ``` -Then style your text by including `Hack` in the appropriate `font-family` property of your CSS. For example: +#### 2. Add Hack to CSS + ```css -code { - font-family: Hack, monospace; -} +pre, code { font-family: Hack, monospace; } ``` -The **bold**, *oblique*, and <b><i>bold oblique</i></b> text styles are formatted with HTML using `<b>text block</b>`, `<i>text block</i>`, and `<b><i>text block</i></b>` HTML tags, respectively. +See the [WEBFONT_USAGE.md](docs/WEBFONT_USAGE.md) documentation for additional details, including instructions on how to download, host, and serve the web fonts on your web server. +## Additional tools for Hack font customization -#### Host Hack Font Files on Your Server +### Customize your build with alternate glyph styles -Download the entire web font archive at this link: +The [alt-hack](https://github.com/source-foundry/alt-hack) library includes a (growing) collection of alternate glyph styles that can be used to customize your Hack fonts. Don't like the default zero style? Swap out the UFO design source with a slashed zero or dotted zero and build new fonts that work better for you. -- [Download Web Font Archive (all)](https://github.com/chrissimpkins/Hack/releases/download/v2.019/Hack-v2_019-webfonts.zip) +We welcome contributions of new alternate glyph styles in the alt-hack repository. Design something new that works well with rest of the typeface and submit a pull request to the alt-hack repository so that others can use it in their custom builds. -Or select the fonts that you need in subdirectories of the build directory: +Detailed build instructions are available on the [alt-hack repository README.md](https://github.com/source-foundry/alt-hack). Font renaming instructions to support side-by-side installs with upstream Hack are available below. -- [Download .eot fonts](https://github.com/chrissimpkins/Hack/tree/master/build/webfonts/fonts/eot) -- [Download .ttf fonts](https://github.com/chrissimpkins/Hack/tree/master/build/webfonts/fonts/web-ttf) - **Note**: these differ from the desktop versions and are intended for web use -- [Download .woff fonts](https://github.com/chrissimpkins/Hack/tree/master/build/webfonts/fonts/woff) -- [Download .woff2 fonts](https://github.com/chrissimpkins/Hack/tree/master/build/webfonts/fonts/woff2) +### Line spacing adjustments -The web font archive download is structured like this: +[font-line](https://github.com/source-foundry/font-line) is a tool that modifies the default line spacing used in the Hack design (20% UPM). -``` -. -├── css -│ ├── hack-extended.css -│ ├── hack-extended.min.css -│ ├── hack.css -│ └── hack.min.css -└── fonts - ├── eot - │ ├── hack-bold-webfont.eot - │ ├── hack-bolditalic-webfont.eot - │ ├── hack-regular-webfont.eot - │ ├── hack-italic-webfont.eot - │ └── latin - │ ├── hack-bold-latin-webfont.eot - │ ├── hack-bolditalic-latin-webfont.eot - │ ├── hack-regular-latin-webfont.eot - │ └── hack-italic-latin-webfont.eot - ├── ttf - │ ├── hack-bold-webfont.ttf - │ ├── hack-bolditalic-webfont.ttf - │ ├── hack-regular-webfont.ttf - │ ├── hack-italic-webfont.ttf - │ └── latin - │ ├── hack-bold-latin-webfont.ttf - │ ├── hack-bolditalic-latin-webfont.ttf - │ ├── hack-regular-latin-webfont.ttf - │ └── hack-italic-latin-webfont.ttf - ├── woff - │ ├── hack-bold-webfont.woff - │ ├── hack-bolditalic-webfont.woff - │ ├── hack-regular-webfont.woff - │ ├── hack-italic-webfont.woff - │ └── latin - │ ├── hack-bold-latin-webfont.woff - │ ├── hack-bolditalic-latin-webfont.woff - │ ├── hack-regular-latin-webfont.woff - │ └── hack-italic-latin-webfont.woff - └── woff2 - ├── hack-bold-webfont.woff2 - ├── hack-bolditalic-webfont.woff2 - ├── hack-regular-webfont.woff2 - ├── hack-italic-webfont.woff2 - └── latin - ├── hack-bold-latin-webfont.woff2 - ├── hack-bolditalic-latin-webfont.woff2 - ├── hack-regular-latin-webfont.woff2 - └── hack-italic-latin-webfont.woff2 -``` +The following gist installs font-line and modifies line spacing for all desktop font files contained in the same directory: -Push the `css` and `fonts` directories to your web server, then import **one** of the included CSS files in the `head` section of the HTML where you would like to use it. +- [linespace.sh](https://gist.github.com/chrissimpkins/f39e85f5f157d839e46168de1b61a174) ([download .zip](https://gist.github.com/chrissimpkins/f39e85f5f157d839e46168de1b61a174/archive/f3f93dea87d64ddc4684a61cbc96ddf79d30824a.zip)) -Replace `path/to/` with the actual path to your css directory. +### Install modified and unmodified versions of Hack on the same system -##### Basic Latin + Latin-1 Supplement Character Set +If you modify the upstream Hack source or the released font binaries and would like to install your modified fonts on the same system with the Hack fonts as released here, you can use the [fontname.py Python script](https://github.com/chrissimpkins/fontname.py) to define a new font name in the binary files. For example, you can install `Hack` on your platform along with a 15% UPM line spacing adjusted version as `Hack Fifteen`. Modify default glyphs with those in our [alt-hack repository](https://github.com/source-foundry/alt-hack) or design your own and define your creation with any name that you'd like. Following installation, your renamed fonts should show under the name that you define with the script so that you can switch between any of them as you need. -```html -<link rel="stylesheet" href="path/to/css/hack.min.css"> -``` +Usage details and examples are provided on the fontname.py repository README. -##### Full Character Set +## Resources +* [Full specimen](http://source-foundry.github.io/Hack/font-specimen.html) +* [Changelog](CHANGELOG.md) +* [Project website](http://sourcefoundry.org/hack/) +* [Contributors](docs/CONTRIBUTORS.md) -```html -<link rel="stylesheet" href="path/to/css/hack-extended.min.css"> -``` -You can alter the path to the Hack files (e.g. place the files in a `hack` resource subdirectory); however, please make sure that you preserve the relative file paths included in the release archive (*or be prepared to modify the paths to the font files*). +## Contributing -Then style your text by including `Hack` in the appropriate `font-family` property of your CSS. For example: +We welcome contributions to Hack! Please review our [CONTRIBUTING.md](CONTRIBUTING.md) document for details. -```css -code { - font-family: Hack, monospace; -} -``` -The **bold**, *oblique*, and <b><i>bold oblique</i></b> text styles are formatted with HTML using `<b>text block</b>`, `<i>text block</i>`, and `<b><i>text block</i></b>` HTML tags, respectively. +## Built With +Hack is built with the following free, open source projects: -##### Webfont Caching and gzip Compression with Cloudflare +- [Font Bakery](https://github.com/googlefonts/fontbakery) - post-compilation modifications +- [fontmake](https://github.com/googlei18n/fontmake) - UFO to ttf compilation +- [fontTools](https://github.com/fonttools/fonttools) - OpenType table read/write +- [font-v](https://github.com/source-foundry/font-v) - font version string editor +- [ink](https://github.com/chrissimpkins/ink) - stream editor for text file templating +- [OpenFV](https://github.com/openfv/openfv) - open specification for semantic typeface versioning +- [sfnt2woff_zopfli](https://github.com/bramstein/sfnt2woff-zopfli) - ttf to woff web font compilation +- [ttfautohint](https://www.freetype.org/ttfautohint/) - ttf instruction sets +- [uni](https://github.com/source-foundry/uni) - Unicode code point search +- [ufodiff](https://github.com/source-foundry/ufodiff) - UFO source diffs +- [ufoLib](https://github.com/unified-font-object/ufoLib) - UFO source file reads/writes/testing +- [ufolint](https://github.com/source-foundry/ufolint) - UFO source file linting for CI testing +- [woff2](https://github.com/google/woff2) - ttf to woff2 web font compilation -*The following information applies to both paid and free accounts* -If you use [Cloudflare](https://cloudflare.com), woff files are cached by default. To cache the remaining webfont files, add a new page rule for the path to your fonts directory: +## Acknowledgments -``` -yoursite.com/path/to/fonts/ -``` +We would like to acknowledge and thank the [jsDelivr](https://www.jsdelivr.com/) and [cdnjs](https://cdnjs.com) teams for their support of the Hack project through their free web font CDN services. We greatly appreciate the tremendous support of open source software development by the [Semaphore CI](https://semaphoreci.com/) team. Their free CI testing service and rapid, excellent technical support have been tremendous assets for our project. Lastly, a huge thanks go out to all of those who do the unrecognized work to get Hack out there to users so that it is easy to access, install, upgrade, and use. There are redistribution package managers, review committee members, testers, and others across platforms/distros/applications who perform this thankless work and often go unrecognized. Your efforts are much appreciated. - and set the rule to `Cache Everything`. - Cloudflare automates gzip compression of ttf, eot, woff, and svg font files. The service does not gzip compress woff2 files. +## License +**Hack** work is © 2018 Source Foundry Authors. MIT License -### Build Binaries +**Bitstream Vera Sans Mono** © 2003 Bitstream, Inc. (with Reserved Font Names _Bitstream_ and _Vera_). Bitstream Vera License. -#### Desktop Fonts +The font binaries are released under a license that permits unlimited print, desktop, web, and software embedding use for commercial and non-commercial applications. -##### TTF Builds -- `build/ttf/Hack-Regular.ttf` -- `build/ttf/Hack-Bold.ttf` -- `build/ttf/Hack-Italic.ttf` -- `build/ttf/Hack-BoldItalic.ttf` - -##### OTF Builds -- `build/otf/Hack-Regular.otf` -- `build/otf/Hack-Bold.otf` -- `build/otf/Hack-Italic.otf` -- `build/otf/Hack-BoldItalic.otf` - -#### Web Fonts - -##### EOT -- `build/webfonts/fonts/eot/hack-regular-webfont.eot` -- `build/webfonts/fonts/eot/hack-bold-webfont.eot` -- `build/webfonts/fonts/eot/hack-italic-webfont.eot` -- `build/webfonts/fonts/eot/hack-bolditalic-webfont.eot` -- `build/webfonts/fonts/eot/latin/hack-regular-latin-webfont.eot` -- `build/webfonts/fonts/eot/latin/hack-bold-latin-webfont.eot` -- `build/webfonts/fonts/eot/latin/hack-italic-latin-webfont.eot` -- `build/webfonts/fonts/eot/latin/hack-bolditalic-latin-webfont.eot` - -##### Web TTF -- `build/webfonts/fonts/web-ttf/hack-regular-webfont.ttf` -- `build/webfonts/fonts/web-ttf/hack-bold-webfont.ttf` -- `build/webfonts/fonts/web-ttf/hack-italic-webfont.ttf` -- `build/webfonts/fonts/web-ttf/hack-bolditalic-webfont.ttf` -- `build/webfonts/fonts/web-ttf/latin/hack-regular-latin-webfont.ttf` -- `build/webfonts/fonts/web-ttf/latin/hack-bold-latin-webfont.ttf` -- `build/webfonts/fonts/web-ttf/latin/hack-italic-latin-webfont.ttf` -- `build/webfonts/fonts/web-ttf/latin/hack-bolditalic-latin-webfont.ttf` - -##### WOFF -- `build/webfonts/fonts/woff/hack-regular-webfont.woff` -- `build/webfonts/fonts/woff/hack-bold-webfont.woff` -- `build/webfonts/fonts/woff/hack-italic-webfont.woff` -- `build/webfonts/fonts/woff/hack-bolditalic-webfont.woff` -- `build/webfonts/fonts/woff/latin/hack-regular-latin-webfont.woff` -- `build/webfonts/fonts/woff/latin/hack-bold-latin-webfont.woff` -- `build/webfonts/fonts/woff/latin/hack-italic-latin-webfont.woff` -- `build/webfonts/fonts/woff/latin/hack-bolditalic-latin-webfont.woff` - -##### WOFF2 -- `build/webfonts/fonts/woff2/hack-regular-webfont.woff2` -- `build/webfonts/fonts/woff2/hack-bold-webfont.woff2` -- `build/webfonts/fonts/woff2/hack-italic-webfont.woff2` -- `build/webfonts/fonts/woff2/hack-bolditalic-webfont.woff2` -- `build/webfonts/fonts/woff2/latin/hack-regular-latin-webfont.woff2` -- `build/webfonts/fonts/woff2/latin/hack-bold-latin-webfont.woff2` -- `build/webfonts/fonts/woff2/latin/hack-italic-latin-webfont.woff2` -- `build/webfonts/fonts/woff2/latin/hack-bolditalic-latin-webfont.woff2` - - -### Changes - -Changes are in the [Changelog](https://github.com/chrissimpkins/Hack/blob/master/CHANGELOG.md). - - -### License - -Hack Copyright 2015-2016, Christopher Simpkins with Reserved Font Name Hack.<br> -Hack Open Font License & Bitstream Vera License +See [LICENSE.md](https://github.com/source-foundry/Hack/blob/master/LICENSE.md) for the full texts of the licenses. -Bitstream Vera Sans Mono Copyright 2003 Bitstream, Inc. with Reserved Font Names Bitstream and Vera<br> -Bitstream Vera License -The full texts of these licenses are available in [LICENSE.md](https://github.com/chrissimpkins/Hack/blob/master/LICENSE.md) - [otf_latest]:https://github.com/chrissimpkins/Hack/releases/download/v2.019/Hack-v2_019-otf.zip - [ttf_latest]: https://github.com/chrissimpkins/Hack/releases/download/v2.019/Hack-v2_019-ttf.zip +<!-- Link to the latest release archive for README.md file --> +[ttf_latest]: https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip
