Permalink
Browse files

programatically generate screenshots for all fonts

  • Loading branch information...
1 parent c75d317 commit 26cca864fc6b936888373b6981d7059e93b5789b @sunaku committed Mar 5, 2012
View
@@ -1,8 +1,6 @@
Tamzen font
===========
-[![screenshot](http://omploader.org/tYzBqcQ)](http://omploader.org/vYzBqcQ)
-
This is [my personal fork][1] of the wonderful [Tamsyn font][2] by Scott Fial.
It is programatically forked from Tamsyn version 1.8 by the `Tamzen.rb` script
(needs `gem install grit` library) and diverges from it in the following ways:
@@ -16,6 +14,21 @@ It is programatically forked from Tamsyn version 1.8 by the `Tamzen.rb` script
* Deliberately empty glyphs are deleted (marked as unimplemented) so that they
do not block secondary fonts from supplying real glyphs at those codepoints.
+Screenshots
+-----------
+
+[![Vim and Urxvt](http://omploader.org/tYzBqcQ)](http://omploader.org/vYzBqcQ)
+![Tamzen6x11b.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen6x11b.png)
+![Tamzen6x11r.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen6x11r.png)
+![Tamzen7x12b.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen7x12b.png)
+![Tamzen7x12r.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen7x12r.png)
+![Tamzen7x14b.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen7x14b.png)
+![Tamzen7x14r.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen7x14r.png)
+![Tamzen8x15b.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen8x15b.png)
+![Tamzen8x15r.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen8x15r.png)
+![Tamzen8x17b.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen8x17b.png)
+![Tamzen8x17r.bdf](https://github.com/sunaku/tamzen-font/raw/master/Tamzen8x17r.png)
+
Installation
------------
View
@@ -0,0 +1,28 @@
+INDEX = 'fonts.dir'
+FONTS = FileList['*.bdf']
+
+file INDEX => 'Tamzen.rb' do |t|
+ ruby t.prerequisites[0]
+ sh 'mkfontdir'
+end
+
+FONTS.each do |bdf|
+ png = bdf.ext('png')
+ file png => [bdf, INDEX] do
+ sh 'convert',
+ '-font', `fgrep #{bdf} #{INDEX} | cut -d' ' -f2`.chomp,
+ 'label:' + [
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ 12345',
+ 'abcdefghijklmnopqrstuvwxyz 67890',
+ '{}[]()<>$*-+=/#_%^@\\\\&|~?\'"`!,.;:',
+ "Illegal1i = oO0 #{bdf}",
+ ].join("\n"),
+ '-bordercolor', 'white',
+ '-border', '5',
+ '-strip',
+ png
+ end
+ task :render => png
+end
+
+task :default => [INDEX, :render]
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26cca86

Please sign in to comment.