In Files

Parent

Class Index [+]

Quicksearch

Magick::RVG::Utility::TextAttributes

Constants

WRITING_MODE

Public Class Methods

new() click to toggle source
     # 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

Public Instance Methods

affine() click to toggle source
     # File lib/rvg/misc.rb, line 403
403:                 def affine()
404:                     @affine[1]
405:                 end
baseline_shift() click to toggle source
     # File lib/rvg/misc.rb, line 407
407:                 def baseline_shift()
408:                     @baseline_shift[1]
409:                 end
baseline_shift=(value) click to toggle source
     # File lib/rvg/misc.rb, line 411
411:                 def baseline_shift=(value)
412:                     @baseline_shift[1] = value
413:                 end
glyph_orientation_horizontal() click to toggle source
     # File lib/rvg/misc.rb, line 431
431:                 def glyph_orientation_horizontal()
432:                     @glyph_orientation_horizontal[1]
433:                 end
glyph_orientation_horizontal=(angle) click to toggle source
     # File lib/rvg/misc.rb, line 435
435:                 def glyph_orientation_horizontal=(angle)
436:                     @glyph_orientation_horizontal[1] = angle
437:                 end
glyph_orientation_vertical() click to toggle source
     # File lib/rvg/misc.rb, line 423
423:                 def glyph_orientation_vertical()
424:                     @glyph_orientation_vertical[1]
425:                 end
glyph_orientation_vertical=(angle) click to toggle source
     # File lib/rvg/misc.rb, line 427
427:                 def glyph_orientation_vertical=(angle)
428:                     @glyph_orientation_vertical[1] = angle
429:                 end
letter_spacing() click to toggle source
     # File lib/rvg/misc.rb, line 439
439:                 def letter_spacing()
440:                     @letter_spacing[1]
441:                 end
letter_spacing=(value) click to toggle source
     # File lib/rvg/misc.rb, line 443
443:                 def letter_spacing=(value)
444:                     @letter_spacing[1] = value
445:                 end
non_default?() click to toggle source
     # 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
pop() click to toggle source
     # 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
push() click to toggle source
     # 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
set_affine(sx, rx, ry, sy, tx, ty) click to toggle source
     # 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
text_anchor() click to toggle source
     # File lib/rvg/misc.rb, line 415
415:                 def text_anchor()
416:                     @text_anchor[1]
417:                 end
text_anchor=(anchor) click to toggle source
     # File lib/rvg/misc.rb, line 419
419:                 def text_anchor=(anchor)
420:                     @text_anchor[1] = anchor
421:                 end
word_spacing() click to toggle source
     # File lib/rvg/misc.rb, line 453
453:                 def word_spacing()
454:                     @word_spacing[1]
455:                 end
word_spacing=(value) click to toggle source
     # File lib/rvg/misc.rb, line 457
457:                 def word_spacing=(value)
458:                     @word_spacing[1] = value
459:                 end
writing_mode() click to toggle source
     # File lib/rvg/misc.rb, line 461
461:                 def writing_mode()
462:                     @writing_mode[1]
463:                 end
writing_mode=(mode) click to toggle source
     # File lib/rvg/misc.rb, line 465
465:                 def writing_mode=(mode)
466:                     @writing_mode[1] = WRITING_MODE.include?(mode) ? mode : 'lr-tb'
467:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.