Module: Aptible::DocumentHelpers::FontLoader

Included in:
Aptible::DocumentHelpers
Defined in:
lib/aptible/document_helpers/font_loader.rb

Instance Method Summary collapse

Instance Method Details

#load_fontsObject

rubocop:disable MethodLength



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/aptible/document_helpers/font_loader.rb', line 5

def load_fonts
  font_families.update(
    'Georgia' => {
      normal: 'data/fonts/Georgia.ttf',
      italic: 'data/fonts/Georgia Italic.ttf',
      bold: 'data/fonts/Georgia Bold.ttf',
      bold_italic: 'data/fonts/Georgia Bold Italic.ttf'
    }
  )
  font_families.update(
    'Proxima Nova' => {
      normal: 'data/fonts/proxima_nova.ttf',
      italic: 'data/fonts/proxima_nova_italic.ttf',
      light: 'data/fonts/proxima_nova_light.ttf',
      light_italic: 'data/fonts/proxima_nova_light_italic.ttf',
      bold: 'data/fonts/proxima_nova_bold.ttf',
      bold_italic: 'data/fonts/proxima_nova_bold_italic.ttf'
    }
  )
  font 'Georgia'
end