current_font! (PDF::Writer)

          # File lib/pdf/writer.rb, line 997
     997:   def current_font!
     998:     select_font("Helvetica") unless @current_base_font
     999:
    1000:     font = File.basename(@current_base_font)
    1001:     if @font_families[font] and @font_families[font][@current_text_state]
    1002:         # Then we are in some state or another and this font has a family,
    1003:         # and the current setting exists within it select the font, then
    1004:         # return it.
    1005:       if File.dirname(@current_base_font) != '.'
    1006:         nf = File.join(File.dirname(@current_base_font), @font_families[font][@current_text_state])
    1007:       else
    1008:         nf = @font_families[font][@current_text_state]
    1009:       end
    1010:
    1011:       unless @fonts[nf]
    1012:         enc = {
    1013:           :encoding     => @fonts[font].encoding,
    1014:           :differences  => @fonts[font].differences
    1015:         }
    1016:         load_font(nf, enc)
    1017:       end
    1018:       @current_font = nf
    1019:     else
    1020:       @current_font = @current_base_font
    1021:     end
    1022:   end