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