Skip to content

Commit

Permalink
Move fira to submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
injust authored and ToxicFrog committed Aug 31, 2018
1 parent 81470dc commit a9e2495
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "fira"]
path = fira
url = https://github.com/tonsky/FiraCode
1 change: 1 addition & 0 deletions fira
Submodule fira added at 30862e
Binary file removed fira/FiraCode-Bold.otf
Binary file not shown.
Binary file removed fira/FiraCode-Light.otf
Binary file not shown.
Binary file removed fira/FiraCode-Medium.otf
Binary file not shown.
Binary file removed fira/FiraCode-Regular.otf
Binary file not shown.
Binary file removed fira/FiraCode-Retina.otf
Binary file not shown.
8 changes: 4 additions & 4 deletions ligaturize.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def get_ligature_source(fontname):
for weight in ['Bold', 'Retina', 'Medium', 'Regular', 'Light']:
if fontname.endswith('-' + weight):
# Exact match for one of the Fira Code weights
return 'fira/FiraCode-%s.otf' % weight
return 'fira/distr/otf/FiraCode-%s.otf' % weight

# No exact match. Guess that we want 'Bold' if the font name has 'Bold' in
# it, and 'Regular' otherwise.
if 'Bold' in fontname:
return 'fira/FiraCode-Bold.otf'
return 'fira/FiraCode-Regular.otf'
return 'fira/distr/otf/FiraCode-Bold.otf'
return 'fira/distr/otf/FiraCode-Regular.otf'

class LigatureCreator(object):

Expand Down Expand Up @@ -240,7 +240,7 @@ def parse_args():
parser.add_argument("--ligature-font-path",
type=str, default='', metavar='PATH',
help="The file to copy ligatures from. If unspecified, ligaturize will"
" attempt to pick a suitable one from fira/ based on the input"
" attempt to pick a suitable one from fira/distr/otf/ based on the input"
" font's weight.")
parser.add_argument("--copy-character-glyphs",
default=False, action='store_true',
Expand Down

0 comments on commit a9e2495

Please sign in to comment.