idempotent BDF to TTF conversion (no timestamps)

https://github.com/kreativekorp/bitsnpicas/issues/35
This commit is contained in:
Suraj N. Kurapati 2023-02-24 10:17:20 -08:00
parent 4f4741dec8
commit 2c7a9c82fb
31 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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,
@ -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
#-----------------------------------------------------------------------------

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.