Skip to content

Commit

Permalink
GH-25: generate fonts in OTB format via fonttosfnt
Browse files Browse the repository at this point in the history
Thanks to @j-n-f for showing how to properly generate these OTB files:

#25 (comment)
  • Loading branch information
sunaku committed May 3, 2020
1 parent 15e61cc commit 9074a32
Show file tree
Hide file tree
Showing 30 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ You can build the Tamzen fonts for yourself by running these commands:

### Requirements

sudo apt-get install ruby git imagemagick mercurial bdftopcf bdf2psf
sudo apt-get install ruby git imagemagick mercurial bdftopcf bdf2psf fonttosfnt
gem install bundler
bundle install

Expand Down
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ task 'default' => %w[
.powerline
.console
.portable
.opentype
.fontforge
.screenshots
]
Expand Down Expand Up @@ -220,6 +221,17 @@ file '.portable' => ['pcf', '.tamzen', '.powerline'] do
end
CLOBBER.include '.portable', 'pcf'

directory 'otb'
desc 'Build Tamzen fonts in OpenType Bitmap (OTB) format.'
file '.opentype' => ['otb', '.tamzen', '.powerline'] do
FileList['bdf/Tamzen*.bdf'].each do |src|
dst = src.gsub('bdf', 'otb')
sh 'fonttosfnt', '-o', dst, '--', src
end
touch '.opentype'
end
CLOBBER.include '.opentype', 'otb'

FONTFORGE_FORMATS = [
'dfont', # Apple bitmap only sfnt (dfont)
'fnt', # Win FNT
Expand Down
Binary file added otb/Tamzen10x20b.otb
Binary file not shown.
Binary file added otb/Tamzen10x20r.otb
Binary file not shown.
Binary file added otb/Tamzen5x9b.otb
Binary file not shown.
Binary file added otb/Tamzen5x9r.otb
Binary file not shown.
Binary file added otb/Tamzen6x12b.otb
Binary file not shown.
Binary file added otb/Tamzen6x12r.otb
Binary file not shown.
Binary file added otb/Tamzen7x13b.otb
Binary file not shown.
Binary file added otb/Tamzen7x13r.otb
Binary file not shown.
Binary file added otb/Tamzen7x14b.otb
Binary file not shown.
Binary file added otb/Tamzen7x14r.otb
Binary file not shown.
Binary file added otb/Tamzen8x15b.otb
Binary file not shown.
Binary file added otb/Tamzen8x15r.otb
Binary file not shown.
Binary file added otb/Tamzen8x16b.otb
Binary file not shown.
Binary file added otb/Tamzen8x16r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline10x20b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline10x20r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline5x9b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline5x9r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline6x12b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline6x12r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline7x13b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline7x13r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline7x14b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline7x14r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline8x15b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline8x15r.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline8x16b.otb
Binary file not shown.
Binary file added otb/TamzenForPowerline8x16r.otb
Binary file not shown.

0 comments on commit 9074a32

Please sign in to comment.