Created
February 5, 2014 02:39
-
-
Save TkTech/8816587 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import struct | |
from collections import namedtuple | |
Column = namedtuple('Column', 'start end') | |
with open('assets/minecraft/font/glyph_sizes.bin', 'rb') as fin: | |
sizes = [Column( | |
b >> 4, | |
b & 0x0F | |
) for b in struct.unpack('65536b', fin.read(65536))] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment