Add our new custom icon font and fix platform links

Fixes #1250, #1249
This commit is contained in:
Dawid Potocki
2019-09-09 10:21:33 +12:00
parent c03fd93d29
commit 060491c4a6
29 changed files with 709 additions and 96 deletions

5
font/Gemfile Normal file
View File

@ -0,0 +1,5 @@
# frozen_string_literal: true
source "https://rubygems.org"
gem "fontcustom", "~> 2.0"

27
font/Gemfile.lock Normal file
View File

@ -0,0 +1,27 @@
GEM
remote: https://rubygems.org/
specs:
ffi (1.11.1)
fontcustom (2.0.0)
json (~> 1.4)
listen (>= 1.0, < 4.0)
thor (~> 0.14)
json (1.8.6)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
ruby_dep (1.5.0)
thor (0.20.3)
PLATFORMS
ruby
DEPENDENCIES
fontcustom (~> 2.0)
BUNDLED WITH
2.0.1

13
font/LICENSE Normal file
View File

@ -0,0 +1,13 @@
Copyright (c) 2019, Dawid Potocki
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

11
font/Makefile Normal file
View File

@ -0,0 +1,11 @@
build:
bundle exec fontcustom compile -F
mv ptio-font.woff assets/webfonts
mv _sass/ptio-font.css ../_sass/ptio-font.scss
mv assets/webfonts/* ../assets/webfonts/
sed -i -e 's/..\/assets\//..\//g' ../_sass/ptio-font.scss
default:
build
.PHONY: build

12
font/README.md Normal file
View File

@ -0,0 +1,12 @@
# ptio-font
This font contains icons we need, which Font Awesome does not have.
| Name | CSS class | Issue |
|--- |--- |--- |
| F-Droid | `ptio-f-droid` | https://github.com/FortAwesome/Font-Awesome/issues/15492 |
| iOS | `ptio-ios` | https://github.com/FortAwesome/Font-Awesome/issues/4935 |
| macOS | `ptio-macos` | https://github.com/FortAwesome/Font-Awesome/issues/4936 |
| OpenBSD | `ptio-openbsd` | https://github.com/FortAwesome/Font-Awesome/issues/5345 |
| NetBSD | `ptio-netbsd` | https://github.com/FortAwesome/Font-Awesome/issues/15496 |
| Sailfish OS | `ptio-sailfish-os` | |

15
font/fontcustom.yml Normal file
View File

@ -0,0 +1,15 @@
font_name: ptio-font
css_selector: .ptio-{{glyph}}
preprocessor_path: ""
autowidth: false
no_hash: true
force: false
debug: false
quiet: false
input:
vectors: svg
output:
fonts: assets/webfonts
css: _sass

2
font/svg/f-droid.svg Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="112pc" height="112pc" version="1.1" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(39.518 0 0 39.518 -52.447 -39728)"><g transform="matrix(-1,0,0,1,48,0)"><path transform="matrix(-.036722 0 0 .036722 52.202 995.08)" d="m185.55 286.5a34.043 34.043 0 0 0-27.551 55.26l97.998 126.82c-3.4863 9.1033-5.4004 18.997-5.4004 29.355v190.62c0 45.259 36.434 81.695 81.693 81.695h871.41c45.259 0 81.695-36.436 81.695-81.695v-190.62c0-10.361-1.9162-20.258-5.4043-29.363l97.996-126.82a34.043 34.043 0 0 0-27.553-55.26 34.043 34.043 0 0 0-26.326 13.615l-93.279 120.71c-8.4826-2.9675-17.608-4.584-27.129-4.584h-871.41c-9.5223 0-18.649 1.6173-27.133 4.5859l-93.281-120.72a34.043 34.043 0 0 0-26.326-13.615zm320.34 231.86a91.907 91.907 0 0 1 91.906 91.906 91.907 91.907 0 0 1-91.906 91.908 91.907 91.907 0 0 1-91.908-91.908 91.907 91.907 0 0 1 91.908-91.906zm531.02 0a91.907 91.907 0 0 1 91.908 91.906 91.907 91.907 0 0 1-91.908 91.908 91.907 91.907 0 0 1-91.906-91.908 91.907 91.907 0 0 1 91.906-91.906z" color="#000000" color-rendering="auto" dominant-baseline="auto" fill-rule="evenodd" image-rendering="auto" shape-rendering="auto" solid-color="#000000" style="font-feature-settings:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;isolation:auto;mix-blend-mode:normal;shape-padding:0;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-orientation:mixed;text-transform:none;white-space:normal"/></g><path transform="matrix(.03167 0 0 .03167 -.92412 997.9)" d="m281.79 835.54c-52.479 0-94.727 42.248-94.727 94.727v631.51c0 52.479 42.248 94.729 94.727 94.729h1010.4c52.479 0 94.726-42.25 94.726-94.729v-631.51c0-52.479-42.248-94.727-94.726-94.727zm505.21 78.939c182.75 0 331.54 148.79 331.54 331.54s-148.79 331.54-331.54 331.54-331.54-148.79-331.54-331.54 148.79-331.54 331.54-331.54zm0 60.006c-150.33 0-271.54 121.21-271.54 271.54s121.21 271.54 271.54 271.54 271.54-121.21 271.54-271.54-121.21-271.54-271.54-271.54zm0 74.191c108.43 0 197.35 88.916 197.35 197.35s-88.918 197.35-197.35 197.35c-93.214 0-171.83-65.798-192.11-153.13h99.6c16.37 34.636 51.224 58.402 92.506 58.402 57.237 0 102.62-45.384 102.62-102.62s-45.384-102.62-102.62-102.62c-38.687 0-71.55 21-89.053 52.113h-101.45c22.527-84.172 99.543-146.84 190.5-146.84z"/></g></svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

2
font/svg/ios.svg Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="112pc" height="112pc" version="1.1" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="m8.3312 1326.3h148.19v-630.84h-148.19zm73.798-713.57c46.421 0 82.724-35.709 82.724-80.343 0-45.231-36.303-80.939-82.724-80.939-45.826 0-82.129 35.709-82.129 80.939 0 44.636 36.303 80.343 82.129 80.343zm567.78-159.5c-250.54 0-407.67 170.8-407.67 443.98 0 273.18 157.1 443.38 407.67 443.38 249.95 0 407.07-170.21 407.07-443.38 0-273.18-157.1-443.98-407.07-443.98zm0 130.94c152.95 0 250.54 121.4 250.54 313.04 0 191.04-97.601 312.45-250.54 312.45-153.55 0-250.54-121.4-250.54-312.45 0-191.64 97.007-313.04 250.54-313.04zm469.58 500.51c6.5465 158.32 136.29 255.91 333.87 255.91 207.7 0 338.64-102.36 338.64-265.43 0-127.95-73.798-199.97-248.17-239.83l-98.792-22.616c-105.34-24.995-148.79-58.323-148.79-115.46 0-71.417 65.465-119.02 162.47-119.02 98.198 0 165.45 48.207 172.59 128.54h146.41c-3.5709-151.17-128.54-253.53-317.8-253.53-186.88 0-319.6 102.96-319.6 255.31 0 122.59 74.988 198.78 233.29 235.08l111.29 26.187c108.31 25.591 152.36 61.298 152.36 123.19 0 71.416-72.012 122.59-175.56 122.59-104.74 0-183.89-51.777-193.41-130.94h-148.79z" stroke-width="15.236"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

2
font/svg/macos.svg Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="112pc" height="112pc" version="1.1" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1.1667 0 0 1.1667 5.3368e-6 -149.37)"><path d="m66.977 290.98c-37.105 0-66.977 29.871-66.977 66.977v1076.1c0 37.105 29.871 66.976 66.977 66.976h1402c37.105 0 66.977-29.871 66.977-66.976v-1076.1c0-37.105-29.871-66.977-66.977-66.977zm834.98 73.674h541.16c16.827 0 30.373 13.546 30.373 30.373v1002c0 16.827-13.546 30.373-30.373 30.373h-510.79c-16.266 0-29.464-12.658-30.326-28.701v-117.27c77.944-17.511 173.69-54.052 263.6-129.22 13.304-11.403 15.204-31.359 3.8008-44.662-6.2361-7.4832-15.278-11.358-24.42-11.344-7.1108 0.011-14.281 2.3744-20.24 7.2247-75.378 63.263-155.32 96.086-222.74 112.88v-120.26h-0.0469v-115.16h-229.95c67.954-375.04 120.4-550.11 229.95-616.19zm-523.31 171.91c19.789 0 35.721 15.931 35.721 35.721v142.88c0 19.789-15.931 35.721-35.721 35.721-19.789 0-35.721-15.931-35.721-35.721v-142.88c0-19.789 15.931-35.721 35.721-35.721zm12.455 559.59c7.0931 0.011 14.186 2.3744 20.006 7.2247 46.562 39.277 174.53 129.87 356.98 129.87 9.8192 0 22.172-0.3173 36.426-1.2676 1.7924-0.1258 3.64-0.2744 5.4941-0.4258v63.367c-16.553 1.3772-30.815 1.6758-41.92 1.6758-203.04 0-345.57-101.04-397.52-144.44-13.62-11.403-15.203-31.359-4.1172-44.662 6.4142-7.4832 15.535-11.358 24.654-11.344z" stroke-width="1.241"/><path d="m1157.4 536.56c19.789 0 35.721 15.932 35.721 35.721v142.88c0 19.789-15.932 35.721-35.721 35.721s-35.721-15.932-35.721-35.721v-142.88c0-19.789 15.932-35.721 35.721-35.721z" stroke-width="1.1761"/></g></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

2
font/svg/netbsd.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.3 KiB

2
font/svg/openbsd.svg Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="112pc" height="112pc" version="1.1" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1.1667 0 0 1.1667 .0055977 -149.33)"><path d="m710.45 180.84c-19.406 0-45.409 91.404-54.418 125.43-36.37 4.973-76.786 11.858-106.04 19.512-19.536-33.646-64.164-106.47-81.928-101.71-19.946 5.3445-20.32 112.48-20.062 141.12-27.765 14.41-53.676 31.224-76.557 45.797-28.738-28.403-87.469-83.402-102.89-74.496-19.622 11.329 14.894 133.73 18.414 146.01-19.612 20.04-36.341 42.023-51.861 61.045-36.21-20.434-102.5-55.205-114.65-43.059-16.86 16.86 56.828 138.36 56.828 138.36-18.339 44.374-35.848 90.606-45.537 132.99-23.74-12.204-49.443-34.393-75.617-34.098-19.351 0.41588-37.98 10.654-48.404 28.709-15.884 27.512-6.5238 62.45 20.988 78.334l82.982 47.908-81.854 47.258c-27.512 15.884-36.876 50.82-20.992 78.332s50.822 36.874 78.334 20.99l43.18-24.93c13.123 48.538 29.657 100.2 46.92 138.79 0 0-73.688 121.51-56.828 138.37 12.146 12.146 78.436-22.624 114.65-43.059 17.257 22.326 33.823 42.218 51.861 61.045-3.5196 12.282-38.036 134.69-18.414 146.01 15.426 8.9061 74.157-46.093 102.89-74.496 25.836 17.534 50.449 31.987 76.557 45.797-0.25725 28.64 0.11651 135.77 20.062 141.12 17.763 4.7591 62.395-68.077 81.932-101.72 36.476 8.8997 73.954 16.45 106.03 19.524 9.0089 34.03 35.012 125.43 54.418 125.43 19.469 0 45.568-91.963 54.494-125.72 35.829-3.1811 71.294-9.6184 105.96-19.232 19.536 33.646 64.166 106.48 81.93 101.72 19.946-5.3449 20.32-112.48 20.062-141.12 26.634-13.32 52.225-28.629 76.557-45.797 28.738 28.403 87.469 83.402 102.89 74.496 19.621-11.328-14.894-133.73-18.414-146.01 18.645-19.155 35.971-39.55 51.861-61.045 36.21 20.434 102.5 55.205 114.65 43.059 16.86-16.86-56.826-138.37-56.826-138.37 22.291-52.882 42.98-113.59 51.344-163.55h40.357c25.181 99.994 25.55 170.63 104.03 170.63 61.111-3.1032 107.42-120.81 94.471-200.37-83.531 177.17-126.17 46.06-125.72-63.852-0.4448-109.91 41.982-241.47 125.72-63.85 12.75-78.315-33.872-199.89-94.471-200.37-92.576 0.61343-94.144 122.33-108.72 191.67h-33.121c-8.4753-73.915-29.023-142.17-51.417-184.59 0 0 71.211-121.5 54.351-138.36-12.146-12.146-78.436 22.624-114.65 43.059-17.407-22.898-33.613-42.154-51.861-61.045 3.5196-12.282 38.036-134.69 18.414-146.01-15.426-8.9058-74.154 46.088-102.89 74.492-26.274-17.785-49.897-32.201-76.559-45.793 0.2572-28.64-0.1166-135.77-20.062-141.12-17.763-4.7596-62.393 68.076-81.93 101.72-34.661-9.614-70.126-16.051-105.96-19.232-8.9264-33.762-35.025-125.72-54.494-125.72zm283.43 425.74c3.4956-0.0927 6.167 0.56346 7.7578 2.1543 14.545 14.545-49.025 119.37-49.025 119.37l-70.344-70.344s83.148-50.425 111.61-51.18zm-647.81 84.875h192.06c12.137 18.614 18.605 40.353 18.617 62.574 4.6e-4 63.34-51.347 114.69-114.69 114.69-63.34 4.6e-4 -114.69-51.347-114.69-114.69 0.0359-22.229 6.531-43.969 18.695-62.574zm637.48 162.26s119.07 29.171 119.07 49.74c0 20.57-119.07 49.74-119.07 49.74zm-66.941 210.18s63.568 104.82 49.023 119.37c-14.545 14.545-119.37-49.025-119.37-49.025z" stroke-width="8.3487"/><path d="m408 726.76a34.691 34.691 0 0 0-34.691 34.691 34.691 34.691 0 0 0 34.691 34.69 34.691 34.691 0 0 0 34.69-34.69 34.691 34.691 0 0 0-34.69-34.691z" stroke-width="9.812"/></g></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

2
font/svg/sailfish-os.svg Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="112pc" height="112pc" version="1.1" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(7.3488 0 0 -7.3488 839.19 788.88)" stroke-width="2.0548"><path d="m0 0c-5.436 5.189-10.655 10.292-14.424 16.118 10.821 17.852 35.603 29.491 42.766 32.567 3.799-3.851 13.994-12.784 28.251-14.54-5.911-2.066-42.886-15.562-56.593-34.145m16.23-40.668c-1.516-17.504-12.45-32.341-27.264-44.599 3.551 5.637 6.22 12.108 6.838 19.25 1.45 16.732-9.908 28.213-20.893 39.316-11.174 11.296-21.729 21.965-20.347 37.925 1.61 18.58 12.841 35.372 26.615 49.286-3.815-6.819-6.935-14.427-7.573-21.788-1.79-20.662 11.366-33.204 22.973-44.27 10.781-10.278 20.963-19.985 19.651-35.12m-75.392-72.687c15.585 11.429 27.804 25.866 34.681 41.551 4.45 10.149 6.28 20.036 5.471 29.174 5.498-6.816 9.224-14.045 8.462-22.836-1.929-22.273-28.501-38.167-28.882-38.392l0.016-0.026c-6.583-3.515-13.264-6.671-19.748-9.471m76.105 163.72c-10.345-5.332-25.504-14.743-34.753-27.782-1.847 4.586-2.743 9.682-2.232 15.587 1.5 17.306 19.64 37.524 22.497 40.61 10.631 7.899 20.769 13.98 27.665 17.816-4.986-10.403-12.16-28.227-13.177-46.231m109.34 5.306c-0.613 1.629-2.419 2.467-4.055 1.881l-23.258-8.298c-9.765-3.199-21.12-6.536-30.934-8.413-21.14-4.037-36.274 13.51-36.421 13.683-0.873 1.041-2.311 1.414-3.581 0.928-0.29-0.111-1.926-0.749-4.436-1.876 2.578 24.597 16.668 48.7 16.822 48.96 0.712 1.205 0.555 2.734-0.387 3.769s-2.448 1.334-3.715 0.739c-0.846-0.399-20.961-9.946-41.985-26.362-28.574-22.312-44.091-45.497-46.119-68.91-1.637-18.897 10.464-31.129 22.167-42.959 0.671-0.678 1.339-1.353 2.002-2.027 3.96-10.504 3.038-22.943-2.701-36.032-10.274-23.434-33.415-43.963-61.901-54.916-9.022-3.468-16.591-6.117-16.666-6.144-1.583-0.552-2.466-2.236-2.023-3.852 0.386-1.407 1.663-2.345 3.071-2.345 0.21 0 0.421 0.021 0.633 0.064 4.785 0.964 35.342 9.014 65.062 23.984 2.029 1.022 3.998 2.056 5.933 3.095l1e-3 -2e-3c8e-3 5e-3 0.031 0.018 0.041 0.025 36.781 19.767 56.547 42.661 58.752 68.117 1.407 16.237-7.837 26.931-17.944 36.769 12.754 18.446 54.308 32.665 54.785 32.827l41.015 14.633c13.022 4.246 23.293 8.285 24.029 8.576 1.618 0.639 2.425 2.457 1.813 4.086"/></g></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB