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.
Currently
fillStringAtWidget
,fillStringAtWidthCursor
, andcursor.MoveToX
do a type assertion ongc
to make it into*draw2dgl.GraphicContext
. This is because they rely ongc.Current.Scale
andloadCurrentFont
which relys ongc.LoadFont
(Neither of which can be accessed from adraw2d.GraphicContext
interface as of this writing). We need a substitute or a change in thedraw2d
API to fix this.