forked from productiontype/Spectral
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7d58bcc
Showing
7,458 changed files
with
231,285 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Production Type <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Spectral by Production Type | ||
=========================== | ||
|
||
Spectral is an original typeface primarily intended for use inside Google’s Docs and Slides. | ||
|
||
It supports Google Fonts Latin Pro glyph set, enabling the typesetting of English, Western European languages as well as Vietnamese and 130+ other languages. | ||
|
||
License | ||
------- | ||
|
||
Spectral is available under the SIL Open Font License v1.1, for more details see [OFL.txt](OFL.txt). | ||
|
||
Contributions | ||
------------- | ||
|
||
The project is led by Production Type, a digital type design agency based in Paris. | ||
To contribute ideas and feedback, see [github.com/productiontype/spectral](https://github.com/productiontype/spectral) | ||
|
||
|
||
Source Files | ||
------------ | ||
|
||
``` | ||
└── sources | ||
├── BUILD.txt # Contains informations to build the fonts | ||
├── hinting # Hinting control files | ||
│ ├── Spectral-Bold.ctrl | ||
│ ├── Spectral-BoldItalic.ctrl | ||
│ ├── Spectral-Italic.ctrl | ||
│ └── Spectral-Regular.ctrl | ||
├── fix_weightcodes.py | ||
├── generate_webfonts.sh # Create webfonts | ||
├── generate.sh # Interpolate instances and build TTF files | ||
├── post_generate_desktop.sh # Finish TTFs for desktop use | ||
├── post_generate_ttf.sh # Finish TTFs | ||
├── post_generate_web.sh # Finish TTFs for web use | ||
├── webfont_metadata.xml | ||
├── spectral-build-italic.designspace # Interpolation file | ||
├── spectral-build-roman.designspace # Interpolation file | ||
├── Spectral-Italic.ufo # UFO source master | ||
├── Spectral-Regular.ufo # UFO source master | ||
├── Spectral-XBold-Italic.ufo # UFO source master | ||
├── Spectral-XBold.ufo # UFO source master | ||
├── Spectral-XLight-Italic.ufo # UFO source master | ||
└── Spectral-XLight.ufo # UFO source master | ||
``` | ||
|
||
Build Instructions | ||
------------------ | ||
|
||
To build the fonts see [BUILD.txt](https://github.com/productiontype/spectral/sources/BUILD.txt). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Jean-Baptiste Levée | ||
Quentin Schmerber | ||
Dorine Sauzet | ||
Christoph Koeberlin | ||
Mathieu Réguer |
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.
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.
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.
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
Copyright 2017 Production Type ([email protected]) | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Spectral fonts build notes | ||
-------------------------------------------------------------------------------- | ||
|
||
0. Requirements | ||
|
||
- fontbakery: https://github.com/googlefonts/fontbakery | ||
- fontmake: https://github.com/googlei18n/fontmake | ||
- fonttools: https://github.com/fonttools/fonttools | ||
- sfnt2woff-zopfli: https://github.com/bramstein/sfnt2woff-zopfli | ||
- ttfautohint: https://www.freetype.org/ttfautohint/ | ||
- woff2_compress: https://github.com/google/woff2 | ||
- https://github.com/twardoch/fonttools-utils/tree/master/pyftfeatfreeze | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
1. Interpolate instances and build TTF files | ||
|
||
$ cd sources | ||
$ bash generate.sh | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
2. Finish TTFs | ||
|
||
$ cd instance_ttf | ||
$ bash post_generate_ttf.sh | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
3. Copy and finish TTFs for web use | ||
|
||
$ cd my/webfonts-folder | ||
$ bash post_generate_web.sh | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
4. Finish TTFs for desktop use | ||
|
||
$ cd instance_ttf | ||
$ bash post_generate_desktop.sh | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
5. Create webfonts | ||
|
||
$ cd my/webfonts-folder | ||
$ bash generate_webfonts.sh | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
6. Create SC family | ||
|
||
$ cd my/sc-folder | ||
$ bash post_generate_sc_family.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
|
||
# Fix weightcodes | ||
|
||
import sys, os | ||
from fontTools.ttLib import TTFont | ||
from fontTools.ttx import makeOutputFileName | ||
|
||
inputTTF = sys.argv[1] | ||
|
||
font = TTFont(inputTTF) | ||
filename = os.path.splitext(inputTTF)[0] | ||
extension = os.path.splitext(inputTTF)[1] | ||
|
||
wght={'Spectral-ExtraLight':[250,2],'Spectral-Light':[300,3],'Spectral-':[400,5],'Spectral-Medium':[500,6],'Spectral-SemiBold':[600,7],'Spectral-Bold':[700,8],'Spectral-ExtraBold':[800,9]} | ||
weightname = filename.replace('Regular','').replace('Italic','') | ||
font['OS/2'].panose.bWeight = wght[weightname][1] | ||
font['OS/2'].usWeightClass = wght[weightname][0] | ||
|
||
outputTTF = makeOutputFileName(inputTTF, '', extension) | ||
font.save(outputTTF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fontmake -m spectral-build-roman.designspace -i -o ttf | ||
fontmake -m spectral-build-italic.designspace -i -o ttf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
for i in *.ttf; do | ||
sfnt2woff-zopfli -m ../webfont_metadata.xml $i | ||
woff2_compress $i | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
uni0045 touch 19-20 yshift -0.375 @25-30 | ||
uni004C touch 9-10 yshift -0.375 @25-30 | ||
uni005A touch 9-10 yshift -0.375 @25-30 | ||
uni0047 touch 26-29 yshift -0.5 @21-24 | ||
uni0065 touch 25-26 yshift -1.0 @10-11 | ||
uni0065 touch 9-12 yshift -1.0 @10-11 | ||
uni20AC touch 6-9,26-29 yshift 0.25 @11 | ||
uni20AC touch 0-2,33-36,48 yshift -0.25 @11 | ||
uni0035 touch 17-21,26-30 yshift -1.0 @12,14-17 | ||
uni0036 touch 5-8 yshift -1.0 @12 | ||
uni0039 touch 0-2,17 yshift 1.0 @12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
uni0045 touch 19-20 yshift -0.375 @23-32 | ||
uni0069 touch 0-11 yshift -0.75 @30,33-35,48 | ||
uni20AC touch 0-2,31-34,48 yshift -0.75 @11 | ||
uni0035 touch 15-19,24-29 yshift -1.0 @16-17 | ||
uni0036 touch 5-8 yshift -0.5 @16-17 | ||
uni0039 touch 0-2,19 yshift 0.5 @16-20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
uni0062 left 6-9 | ||
uni0064 left 11-14 | ||
uni0068 left 3-6 | ||
uni006B left 2-5 | ||
uni006C left 5-8 | ||
uni0069 touch 0-11 yshift -0.75 @25-26,34-35,48 | ||
uni0075 right 10-11,24-25 | ||
uni0036 touch 5-8 yshift -0.5 @17-20 | ||
uni0039 touch 0-2,19 yshift 0.5 @16-21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
uni0032 touch 29-32 yshift -0.5 @16-18 | ||
uni0069 touch 0-11 yshift 1.0 @21-22,30 | ||
uni0069 touch 0-11 yshift -1.0 @27-29 | ||
uni0041 touch 11-12 yshift 0.375 @21-35 | ||
uni0045 touch 19-20 yshift -0.375 @21-35 | ||
uni004C touch 9-10 yshift -0.375 @21-35 | ||
uni005A touch 9-10 yshift -0.375 @21-35 | ||
uni0036 touch 5-8 yshift -1.0 @17-19 | ||
uni0039 touch 0-2,17 yshift 1.0 @17-19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
for i in *.ttf ; do | ||
fontbakery fix-fsselection --usetypometrics $i -e --no-coverage | ||
done | ||
for i in *.ttf ; do | ||
fontbakery fix-dsig $i -e --no-coverage | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
for i in *.ttf ; do | ||
fam_name="${i:0:8}SC-" | ||
style="${i:9:100}" | ||
sc_name=$fam_name$style | ||
pyftfeatfreeze.py -f 'smcp' -S -U SC $i $sc_name | ||
rm $i | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
for i in *.ttf; do | ||
python ../fix_weightcodes.py "$i" | ||
echo "Processing $i ..." | ||
done | ||
for i in *.ttf ; do mv $i ${i//#1/} ; done | ||
for i in Spectral-Regular Spectral-Bold Spectral-Italic Spectral-BoldItalic; do | ||
ttfautohint -i -n -f latn -m ../hinting/$i.ctrl $i.ttf $i.hinted.ttf | ||
echo "Hinting $i ..." | ||
done | ||
for i in Spectral-ExtraBold Spectral-ExtraBoldItalic Spectral-ExtraLight Spectral-ExtraLightItalic Spectral-Light Spectral-LightItalic Spectral-Medium Spectral-MediumItalic Spectral-SemiBold Spectral-SemiBoldItalic; do | ||
ttfautohint -i -n -f latn $i.ttf $i.hinted.ttf | ||
echo "Hinting $i ..." | ||
done | ||
for i in *.ttf ; do mv $i ${i//.hinted/} ; done | ||
for i in *.ttf ; do | ||
fontbakery fix-fstype $i -e --no-coverage | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
for i in *.ttf ; do | ||
fontbakery fix-vertical-metrics $i -e --no-coverage | ||
done |
Oops, something went wrong.