Skip to content
This repository

Initial build script for SourceSansPro #9

Merged
merged 4 commits into from over 1 year ago

2 participants

Paul Picazo Miguel Sousa
Paul Picazo
Collaborator

Basically just the same as SourceCodePro.

Miguel Sousa
Collaborator

Paul, please create two folders named 'OTF' and 'TTF' inside the 'target' folder as I did in Source Code. This way there's less chance that people will install the two formats at the same time.

Also, the .gitignore file needs to contain the paths to the binaries within the repo, because internally we don't send the builds to the 'target' folder.
Thanks.

Paul Picazo
Collaborator

Sure, will do.

Miguel Sousa
Collaborator

Oh, one last thing, I think no one really cares that much about the '.fpr' files, so you can omit the '-sp' option in the build commands.

Paul Picazo
Collaborator

Done

Miguel Sousa
Collaborator

Awesome.

Miguel Sousa miguelsousa merged commit 2cd266d into from October 01, 2012
Miguel Sousa miguelsousa closed this October 01, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 51 additions and 0 deletions. Show diff stats Hide diff stats

  1. 25  .gitignore
  2. 26  build.sh
25  .gitignore
... ...
@@ -0,0 +1,25 @@
  1
+target/
  2
+Roman/Black/SourceSansPro-Black.otf
  3
+Roman/Black/SourceSansPro-Black.ttf
  4
+Roman/Bold/SourceSansPro-Bold.otf
  5
+Roman/Bold/SourceSansPro-Bold.ttf
  6
+Roman/ExtraLight/SourceSansPro-ExtraLight.otf
  7
+Roman/ExtraLight/SourceSansPro-ExtraLight.ttf
  8
+Roman/Light/SourceSansPro-Light.otf
  9
+Roman/Light/SourceSansPro-Light.ttf
  10
+Roman/Regular/SourceSansPro-Regular.otf
  11
+Roman/Regular/SourceSansPro-Regular.ttf
  12
+Roman/Semibold/SourceSansPro-Semibold.otf
  13
+Roman/Semibold/SourceSansPro-Semibold.ttf
  14
+Italic/BlackIt/SourceSansPro-BlackIt.otf
  15
+Italic/BlackIt/SourceSansPro-BlackIt.ttf
  16
+Italic/BoldIt/SourceSansPro-BoldIt.otf
  17
+Italic/BoldIt/SourceSansPro-BoldIt.ttf
  18
+Italic/ExtraLightIt/SourceSansPro-ExtraLightIt.otf
  19
+Italic/ExtraLightIt/SourceSansPro-ExtraLightIt.ttf
  20
+Italic/LightIt/SourceSansPro-LightIt.otf
  21
+Italic/LightIt/SourceSansPro-LightIt.ttf
  22
+Italic/It/SourceSansPro-It.otf
  23
+Italic/It/SourceSansPro-It.ttf
  24
+Italic/SemiboldIt/SourceSansPro-SemiboldIt.otf
  25
+Italic/SemiboldIt/SourceSansPro-SemiboldIt.ttf
26  build.sh
... ...
@@ -0,0 +1,26 @@
  1
+#!/bin/sh
  2
+
  3
+family=SourceSansPro
  4
+romanWeights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold')
  5
+italicWeights=('BlackIt' 'BoldIt' 'ExtraLightIt' 'LightIt' 'It' 'SemiboldIt')
  6
+
  7
+# clean existing build artifacts
  8
+rm -rf target/
  9
+mkdir target/
  10
+mkdir target/OTF/
  11
+mkdir target/TTF/
  12
+
  13
+for w in ${romanWeights[@]};
  14
+do
  15
+  makeotf -f Roman/$w/font.pfa -r -o target/OTF/$family-$w.otf
  16
+  makeotf -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/TTF/$family-$w.ttf
  17
+  rm Roman/$w/current.fpr # remove default options file from the source tree after building
  18
+done
  19
+
  20
+for w in ${italicWeights[@]};
  21
+do
  22
+  makeotf -f Italic/$w/font.pfa -r -o target/OTF/$family-$w.otf
  23
+  makeotf -f Italic/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/TTF/$family-$w.ttf
  24
+  rm Italic/$w/current.fpr # remove default options file from the source tree after building
  25
+done
  26
+
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.