This commit is contained in:
Will Charczuk 2017-05-14 10:09:29 +00:00 committed by GitHub
commit e53d6bac96
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ func (gc *GraphicContext) StrokeStringAt(text string, x, y float64) (width float
}
func (gc *GraphicContext) loadCurrentFont() (*truetype.Font, error) {
if gc.Current.Font != nil {
return gc.Current.Font, nil
}
font := draw2d.GetFont(gc.Current.FontData)
if font == nil {
font = draw2d.GetFont(draw2dbase.DefaultFontData)