A callback function to support drawing of a disc bullet style.
The default disc bullet background.
The default disc bullet foreground.
The background color for <C:disc> bullets. Default is Color::RGB::White.
Set to nil
to get the default color.
The foreground color for <C:disc> bullets. Default is Color::RGB::Black.
Set to nil
to get the default color.
# File lib/pdf/writer.rb, line 2677 def [](pdf, info) @foreground ||= DEFAULT_FOREGROUND @background ||= DEFAULT_BACKGROUND desc = info[:descender].abs xpos = info[:x] - (desc * 2.00) ypos = info[:y] + (desc * 1.05) ss = StrokeStyle.new(desc) ss.cap = :butt ss.join = :miter pdf.stroke_style! ss pdf.stroke_color @foreground pdf.circle_at(xpos, ypos, 1).stroke pdf.stroke_color @background pdf.circle_at(xpos, ypos, 0.5).stroke end