func (glyphCache *GlyphCacheImp) Fetch(gc draw2d.GraphicContext, fontName string, chr rune) *Glyph {
	if glyphCache.glyphs[fontName] == nil {
		glyphCache.glyphs[fontName] = make(map[rune]*Glyph, 60)
	}
	if glyphCache.glyphs[fontName][chr] == nil {
		glyphCache.glyphs[fontName][chr] = renderGlyph(gc, fontName, chr)
	}
	return glyphCache.glyphs[fontName][chr].Copy()
}
func (glyphCache *GlyphCacheImp) Fetch(gc draw2d.GraphicContext, fontName string, chr rune) *Glyph {
	if glyphCache.glyphs[fontName] == nil {
		glyphCache.glyphs[fontName] = make(map[rune]*Glyph, 60)
	}
	if glyphCache.glyphs[fontName][chr] == nil {
		glyphCache.glyphs[fontName][chr] = renderGlyph(gc, fontName, chr)
	}
	return glyphCache.glyphs[fontName][chr].Copy()
}
func ( glyphCache * GlyphCacheImp ) Fetch ( gc draw2d . GraphicContext , fontName string , chr rune ) * Glyph { if glyphCache . glyphs [ fontName ] == nil { glyphCache . glyphs [ fontName ] = make ( map [ rune ] * Glyph , 60 ) } if glyphCache . glyphs [ fontName ] [ chr ] == nil { glyphCache . glyphs [ fontName ] [ chr ] = renderGlyph ( gc , fontName , chr ) } return glyphCache . glyphs [ fontName ] [ chr ] . Copy ( ) }
// Fetch fetches a glyph from the cache, calling renderGlyph first if it doesn't already exist
Fetch fetches a glyph from the cache calling renderGlyph first if it doesn t already exist