Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(font): add new font which is called Twilio Sans Mono #1465

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/scripts/generate-font-image-previews.sh
Expand Up @@ -119,6 +119,7 @@ image_font_files=( \
'SpaceMono/Regular/SpaceMonoNerdFont-Regular.ttf' \
'Terminus/Regular/TerminessNerdFont-Regular.ttf' \
'Tinos/Regular/TinosNerdFont-Regular.ttf' \
'TwilioSansMono/TwilioSansMNerdFont-Regular.ttf' \
'Ubuntu/Regular/UbuntuNerdFont-Regular.ttf' \
'UbuntuMono/Regular/UbuntuMonoNerdFont-Regular.ttf' \
'VictorMono/Regular/VictorMonoNerdFont-Regular.ttf' \
Expand Down
11 changes: 11 additions & 0 deletions bin/scripts/lib/fonts.json
Expand Up @@ -671,6 +671,17 @@
"repoRelease": true,
"description": "Some similarities to Times New Roman, designed by Steve Matteson, includes pan-European WGL character set"
},
{
"unpatchedName": "Twilio Sans Mono",
"RNF": true,
"patchedName": "TwilioSansM",
"folderName": "TwilioSansMono",
"imagePreviewFont": "TwilioSansM Nerd Font",
"linkPreviewFont": "twilio-sans-mono",
"caskName": "twilio-sans-mono",
"repoRelease": false,
"description": "A beautiful and extensive open source programming font"
},
{
"unpatchedName": "Ubuntu",
"RFN": false,
Expand Down
15 changes: 8 additions & 7 deletions bin/scripts/name_parser/FontnameTools.py
Expand Up @@ -334,18 +334,18 @@ def is_keep_regular(basename):
'Cousine',
'Fantasque',
'Fira',

'Overpass',
'Lilex',
'Inconsolata$', # not InconsolataGo
'Hack',
'IAWriter',
'Inconsolata$', # not InconsolataGo
'JetBrains Mono',
'Lilex',
'Meslo',
'Monoid',
'Mononoki',
'Hack',
'JetBrains Mono',
'Noto Sans',
'Noto Serif',
'Overpass',
'Twilio',
'Victor',
]
for kr in KEEP_REGULAR:
Expand Down Expand Up @@ -374,10 +374,11 @@ def parse_font_name(name):
"""Expects a fontname following the 'FontFamilyName-FontStyle' pattern and returns ... parts"""
# This could parse filenames in the beginning but that was never used in production; code removed with this commit
for special in [
('ExBld', 'ExtraBold'), # Twilio
('ExtLt', 'ExtraLight'), # IBM-Plex
('Medm', 'Medium'), # IBM-Plex
('Semi-Condensed', 'SemiCondensed'), # 3270
('SmBld', 'SemiBold'), # IBM-Plex
('SmBld', 'SemiBold'), # IBM-Plex, Twilio
]:
name = re.sub(r'\b' + special[0] + r'\b', special[1], name, 1, re.IGNORECASE)
name = re.sub('[_\s]+', ' ', name)
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Expand Up @@ -171,6 +171,7 @@ See [Wiki: Icon names in shell][wiki-icon-names-in-shell]
| [Space Mono Nerd Font][p-space-mono] | [Space Mono][f-space] | 1.001 | NO | ![w] ![m2] ![l] |
| [Terminess Nerd Font][p-terminus] | [Terminus TTF][f-terminus] |4.49.2 | YES | ![w] ![m2] ![l] |
| [Tinos][p-tinos] | [Tinos][f-tinos] | 1.23 | NO | ![w] ![m2] ![l] |
| [Twilio SansM Nerd Font][p-twilio] | [Twilio Sans Mono][f-twilio] | 2.100 | YES | ![w] ![m2] ![l] |
| [Ubuntu Nerd Font][p-ubuntu] | [Ubuntu Font][f-ubuntu] | 0.83 | NO | ![w] ![m2] ![l] |
| [Ubuntu Mono Nerd Font][p-ubuntu-mono] | [Ubuntu Font][f-ubuntu] | 0.80 | NO | ![w] ![m2] ![l] |
| [Victor Mono][p-victor] | [Victor Mono][f-victor] | 1.5.4 | NO | ![w] ![m2] ![l] |
Expand Down Expand Up @@ -676,6 +677,7 @@ Font repos
[f-space]:https://fonts.google.com/specimen/Space+Mono
[f-terminus]:http://terminus-font.sourceforge.net
[f-tinos]:https://fonts.google.com/specimen/Tinos
[f-twilio]:https://github.com/twilio/twilio-sans-mono
[f-ubuntu]:http://font.ubuntu.com
[f-victor]:https://github.com/rubjo/victor-mono

Expand Down Expand Up @@ -741,6 +743,7 @@ Patched Font internal links
[p-space-mono]:patched-fonts/SpaceMono
[p-terminus]:patched-fonts/Terminus
[p-tinos]:patched-fonts/Tinos
[p-twilio]:patched-fonts/TwilioSansMono
[p-ubuntu-mono]:patched-fonts/UbuntuMono
[p-ubuntu]:patched-fonts/Ubuntu
[p-victor]:patched-fonts/VictorMono
Expand Down
112 changes: 112 additions & 0 deletions src/unpatched-fonts/TwilioSansMono/LICENSE.txt
@@ -0,0 +1,112 @@
Copyright (c) <2020>, <Sharp Type Corporation> (<URL|email>),
with Reserved Font Names set forth below <Twilio Sans Mono or as included below, as applicable>   
■ Twilio Sans Mono Retina
■ Twilio Sans Mono Retina Italic
■ Twilio Sans Mono Regular
■ Twilio Sans Mono Regular Italic
■ Twilio Sans Mono Bold
■ Twilio Sans Mono Bold Italic
■ Twilio Sans Mono Light
■ Twilio Sans Mono Light Italic
■ Twilio Sans Mono Medium
■ Twilio Sans Mono Medium Italic
■ Twilio Sans Mono Semi-bold
■ Twilio Sans Mono Semi-bold Italic
■ Twilio Sans Mono Extrabold
■ Twilio Sans Mono Extrabold Italic
■ Twilio Sans Mono Heavy
■ Twilio Sans Mono Heavy Italic


This Font Software is licensed by Twilio Inc. with permission of the Copyright Holder 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.
11 changes: 11 additions & 0 deletions src/unpatched-fonts/TwilioSansMono/README.md
@@ -0,0 +1,11 @@
# Twilio Sans Mono

**Twilio Sans Mono** is a distinct programming font designed to fit the needs of every developer — no matter
their code editor, no matter their preferred programming language, and no matter their project. You can
download Twilio Sans Mono for free today and use it in your favorite code editor.

For more information have a look at the upstream website: https://github.com/twilio/twilio-sans-mono

The `ldot` ligatures are removed because they map to only one advance width.

Version: 2.100
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions src/unpatched-fonts/TwilioSansMono/config.cfg
@@ -0,0 +1 @@
config_patch_flags="--makegroups 4"
3 changes: 3 additions & 0 deletions src/unpatched-fonts/TwilioSansMono/config.json
@@ -0,0 +1,3 @@
[Subtables]
ligatures: [
"Ligature Substitution lookup 121 subtable" ]