Sha256: c8dc7c45232b3aec10187679c4694c4514e127bd87beeee28047b2fa6ebb9d9a
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true # add new font face A.add_text_visual({ path: 'Roboto', name: 'Roboto-Thin' }) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.7.0.3 | vendor/assets/application/examples/fonts.rb |