all repos — captcha @ 9da9f1ada866fcf89e2eb56dd08558585b17be76

Go package captcha implements generation and verification of image and audio CAPTCHAs.

font.go (view raw)

  1package captcha
  2
  3const (
  4	numberWidth  = 5
  5	numberHeight = 8
  6)
  7
  8var font = [][]byte{
  9	{ // 0
 10		0, 1, 1, 1, 0,
 11		1, 0, 0, 0, 1,
 12		1, 0, 0, 0, 1,
 13		1, 0, 0, 0, 1,
 14		1, 0, 0, 0, 1,
 15		1, 0, 0, 0, 1,
 16		1, 0, 0, 0, 1,
 17		0, 1, 1, 1, 0,
 18	},
 19	{ // 1
 20		0, 0, 1, 0, 0,
 21		0, 1, 1, 0, 0,
 22		1, 0, 1, 0, 0,
 23		0, 0, 1, 0, 0,
 24		0, 0, 1, 0, 0,
 25		0, 0, 1, 0, 0,
 26		0, 0, 1, 0, 0,
 27		1, 1, 1, 1, 1,
 28	},
 29	{ // 2
 30		0, 1, 1, 1, 0,
 31		1, 0, 0, 0, 1,
 32		0, 0, 0, 0, 1,
 33		0, 0, 0, 1, 1,
 34		0, 1, 1, 0, 0,
 35		1, 0, 0, 0, 0,
 36		1, 0, 0, 0, 0,
 37		1, 1, 1, 1, 1,
 38	},
 39	{ // 3
 40		1, 1, 1, 1, 0,
 41		0, 0, 0, 0, 1,
 42		0, 0, 0, 1, 0,
 43		0, 1, 1, 1, 0,
 44		0, 0, 0, 1, 0,
 45		0, 0, 0, 0, 1,
 46		0, 0, 0, 0, 1,
 47		1, 1, 1, 1, 0,
 48	},
 49	{ // 4
 50		1, 0, 0, 1, 0,
 51		1, 0, 0, 1, 0,
 52		1, 0, 0, 1, 0,
 53		1, 0, 0, 1, 0,
 54		1, 1, 1, 1, 1,
 55		0, 0, 0, 1, 0,
 56		0, 0, 0, 1, 0,
 57		0, 0, 0, 1, 0,
 58	},
 59	{ // 5
 60		1, 1, 1, 1, 1,
 61		1, 0, 0, 0, 0,
 62		1, 0, 0, 0, 0,
 63		1, 1, 1, 1, 0,
 64		0, 0, 0, 0, 1,
 65		0, 0, 0, 0, 1,
 66		0, 0, 0, 0, 1,
 67		1, 1, 1, 1, 0,
 68	},
 69	{ // 6
 70		0, 0, 1, 1, 1,
 71		0, 1, 0, 0, 0,
 72		1, 0, 0, 0, 0,
 73		1, 1, 1, 1, 0,
 74		1, 0, 0, 0, 1,
 75		1, 0, 0, 0, 1,
 76		1, 0, 0, 0, 1,
 77		0, 1, 1, 1, 0,
 78	},
 79	{ // 7
 80		1, 1, 1, 1, 1,
 81		0, 0, 0, 0, 1,
 82		0, 0, 0, 0, 1,
 83		0, 0, 0, 1, 0,
 84		0, 0, 1, 0, 0,
 85		0, 1, 0, 0, 0,
 86		0, 1, 0, 0, 0,
 87		0, 1, 0, 0, 0,
 88	},
 89	{ // 8
 90		0, 1, 1, 1, 0,
 91		1, 0, 0, 0, 1,
 92		1, 0, 0, 0, 1,
 93		0, 1, 1, 1, 0,
 94		1, 0, 0, 0, 1,
 95		1, 0, 0, 0, 1,
 96		1, 0, 0, 0, 1,
 97		0, 1, 1, 1, 0,
 98	},
 99	{ // 9
100		0, 1, 1, 1, 0,
101		1, 0, 0, 0, 1,
102		1, 0, 0, 0, 1,
103		1, 1, 0, 0, 1,
104		0, 1, 1, 1, 1,
105		0, 0, 0, 0, 1,
106		0, 0, 0, 0, 1,
107		1, 1, 1, 1, 0,
108	},
109}