Skip to content
New issue

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

draw2dimg.SetFont doesn't work #93

Open
xojoc opened this issue Nov 5, 2015 · 4 comments
Open

draw2dimg.SetFont doesn't work #93

xojoc opened this issue Nov 5, 2015 · 4 comments

Comments

@xojoc
Copy link

xojoc commented Nov 5, 2015

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.

@llgcode
Copy link
Owner

llgcode commented Nov 5, 2015

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

@EtienneBruines
Copy link

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?

@llgcode
Copy link
Owner

llgcode commented Mar 3, 2016

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

@mattn
Copy link

mattn commented May 2, 2018

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants