stb_truetype
instead of platform-specific APIs. This means text will look subtly different than in Gosu 0.13, but it will now be much more consistent across platforms.<b>This is bold</b>, <c=ff0000>this is red</c>
) more explicit by introducing new methods: Font#draw_markup
, Font#draw_markup_rel
, Font#markup_width
, Image.from_markup
. The existing methods will stop parsing markup in Gosu 1.0. If you want to keep using the markup feature, you should use the markup
methods from now on.Gosu.render(width, height) {}
, which can render arbitrary Gosu code to a new texture and return it as a Gosu::Image
.Gosu::Font#initialize
now accepts style parameters, e.g. Gosu::Font.new(20, bold: true, italic: false)
. Unlike in earlier versions of Gosu, Font
is not bold by default.Image.from_markup
/Image.from_text
now supports alignment: :center
, alignment: :right
, and the spacing:
parameter even when there is no width:
parameter.Gosu/Text.hpp
to see the new set of available functions.Gosu::TextInput
on iOS.Image
/keyword args stuff). Thanks for getting these branches started! And sorry for butchering the CI a bit because I wanted to get 0.14.0 out. Cross-platform tests still aren't as easy as I'd hoped =/
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill