~mendelmaleh/dummy

b47194fc39080ca8496859e1bc6b86418205b577 — Mendel E 1 year, 30 days ago 438cb65
Limit GlyphCacheEntries to 2
1 files changed, 4 insertions(+), 3 deletions(-)

M image.go
M image.go => image.go +4 -3
@@ 32,9 32,10 @@ func Image(opt Options) image.Image {
	// text
	if len(strings.TrimSpace(opt.Text)) > 0 {
		face := truetype.NewFace(opt.Font, &truetype.Options{
			Size:    opt.Size,
			DPI:     opt.DPI,
			Hinting: font.HintingNone,
			Size:              opt.Size,
			DPI:               opt.DPI,
			Hinting:           font.HintingNone,
			GlyphCacheEntries: 2,
		})

		// TODO: font color? colors[-1]?