This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.
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.Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill