Skip to content

Commit

Permalink
idempotent BDF to TTF conversion (no timestamps)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Feb 25, 2023
1 parent 0c1f8b5 commit 48bfd10
Show file tree
Hide file tree
Showing 31 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN apt-get install -y locales \
&& sed -i "s/^# $LANG/$LANG/" /etc/locale.gen \
&& locale-gen

# for BitsNPicas
RUN apt-get install -y openjdk-11-jdk-headless

# for bitmap-font-patcher
RUN apt-get install -y python python-fontforge python-pip python-dev libfreetype6-dev
RUN pip install bdflib Pillow
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ You can build the Tamzen fonts for yourself by running these commands:
But first, you'll need to install these dependencies (assuming Debian):

# NOTE: the "xfonts-utils" package provides both bdftopcf(1) and fonttosfnt(1)
sudo apt-get install ruby git imagemagick xfonts-utils bdf2psf default-jre gbdfed
sudo apt-get install ruby git imagemagick xfonts-utils bdf2psf default-jre gbdfed openjdk-11-jdk-headless
gem install bundler -v 2.3.26
bundle install

Expand Down
12 changes: 9 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ CLOBBER.include %w[ .opentype otb ]

directory 'ttf'
desc 'Build Tamzen fonts in TrueType (TTF) format.'
file '.truetype' => %w[ ttf .bitmap bitsnpicas/downloads/BitsNPicas.jar ] do |t|
file '.truetype' => %w[ ttf .bitmap bitsnpicas/main/java/BitsNPicas/BitsNPicas.jar ] do |t|
FileList['bdf/Tamzen*.bdf'].each do |src|
dst = src.gsub('bdf', 'ttf')
sh 'java', '-jar', t.prerequisites.last,
Expand All @@ -297,8 +297,14 @@ file '.truetype' => %w[ ttf .bitmap bitsnpicas/downloads/BitsNPicas.jar ] do |t|
end
CLOBBER.include %w[ .truetype ttf ]

file 'bitsnpicas/downloads/BitsNPicas.jar' do
sh 'git', 'clone', 'https://github.com/kreativekorp/bitsnpicas'
file 'bitsnpicas/main/java/BitsNPicas/BitsNPicas.jar' do
sh 'git', 'clone', 'https://github.com/sunaku/bitsnpicas'
cd 'bitsnpicas' do
sh 'git', 'checkout', 'timeless'
cd 'main/java/BitsNPicas' do
sh 'make', 'BitsNPicas.jar'
end
end
end

#-----------------------------------------------------------------------------
Expand Down
Binary file modified ttf/Tamzen10x20b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen10x20r.ttf
Binary file not shown.
Binary file modified ttf/Tamzen5x9b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen5x9r.ttf
Binary file not shown.
Binary file modified ttf/Tamzen6x12b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen6x12r.ttf
Binary file not shown.
Binary file modified ttf/Tamzen7x13b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen7x13r.ttf
Binary file not shown.
Binary file modified ttf/Tamzen7x14b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen7x14r.ttf
Binary file not shown.
Binary file modified ttf/Tamzen8x15b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen8x15r.ttf
Binary file not shown.
Binary file modified ttf/Tamzen8x16b.ttf
Binary file not shown.
Binary file modified ttf/Tamzen8x16r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline10x20b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline10x20r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline5x9b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline5x9r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline6x12b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline6x12r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline7x13b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline7x13r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline7x14b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline7x14r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline8x15b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline8x15r.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline8x16b.ttf
Binary file not shown.
Binary file modified ttf/TamzenForPowerline8x16r.ttf
Binary file not shown.

0 comments on commit 48bfd10

Please sign in to comment.