draw2d icon indicating copy to clipboard operation
draw2d copied to clipboard

draw2dimg.SetFont doesn't work

Open xojoc opened this issue 10 years ago • 4 comments

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.

xojoc avatar Nov 05 '15 11:11 xojoc

it's cause gc.Current.Font is loaded against gc.Current.FontData

llgcode avatar Nov 05 '15 13:11 llgcode

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?

EtienneBruines avatar Mar 03 '16 10:03 EtienneBruines

You're right the implementation can be optimized to check gc.Current.Font is the same as gc.Current.FontData.

llgcode avatar Mar 03 '16 14:03 llgcode

Any update on this?

mattn avatar May 02 '18 09:05 mattn