Skip to content

Instantly share code, notes, and snippets.

@TkTech
Created February 5, 2014 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TkTech/8816587 to your computer and use it in GitHub Desktop.
Save TkTech/8816587 to your computer and use it in GitHub Desktop.
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