We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
it's cause gc.Current.Font is loaded against gc.Current.FontData
Sorry, something went wrong.
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?
CreateStringPath
gc.Current.Font
gc.loadCurrentFont
You're right the implementation can be optimized to check gc.Current.Font is the same as gc.Current.FontData.
Any update on this?
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: