Sha256: 23570653a739f868b7b96f469f53544e9f8f558fb67248c3d846b5036b038eba
Contents?: true
Size: 437 Bytes
Versions: 4
Compression:
Stored size: 437 Bytes
Contents
if Axlsx::VERSION.to_f < 3.1 Axlsx::Cell.class_eval do private def string_width(string, font_size) font_scale = font_size / 10.0 (string.to_s.size + 3) * font_scale end end if defined?(Axlsx::RichTextRun) Axlsx::RichTextRun.class_eval do private def string_width(string, font_size) font_scale = font_size / 10.0 string.to_s.size * font_scale end end end end
Version data entries
4 entries across 4 versions & 1 rubygems