Class: Font

Inherits:
Object
  • Object
show all
Defined in:
lib/font.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, size = nil) ⇒ Font

Returns a new instance of Font.



3
4
5
# File 'lib/font.rb', line 3

def initialize(name = nil, size = nil)
  fail NotImplementedError
end

Class Attribute Details

.default_boldObject

Returns the value of attribute default_bold.



33
34
35
# File 'lib/font.rb', line 33

def default_bold
  @default_bold
end

.default_colorObject

Returns the value of attribute default_color.



41
42
43
# File 'lib/font.rb', line 41

def default_color
  @default_color
end

.default_italicObject

Returns the value of attribute default_italic.



35
36
37
# File 'lib/font.rb', line 35

def default_italic
  @default_italic
end

.default_nameObject

Returns the value of attribute default_name.



29
30
31
# File 'lib/font.rb', line 29

def default_name
  @default_name
end

.default_out_colorObject

Returns the value of attribute default_out_color.



43
44
45
# File 'lib/font.rb', line 43

def default_out_color
  @default_out_color
end

.default_outlineObject

Returns the value of attribute default_outline.



39
40
41
# File 'lib/font.rb', line 39

def default_outline
  @default_outline
end

.default_shadowObject

Returns the value of attribute default_shadow.



37
38
39
# File 'lib/font.rb', line 37

def default_shadow
  @default_shadow
end

.default_sizeObject

Returns the value of attribute default_size.



31
32
33
# File 'lib/font.rb', line 31

def default_size
  @default_size
end

Instance Attribute Details

#boldObject

Returns the value of attribute bold.



15
16
17
# File 'lib/font.rb', line 15

def bold
  @bold
end

#colorObject

Returns the value of attribute color.



23
24
25
# File 'lib/font.rb', line 23

def color
  @color
end

#italicObject

Returns the value of attribute italic.



17
18
19
# File 'lib/font.rb', line 17

def italic
  @italic
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/font.rb', line 11

def name
  @name
end

#out_colorObject

Returns the value of attribute out_color.



25
26
27
# File 'lib/font.rb', line 25

def out_color
  @out_color
end

#outlineObject

Returns the value of attribute outline.



19
20
21
# File 'lib/font.rb', line 19

def outline
  @outline
end

#shadowObject

Returns the value of attribute shadow.



21
22
23
# File 'lib/font.rb', line 21

def shadow
  @shadow
end

#sizeObject

Returns the value of attribute size.



13
14
15
# File 'lib/font.rb', line 13

def size
  @size
end

Class Method Details

.exist?(name) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/font.rb', line 7

def self.exist?(name)
  fail NotImplementedError
end