Sha256: b352969d0df43b263e3eaf09d2d3cd501b0b6bb0f2a013703709afbdd46a7457

Contents?: true

Size: 500 Bytes

Versions: 23

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

# add new font face
A.add_text_visual({ path: 'Roboto', name: 'Roboto-Black' })
A.add_text_visual({ path: 'Roboto', name: 'Roboto-Thin' })
A.add_text_visual({ path: 'Roboto', name: 'Roboto-LightItalic' })

# now applying it
first_text=text({ data: :hello, component: { size: 55, visual: 'Roboto-Thin' } })
wait 1 do
  text({ data: :hello, component: { size: 55, visual: 'Roboto-Black' } })
  wait 1 do
    first_text.component({visual: 'Roboto-LightItalic'})
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 vendor/assets/application/examples/fonts.rb
atome-0.5.7.5.9 vendor/assets/application/examples/fonts.rb
atome-0.5.7.5.4 vendor/assets/application/examples/fonts.rb
atome-0.5.7.5.3 vendor/assets/application/examples/fonts.rb
atome-0.5.7.5.1 vendor/assets/application/examples/fonts.rb
atome-0.5.7.4.8 vendor/assets/application/examples/fonts.rb
atome-0.5.7.4.7 vendor/assets/application/examples/fonts.rb
atome-0.5.7.4.6 vendor/assets/application/examples/fonts.rb
atome-0.5.7.4.3 vendor/assets/application/examples/fonts.rb
atome-0.5.7.4.2 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.9 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.6 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.5 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.3 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.2 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.1 vendor/assets/application/examples/fonts.rb
atome-0.5.7.3.0 vendor/assets/application/examples/fonts.rb
atome-0.5.7.1.8 vendor/assets/application/examples/fonts.rb
atome-0.5.7.1.7 vendor/assets/application/examples/fonts.rb
atome-0.5.7.1.0 vendor/assets/application/examples/fonts.rb