draw2d
draw2d copied to clipboard
draw2dimg.SetFont doesn't work
loadCurrentFont (https://github.com/llgcode/draw2d/blob/master/draw2dimg/ftgc.go#L116) doesn't check for gc.Current.Font but for gc.Current.FontData making draw2dimg.SetFont useless.
it's cause gc.Current.Font is loaded against gc.Current.FontData
Any reason why things like CreateStringPath don't check for gc.Current.Font, and only call gc.loadCurrentFont if gc.Current.Font is not set?
You're right the implementation can be optimized to check gc.Current.Font is the same as gc.Current.FontData.
Any update on this?