# File lib/pdf/writer.rb, line 1035 1035: def font_height(size = nil) 1036: size = @font_size if size.nil? or size <= 0 1037: 1038: select_font("Helvetica") if @fonts.empty? 1039: hh = @fonts[@current_font].fontbbox[3].to_f - @fonts[@current_font].fontbbox[1].to_f 1040: (size * hh / 1000.0) 1041: end