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

Do not do type assertion in widgets/text_tools.go #5

Open
redstarcoder opened this issue Nov 3, 2016 · 1 comment
Open

Do not do type assertion in widgets/text_tools.go #5

redstarcoder opened this issue Nov 3, 2016 · 1 comment
Labels

Comments

@redstarcoder
Copy link
Owner

Currently fillStringAtWidget, fillStringAtWidthCursor, and cursor.MoveToX do a type assertion on gc to make it into *draw2dgl.GraphicContext. This is because they rely on gc.Current.Scale and loadCurrentFont which relys on gc.LoadFont (Neither of which can be accessed from a draw2d.GraphicContext interface as of this writing). We need a substitute or a change in the draw2d API to fix this.

@redstarcoder redstarcoder added this to the v1 milestone Nov 3, 2016
@redstarcoder
Copy link
Owner Author

The outcome of llgcode/draw2d#116 could influence this issue.

@redstarcoder redstarcoder removed this from the v1 milestone Nov 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant