Merge 150256794b
into dcbfbe505d
This commit is contained in:
commit
e53d6bac96
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue