# File lib/rubygame/ttf.rb, line 72 def initialize( file, size ) if( SDL::TTF.WasInit() == 0 ) raise( Rubygame::SDLError, "You must call TTF.setup before opening a font." ) end @struct = SDL::TTF.OpenFont( file, size ) if( @struct.pointer.null? ) raise Rubygame::SDLError, "Could not open font: #{SDL.GetError()}" end end