C
Chris Morris
I'm working off a modified version of the bounce.rbw sample, and in
this snippet:
def drawScene(drawable)
FXDCWindow.new(drawable) { |dc|
dc.setForeground(FXRGB(255, 255, 255))
dc.fillRectangle(0, 0, drawable.width, drawable.height)
@ball.draw(dc)
}
end
... the dc.textFont is nil ... so how can I access the current font
that's being used to make use of getTextWidth and getTextHeight
methods in order to properly layout text?
this snippet:
def drawScene(drawable)
FXDCWindow.new(drawable) { |dc|
dc.setForeground(FXRGB(255, 255, 255))
dc.fillRectangle(0, 0, drawable.width, drawable.height)
@ball.draw(dc)
}
end
... the dc.textFont is nil ... so how can I access the current font
that's being used to make use of getTextWidth and getTextHeight
methods in order to properly layout text?