1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
module Scale
class Text
include Node
attribute :x, Integer
attribute :y, Integer
attribute :font_family, String
attribute :font_style, String
attribute :font_weight, String
attribute :font_variant, String
attribute :font_stretch, String
attribute :font_size, String
attribute :font_size_adjust, String
attribute :kerning, String
attribute :letter_spacing, String
attribute :word_spacing, String
attribute :text_decoration, String
def initialize(text, attributes = {})
@content = text
super(attributes)
end
def xml_tag
:text_
end
end
end
|