Skip to content

Instantly share code, notes, and snippets.

@piec
Created December 5, 2015 12:26
Show Gist options
  • Save piec/0dd5d291f98998bdb15f to your computer and use it in GitHub Desktop.
Save piec/0dd5d291f98998bdb15f to your computer and use it in GitHub Desktop.
// X XX X X
// X X
// XX X X XXXX XXX XXX X XX XXX XXXX XXX X XXX
// X X X X X X X X X X XX X X X X X X
// X X X X X X XXXXX X X XXXX X X X XXXX
// X X X X X X X X X X X X X X X X
// X X X X X XXXX XXX X XXXX X X X XXXX
package minecraftia
import "github.com/pbnjay/pixfont"
var Font *pixfont.PixFont
func init() {
charMap := map[int32]uint16{122: 0x122, 74: 0x181, 52: 0x160, 77: 0x163, 80: 0x60, 114: 0xa1, 90: 0xe1, 116: 0x63, 70: 0x161, 73: 0x2, 69: 0x22, 106: 0x23, 68: 0x1, 119: 0x1c2, 82: 0x83, 104: 0xc0, 107: 0xc2, 53: 0x80, 71: 0xa2, 76: 0x162, 113: 0x40, 57: 0x42, 56: 0x62, 67: 0x140, 84: 0xe0, 89: 0x102, 120: 0x121, 121: 0x1a1, 112: 0x1e0, 97: 0x61, 101: 0xa0, 85: 0x141, 54: 0x103, 110: 0x120, 79: 0x1a3, 55: 0x41, 81: 0x82, 102: 0xa3, 118: 0x143, 108: 0x180, 51: 0x1a0, 87: 0x1c0, 78: 0x81, 117: 0xc3, 49: 0x123, 75: 0xe2, 103: 0x142, 72: 0x43, 83: 0xc1, 99: 0x1c1, 86: 0x3, 115: 0x1e1, 100: 0x20, 98: 0x182, 66: 0x1a2, 48: 0x0, 109: 0xe3, 65: 0x183, 105: 0x1c3, 111: 0x21, 50: 0x100, 88: 0x101}
data := []uint32{0x221c1e0e, 0x22082211, 0x22082219, 0x22082215, 0x14082213, 0x14082211, 0x81c1e0e, 0x0, 0x103e0010, 0x20010, 0x100e0e16, 0x10021119, 0x10021111, 0x11021111, 0x113e0e1e, 0xe000000, 0x220e1f00, 0x22111100, 0x3e111016, 0x221e0819, 0x22100411, 0x2208041e, 0x22060410, 0x10, 0x20e001e, 0x2110022, 0x7110e1e, 0x20e1002, 0x2111e02, 0x2111102, 0x40e1e02, 0x0, 0x1e1c221f, 0x22222601, 0x1e222a0f, 0x22223210, 0x22222210, 0x22122211, 0x222c220e, 0x0, 0xc3c0000, 0x2020000, 0xf3a0d0e, 0x2221311, 0x222011f, 0x2220101, 0x21c011e, 0x0, 0x13c01, 0x10201, 0x11091c0d, 0x11052013, 0x11032011, 0x11052211, 0x1e091c11, 0x0, 0x223e3e, 0x122008, 0xb0e1008, 0x15120808, 0x15220408, 0x11220208, 0x11223e08, 0x0, 0xc22220e, 0x2141411, 0x1080810, 0xf08140c, 0x11082202, 0x11082211, 0xe08221f, 0x0, 0x4000000, 0x6000000, 0x41f110f, 0x4080a11, 0x4040411, 0x4020a11, 0x1f1f1111, 0x0, 0x221c, 0x2222, 0x111e2202, 0x11112202, 0x11112202, 0xa1e2222, 0x4101c1c, 0xf0000, 0x22023e18, 0x36020214, 0x2a020e12, 0x22020211, 0x2202021f, 0x22020210, 0x223e0210, 0x0, 0x1c012001, 0x22012001, 0x220d2001, 0x3e132001, 0x22112001, 0x22112201, 0x220f1c02, 0x0, 0x1c1e000e, 0x22220011, 0x221e1110, 0x2222110c, 0x22221110, 0x22221e11, 0x1c1e100e, 0xf00, 0x1000022, 0x22, 0x1110e22, 0x1111122, 0x115012a, 0x1151136, 0x11e0e22, 0x0, 0x0, 0x0, 0x1e0d, 0x113, 0xe11, 0x100f, 0xf01, 0x1}
Font = pixfont.NewPixFont(7, 8, charMap, data)
Font.SetVariableWidth(true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment