# File lib/rvg/misc.rb, line 353 353: def initialize() 354: @affine = Array.new 355: @affine << Magick::AffineMatrix.new(1, 0, 0, 1, 0, 0) 356: @baseline_shift = Array.new 357: @baseline_shift << :baseline 358: @glyph_orientation_horizontal = Array.new 359: @glyph_orientation_horizontal << 0 360: @glyph_orientation_vertical = Array.new 361: @glyph_orientation_vertical << 90 362: @letter_spacing = Array.new 363: @letter_spacing << 0 364: @text_anchor = Array.new 365: @text_anchor << :start 366: @word_spacing = Array.new 367: @word_spacing << 0 368: @writing_mode = Array.new 369: @writing_mode << 'lr-tb' 370: end
# File lib/rvg/misc.rb, line 403 403: def affine() 404: @affine[1] 405: end
# File lib/rvg/misc.rb, line 407 407: def baseline_shift() 408: @baseline_shift[1] 409: end
# File lib/rvg/misc.rb, line 411 411: def baseline_shift=(value) 412: @baseline_shift[1] = value 413: end
# File lib/rvg/misc.rb, line 431 431: def glyph_orientation_horizontal() 432: @glyph_orientation_horizontal[1] 433: end
# File lib/rvg/misc.rb, line 435 435: def glyph_orientation_horizontal=(angle) 436: @glyph_orientation_horizontal[1] = angle 437: end
# File lib/rvg/misc.rb, line 423 423: def glyph_orientation_vertical() 424: @glyph_orientation_vertical[1] 425: end
# File lib/rvg/misc.rb, line 427 427: def glyph_orientation_vertical=(angle) 428: @glyph_orientation_vertical[1] = angle 429: end
# File lib/rvg/misc.rb, line 439 439: def letter_spacing() 440: @letter_spacing[1] 441: end
# File lib/rvg/misc.rb, line 443 443: def letter_spacing=(value) 444: @letter_spacing[1] = value 445: end
# File lib/rvg/misc.rb, line 447 447: def non_default? 448: @baseline_shift[1] != :baseline || @letter_spacing[1] != 0 || 449: @word_spacing[1] != 0 || @writing_mode[1][/\Alr/].nil? || 450: @glyph_orientation_horizontal[1] != 0 451: end
# File lib/rvg/misc.rb, line 383 383: def pop() 384: @affine.pop 385: @baseline_shift.pop 386: @text_anchor.pop 387: @writing_mode.pop 388: @glyph_orientation_vertical.pop 389: @glyph_orientation_horizontal.pop 390: @letter_spacing.pop 391: @word_spacing.pop 392: end
# File lib/rvg/misc.rb, line 372 372: def push() 373: @affine.push(@affine.last.dup) 374: @baseline_shift.push(@baseline_shift.last) 375: @text_anchor.push(@text_anchor.last) 376: @writing_mode.push(@writing_mode.last.dup) 377: @glyph_orientation_vertical.push(@glyph_orientation_vertical.last) 378: @glyph_orientation_horizontal.push(@glyph_orientation_horizontal.last) 379: @letter_spacing.push(@letter_spacing.last) 380: @word_spacing.push(@word_spacing.last) 381: end
# File lib/rvg/misc.rb, line 394 394: def set_affine(sx, rx, ry, sy, tx, ty) 395: @affine[1].sx = sx 396: @affine[1].rx = rx 397: @affine[1].ry = ry 398: @affine[1].sy = sy 399: @affine[1].tx = tx 400: @affine[1].ty = ty 401: end
# File lib/rvg/misc.rb, line 415 415: def text_anchor() 416: @text_anchor[1] 417: end
# File lib/rvg/misc.rb, line 419 419: def text_anchor=(anchor) 420: @text_anchor[1] = anchor 421: end
# File lib/rvg/misc.rb, line 453 453: def word_spacing() 454: @word_spacing[1] 455: end
# File lib/rvg/misc.rb, line 457 457: def word_spacing=(value) 458: @word_spacing[1] = value 459: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.