diff --git a/Dockerfiles/ubuntu2204 b/Dockerfiles/ubuntu2204 index bbec2f0..4fcfb42 100644 --- a/Dockerfiles/ubuntu2204 +++ b/Dockerfiles/ubuntu2204 @@ -8,6 +8,10 @@ LABEL maintainer="${MAINTAINER}" # Set working directory WORKDIR /build +# Copy the necessary font files into the container +COPY fonts/Fira_Code_v6.2/ttf/*.ttf /usr/share/fonts/TTF/ +COPY fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print\ Fonts/*.otf /usr/share/fonts/OTF/ + # Install packages in a single RUN command to reduce layers # Clean up the cache to reduce image size # Separate installations by their ecosystems for better readability and caching @@ -67,4 +71,5 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ pygments.rb \ rghost \ rouge && \ - npm install -g wavedrom-cli@2.6.8 bytefield-svg@1.8.0 + npm install -g wavedrom-cli@2.6.8 bytefield-svg@1.8.0 \ + fc-cache -f diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Atkinson-Hyperlegible-Font-License-2020-1104.pdf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Atkinson-Hyperlegible-Font-License-2020-1104.pdf new file mode 100644 index 0000000..afe27dc Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Atkinson-Hyperlegible-Font-License-2020-1104.pdf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Bold-102.otf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Bold-102.otf new file mode 100644 index 0000000..2e4985c Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Bold-102.otf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-BoldItalic-102.otf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-BoldItalic-102.otf new file mode 100644 index 0000000..3e09177 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-BoldItalic-102.otf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Italic-102.otf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Italic-102.otf new file mode 100644 index 0000000..cf0ab11 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Italic-102.otf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Regular-102.otf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Regular-102.otf new file mode 100644 index 0000000..ea6cfb5 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Print Fonts/Atkinson-Hyperlegible-Regular-102.otf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Bold-102.eot b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Bold-102.eot new file mode 100644 index 0000000..5e19be4 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Bold-102.eot differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-BoldItalic-102.eot b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-BoldItalic-102.eot new file mode 100644 index 0000000..702e813 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-BoldItalic-102.eot differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Italic-102.eot b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Italic-102.eot new file mode 100644 index 0000000..86a3fb8 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Italic-102.eot differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Regular-102.eot b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Regular-102.eot new file mode 100644 index 0000000..4f636b6 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/EOT/Atkinson-Hyperlegible-Regular-102.eot differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Bold-102.svg b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Bold-102.svg new file mode 100644 index 0000000..daecf91 --- /dev/null +++ b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Bold-102.svg @@ -0,0 +1,2300 @@ + + + diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-BoldItalic-102.svg b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-BoldItalic-102.svg new file mode 100644 index 0000000..1c2d2ae --- /dev/null +++ b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-BoldItalic-102.svg @@ -0,0 +1,2303 @@ + + + diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Italic-102.svg b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Italic-102.svg new file mode 100644 index 0000000..30beae8 --- /dev/null +++ b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Italic-102.svg @@ -0,0 +1,1912 @@ + + + diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Regular-102.svg b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Regular-102.svg new file mode 100644 index 0000000..5bd4f9f --- /dev/null +++ b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/SVG/Atkinson-Hyperlegible-Regular-102.svg @@ -0,0 +1,1895 @@ + + + diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Bold-102.ttf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Bold-102.ttf new file mode 100644 index 0000000..14b7196 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Bold-102.ttf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-BoldItalic-102.ttf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-BoldItalic-102.ttf new file mode 100644 index 0000000..4532705 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-BoldItalic-102.ttf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Italic-102.ttf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Italic-102.ttf new file mode 100644 index 0000000..89e5ce4 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Italic-102.ttf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Regular-102.ttf b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Regular-102.ttf new file mode 100644 index 0000000..c4fa6fb Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/TTF/Atkinson-Hyperlegible-Regular-102.ttf differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Bold-102.woff b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Bold-102.woff new file mode 100644 index 0000000..e7f8977 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Bold-102.woff differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-BoldItalic-102.woff b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-BoldItalic-102.woff new file mode 100644 index 0000000..d6421ac Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-BoldItalic-102.woff differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Italic-102.woff b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Italic-102.woff new file mode 100644 index 0000000..12d2d8c Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Italic-102.woff differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Regular-102.woff b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Regular-102.woff new file mode 100644 index 0000000..bbe09c5 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF/Atkinson-Hyperlegible-Regular-102.woff differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Bold-102a.woff2 b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Bold-102a.woff2 new file mode 100644 index 0000000..19a58ea Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Bold-102a.woff2 differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-BoldItalic-102a.woff2 b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-BoldItalic-102a.woff2 new file mode 100644 index 0000000..43f253e Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-BoldItalic-102a.woff2 differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Italic-102a.woff2 b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Italic-102a.woff2 new file mode 100644 index 0000000..d35d3a7 Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Italic-102a.woff2 differ diff --git a/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Regular-102a.woff2 b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Regular-102a.woff2 new file mode 100644 index 0000000..99b3c6f Binary files /dev/null and b/fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/WOFF2/Atkinson-Hyperlegible-Regular-102a.woff2 differ diff --git a/fonts/Fira_Code_v6.2/LICENSE b/fonts/Fira_Code_v6.2/LICENSE new file mode 100644 index 0000000..805e0b3 --- /dev/null +++ b/fonts/Fira_Code_v6.2/LICENSE @@ -0,0 +1,93 @@ +Copyright (c) 2014, The Fira Code Project Authors (https://github.com/tonsky/FiraCode) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These 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. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or 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 the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +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. diff --git a/fonts/Fira_Code_v6.2/README.txt b/fonts/Fira_Code_v6.2/README.txt new file mode 100644 index 0000000..d5ae1b1 --- /dev/null +++ b/fonts/Fira_Code_v6.2/README.txt @@ -0,0 +1,563 @@ +Installing +========== + +Windows +------- + +In the ttf folder, double-click each font file, click “Install font”; to install all at once, select all files, right-click, and choose “Install” + +OR + +Use https://chocolatey.org: + + choco install firacode + + +macOS +----- + +In the downloaded TTF folder: + +1. Select all font files +2. Right click and select `Open` (alternatively `Open With Font Book`) +3. Select "Install Font" + +OR + +Use http://brew.sh: + + `brew tap homebrew/cask-fonts` + `brew install font-fira-code` + + +Ubuntu Zesty (17.04), Debian Stretch (9) or newer +------------------------------------------------- + +1. Make sure that the `universe` (for Ubuntu) or `contrib` (for Debian) repository is enabled (see https://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository or https://wiki.debian.org/SourcesList#Component) +2. Install `fonts-firacode` package either by executing `sudo apt install fonts-firacode` in the terminal or via GUI tool (like “Software Center”) + + +Arch Linux +---------- + +Fira Code package is available in the official repository: https://www.archlinux.org/packages/community/any/ttf-fira-code/. + +Variant of Fira Code package is available in the AUR: https://aur.archlinux.org/packages/otf-fira-code-git/. + + +Gentoo +------ + + emerge -av media-fonts/fira-code + + +Fedora +------ + +To install, perform the following commands: + + dnf install fira-code-fonts + + +Solus +----- + +Fira Code package is available in the official repository: `font-firacode-ttf` and `font-firacode-otf`. +They can be installed by running: + + sudo eopkg install font-firacode-ttf font-firacode-otf + + +Void linux +---------- + + xbps-install font-firacode + + +Linux Manual Installation +------------------------- + +With most desktop-oriented distributions, double-clicking each font file in the ttf folder and selecting “Install font” should be enough. If it isn’t, create and run `download_and_install.sh` script: + + #!/usr/bin/env bash + + fonts_dir="${HOME}/.local/share/fonts" + if [ ! -d "${fonts_dir}" ]; then + echo "mkdir -p $fonts_dir" + mkdir -p "${fonts_dir}" + else + echo "Found fonts dir $fonts_dir" + fi + + for type in Bold Light Medium Regular Retina; do + file_path="${HOME}/.local/share/fonts/FiraCode-${type}.ttf" + file_url="https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true" + if [ ! -e "${file_path}" ]; then + echo "wget -O $file_path $file_url" + wget -O "${file_path}" "${file_url}" + else + echo "Found existing file $file_path" + fi; + done + + echo "fc-cache -f" + fc-cache -f + +More details: https://github.com/tonsky/FiraCode/issues/4 + + +FreeBSD +------- + +Using pkg(8): + + pkg install firacode + +OR + +Using ports: + + cd /usr/ports/x11-fonts/firacode && make install clean + + +Enabling ligatures +================== + +Atom +---- + +To change your font to Fira Code, open Atom's preferences (`cmd + ,` on a Mac, `ctrl + ,` on PC), make sure the "Settings" tab is selected, or the "Editor" in Atom 1.10+, and scroll down to "Editor Settings". In the "Font Family" field, enter `Fira Code`. + +If you wish to specify a font weight, for example, Light, use `Fira Code Light` as a font name (Windows) or `FiraCode-Light` (macOS). + +Ligatures are enabled by default in Atom 1.9 and above. + + +VS Code +------- + +To open the settings editor, first from the File menu choose Preferences, Settings or use keyboard shortcut `Ctrl + ,` (Windows) or `Cmd + ,` (macOS). + +To enable FiraCode in the settings editor, under "Commonly Used", expand the "Text Editor" settings and then click on "Font". In the "Font Family" input box type `Fira Code`, replacing any content. Tick the check box "Enables/Disables font ligatures" under "Font Ligatures" to enable the special ligatures. + +If you wish to specify a font weight, for example, Light, use `Fira Code Light` as a font name (Windows) or `FiraCode-Light` (macOS). + + +IntelliJ products +----------------- + +1. Enable in Settings → Editor → Font → Enable Font Ligatures +2. Select `Fira Code` as "Primary font" under Settings → Editor → Font + +Additionally, if a Color Scheme is selected: + +3. Enable in Settings → Editor → Color Scheme → Color Scheme Font → Enable Font Ligatures +4. Select Fira Code as "Primary font" under Settings → Editor → Color Scheme → Color Scheme Font + + +BBEdit, TextWrangler +-------------------- + +Run in your terminal: + + defaults write com.barebones.bbedit "EnableFontLigatures_Fira Code" -bool YES + +Source: https://www.barebones.com/support/bbedit/ExpertPreferences.html + + +Brackets +-------- + +1. From the `View` menu choose `Themes....` +2. Paste `'Fira Code'`, at the beginning of `Font Family` + + +Emacs +----- + +There are a few options when it comes down to using ligatures in +Emacs. They are listed in order of preferred to less-preferred. Pick one! + +1. Using composition mode in Emacs Mac port + +If you're using the latest Mac port of Emacs (https://bitbucket.org/mituharu/emacs-mac by Mitsuharu Yamamoto) for macOS, you can use: + + (mac-auto-operator-composition-mode) + +This is generally the easiest solution, but can only be used on macOS. + +2. Using prettify-symbols + +These instructions are pieced together by https://github.com/Triavanicus, taking some pieces from https://github.com/minad/hasklig-mode. + +This method requires you to install the Fira Code Symbol font, made by https://github.com/siegebell: +https://github.com/tonsky/FiraCode/issues/211#issuecomment-239058632 + + (defun fira-code-mode--make-alist (list) + "Generate prettify-symbols alist from LIST." + (let ((idx -1)) + (mapcar + (lambda (s) + (setq idx (1+ idx)) + (let* ((code (+ #Xe100 idx)) + (width (string-width s)) + (prefix ()) + (suffix '(?\s (Br . Br))) + (n 1)) + (while (< n width) + (setq prefix (append prefix '(?\s (Br . Bl)))) + (setq n (1+ n))) + (cons s (append prefix suffix (list (decode-char 'ucs code)))))) + list))) + + (defconst fira-code-mode--ligatures + '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" + "{-" "[]" "::" ":::" ":=" "!!" "!=" "!==" "-}" + "--" "---" "-->" "->" "->>" "-<" "-<<" "-~" + "#{" "#[" "##" "###" "####" "#(" "#?" "#_" "#_(" + ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" + "/**" "/=" "/==" "/>" "//" "///" "&&" "||" "||=" + "|=" "|>" "^=" "$>" "++" "+++" "+>" "=:=" "==" + "===" "==>" "=>" "=>>" "<=" "=<<" "=/=" ">-" ">=" + ">=>" ">>" ">>-" ">>=" ">>>" "<*" "<*>" "<|" "<|>" + "<$" "<$>" "\\)" #Xe113) + ("[^-]\\(->\\)" #Xe114) + ("\\(->>\\)" #Xe115) + ("\\(-<\\)" #Xe116) + ("\\(-<<\\)" #Xe117) + ("\\(-~\\)" #Xe118) + ("\\(#{\\)" #Xe119) + ("\\(#\\[\\)" #Xe11a) + ("\\(##\\)" #Xe11b) + ("\\(###\\)" #Xe11c) + ("\\(####\\)" #Xe11d) + ("\\(#(\\)" #Xe11e) + ("\\(#\\?\\)" #Xe11f) + ("\\(#_\\)" #Xe120) + ("\\(#_(\\)" #Xe121) + ("\\(\\.-\\)" #Xe122) + ("\\(\\.=\\)" #Xe123) + ("\\(\\.\\.\\)" #Xe124) + ("\\(\\.\\.<\\)" #Xe125) + ("\\(\\.\\.\\.\\)" #Xe126) + ("\\(\\?=\\)" #Xe127) + ("\\(\\?\\?\\)" #Xe128) + ("\\(;;\\)" #Xe129) + ("\\(/\\*\\)" #Xe12a) + ("\\(/\\*\\*\\)" #Xe12b) + ("\\(/=\\)" #Xe12c) + ("\\(/==\\)" #Xe12d) + ("\\(/>\\)" #Xe12e) + ("\\(//\\)" #Xe12f) + ("\\(///\\)" #Xe130) + ("\\(&&\\)" #Xe131) + ("\\(||\\)" #Xe132) + ("\\(||=\\)" #Xe133) + ("[^|]\\(|=\\)" #Xe134) + ("\\(|>\\)" #Xe135) + ("\\(\\^=\\)" #Xe136) + ("\\(\\$>\\)" #Xe137) + ("\\(\\+\\+\\)" #Xe138) + ("\\(\\+\\+\\+\\)" #Xe139) + ("\\(\\+>\\)" #Xe13a) + ("\\(=:=\\)" #Xe13b) + ("[^!/]\\(==\\)[^>]" #Xe13c) + ("\\(===\\)" #Xe13d) + ("\\(==>\\)" #Xe13e) + ("[^=]\\(=>\\)" #Xe13f) + ("\\(=>>\\)" #Xe140) + ("\\(<=\\)" #Xe141) + ("\\(=<<\\)" #Xe142) + ("\\(=/=\\)" #Xe143) + ("\\(>-\\)" #Xe144) + ("\\(>=\\)" #Xe145) + ("\\(>=>\\)" #Xe146) + ("[^-=]\\(>>\\)" #Xe147) + ("\\(>>-\\)" #Xe148) + ("\\(>>=\\)" #Xe149) + ("\\(>>>\\)" #Xe14a) + ("\\(<\\*\\)" #Xe14b) + ("\\(<\\*>\\)" #Xe14c) + ("\\(<|\\)" #Xe14d) + ("\\(<|>\\)" #Xe14e) + ("\\(<\\$\\)" #Xe14f) + ("\\(<\\$>\\)" #Xe150) + ("\\( Settings + +Add before "ignored_packages": + + "font_face": "Fira Code", + "font_options": ["subpixel_antialias"], + +If you want enable antialias, add in font_options: "gray_antialias" + + +Visual Studio +------------- + +1. Launch Visual Studio (2015 or later). +2. Launch the Options dialog by opening the "Tools" menu and selecting "Options". +3. In the Options dialog, under the "Environment" category, you'll find "Fonts and Colors". Click on that. You'll see a combo-box on the right hand side of the dialog labelled "Font". Select "Fira Code" from that combo-box. +4. Click "OK" to dismiss. +5. Restart Visual Studio. + +Now, most FiraCode ligatures will work. A notable exception is the hyphen-based ligatures (e.g. the C++ dereference '->'). See https://github.com/tonsky/FiraCode/issues/422 for details. + + +Troubleshooting +=============== + +See https://github.com/tonsky/FiraCode/wiki/Troubleshooting diff --git a/fonts/Fira_Code_v6.2/fira_code.css b/fonts/Fira_Code_v6.2/fira_code.css new file mode 100644 index 0000000..d215f82 --- /dev/null +++ b/fonts/Fira_Code_v6.2/fira_code.css @@ -0,0 +1,48 @@ +@font-face { + font-family: 'Fira Code'; + src: url('woff2/FiraCode-Light.woff2') format('woff2'), + url("woff/FiraCode-Light.woff") format("woff"); + font-weight: 300; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('woff2/FiraCode-Regular.woff2') format('woff2'), + url("woff/FiraCode-Regular.woff") format("woff"); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('woff2/FiraCode-Medium.woff2') format('woff2'), + url("woff/FiraCode-Medium.woff") format("woff"); + font-weight: 500; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('woff2/FiraCode-SemiBold.woff2') format('woff2'), + url("woff/FiraCode-SemiBold.woff") format("woff"); + font-weight: 600; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('woff2/FiraCode-Bold.woff2') format('woff2'), + url("woff/FiraCode-Bold.woff") format("woff"); + font-weight: 700; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code VF'; + src: url('woff2/FiraCode-VF.woff2') format('woff2-variations'), + url('woff/FiraCode-VF.woff') format('woff-variations'); + /* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */ + font-weight: 300 700; + font-style: normal; +} \ No newline at end of file diff --git a/fonts/Fira_Code_v6.2/specimen.html b/fonts/Fira_Code_v6.2/specimen.html new file mode 100644 index 0000000..6dce70b --- /dev/null +++ b/fonts/Fira_Code_v6.2/specimen.html @@ -0,0 +1,95 @@ + + +
+ + +