Method: SDL::TTF.SizeUNICODE
- Defined in:
- lib/ruby-sdl-ffi/ttf.rb
.SizeUNICODE(font, text) ⇒ Object
153 154 155 156 157 158 |
# File 'lib/ruby-sdl-ffi/ttf.rb', line 153 def self.SizeUNICODE( font, text ) w = FFI::Buffer.new( :int ) h = FFI::Buffer.new( :int ) __SizeUNICODE( font, text, w, h ) return [w.get_int(0),h.get_int(0)] end |