Skip to content

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

@redstarcoder

Description

@redstarcoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions