Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix kerning of default artii font rendering.
- Loading branch information
1 parent
e27b45e
commit efe3173
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'helper' | ||
|
||
describe Pompom::Asciifier do | ||
before do | ||
@asciifier = Pompom::Asciifier.new | ||
end | ||
|
||
# i.e. fix line 4: | ||
# ___ _ _ __ ___ | ||
# |__ \| || | __ |/ _ \ | ||
# ) | || |__) | | | | | ||
# / /|__ _| | | | | | | ||
# / /_ | | _| | |_| | | ||
# |____| |_|(_)_|\___/ | ||
it "fixes the problem with figlet font kerning" do | ||
@asciifier.asciify("24:10").must_equal [" ___ _ _ __ ___ ", " |__ \\| || | __ |/ _ \\ ", " ) | || |__) | | | |", " / /|__ _|| | | | |", " / /_ | | _| | |_| |", " |____| |_|(_)_|\\___/ ", " ", " "].join("\n") | ||
end | ||
end |