module PdfWatermark::Canvas
Public Instance Methods
width_of(string, font_size = nil)
click to toggle source
# File lib/pdf_watermark/font.rb, line 28 def width_of(string, font_size = nil) self.font.wrapped_font.width_of(string, font_size || self.graphics_state.font_size) + (string.length * self.graphics_state.character_spacing) end