module Krill
Constants
- AFM
- CannotFit
- Formatter
- NBSP
No-Break Space
- SHY
Soft Hyphen (invisible, except when causing a line break)
- SUPERSCRIPT_SCALE
- VERSION
- ZWSP
Zero Width Space (indicate word boundaries without a space)
Public Class Methods
wrap_text(runs, width:, leading:)
click to toggle source
# File lib/krill.rb, line 8 def self.wrap_text(runs, width:, leading:) box = Krill::TextBox.new(runs, width: width, leading: leading, height: Float::INFINITY) box.render Krill::WrappedText.new(box) end