Skip to content

Commit

Permalink
Fix error in AnsiGraphics
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy committed Aug 8, 2018
1 parent 88ae8e4 commit d5091d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AnsiGraphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, font_file):
Fonts are files with a sequence of bits specifying 8x16 characters.
"""
# Read the font
f = open("vga.fnt", "rb")
f = open(font_file, "rb")
in_bits = []
try:
byte = f.read(1)
Expand Down Expand Up @@ -82,4 +82,4 @@ def coloured_char(self, char_idx, fg_idx, bg_idx):
Returns the font character with the given index and given fore and back colours as an RGP bitmap.
"""
return self.colour_chars[char_idx][fg_idx][bg_idx]


0 comments on commit d5091d4

Please sign in to comment.