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 16, 2020
1 parent e58a769 commit 7477526
Show file tree
Hide file tree
Showing 31 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/.powerline
/.console
/.portable
/.opentype
/.truetype
/.screenshots
/bitmap-font-patcher
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ You can build the Tamzen fonts for yourself by running these commands:

### Requirements

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

Expand Down
16 changes: 16 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ task 'default' => %w[
.console
.portable
.truetype
.opentype
.screenshots
]

Expand Down Expand Up @@ -231,6 +232,21 @@ file '.portable' => %w[ pcf .bitmap ] do |t|
end
CLOBBER.include %w[ .portable pcf ]

#-----------------------------------------------------------------------------
# opentype
#-----------------------------------------------------------------------------

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

#-----------------------------------------------------------------------------
# truetype
#-----------------------------------------------------------------------------
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 7477526

Please sign in to comment.