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

- (Font) initialize(name = nil, size = nil)

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

+ (Object) default_bold

Returns the value of attribute default_bold



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

def default_bold
  @default_bold
end

+ (Object) default_color

Returns the value of attribute default_color



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

def default_color
  @default_color
end

+ (Object) default_italic

Returns the value of attribute default_italic



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

def default_italic
  @default_italic
end

+ (Object) default_name

Returns the value of attribute default_name



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

def default_name
  @default_name
end

+ (Object) default_out_color

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

+ (Object) default_outline

Returns the value of attribute default_outline



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

def default_outline
  @default_outline
end

+ (Object) default_shadow

Returns the value of attribute default_shadow



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

def default_shadow
  @default_shadow
end

+ (Object) default_size

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

- (Object) bold

Returns the value of attribute bold



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

def bold
  @bold
end

- (Object) color

Returns the value of attribute color



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

def color
  @color
end

- (Object) italic

Returns the value of attribute italic



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

def italic
  @italic
end

- (Object) name

Returns the value of attribute name



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

def name
  @name
end

- (Object) out_color

Returns the value of attribute out_color



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

def out_color
  @out_color
end

- (Object) outline

Returns the value of attribute outline



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

def outline
  @outline
end

- (Object) shadow

Returns the value of attribute shadow



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

def shadow
  @shadow
end

- (Object) size

Returns the value of attribute size



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

def size
  @size
end

Class Method Details

+ (Boolean) exist?(name)

Returns:

  • (Boolean)


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

def self.exist?(name)
  fail NotImplementedError
end