You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: font.rb
    path of file: ./repos/ruby2d/lib/ruby2d
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Ruby2D:
    
      def load(path, size, style = nil)
        path = path.to_s
        raise Error, "Cannot find font file `#{path}`" unless File.exist? path

        (@loaded_fonts[[path, size, style]] ||= Font.send(:new, path, size, style)).tap do |_font|
          @loaded_fonts.shift if @loaded_fonts.size > FONT_CACHE_LIMIT
        end
      end