[ Image ] font: [ String ] size: [ Number ]

☞ media ≔ Media new.
☞ a ≔ Image new: ‘a.png’.

media on: ‘start’ do: {

a
x: 0 y: 200,
font: ‘font.ttf’ size: 16,
align x: 40 y: 20,
colour: (Colour new red: 110 green: 110 blue: 110),
write: ‘ABC’.

}.

media screen: ‘canvas.png’.

Sets the font and size of the text in an image.