Sha256: e5d871b6244eb76463cb01c052a197eed4a7350593b474ef2c7b07b47c13aad2
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
# frozen_string_literal: true example :tblock_styles, 'Set the styles of Tblock in the Editor' do |t| Thinreports::Report.generate filename: t.output_filename do |report| report.use_layout t.layout_filename report.start_new_page do |page| page.item(:space_single_helvetica).value('Char Space in Single(Helvetica)') page.item(:space_single_ipamincho).value = '文字間隔 in 単行(IPA明朝)' page[:space_multi_times] = "Char Space\nin Multiple(Times New Roman)" page.item(:space_multi_ipamincho).value("文字間隔\nin 複数行(IPA明朝)") page.values(left_top: '左上揃え', left_center: '左中央揃え', left_bottom: '左下揃え', center_top: '中央上揃え', center_center: '中央揃え', center_bottom: '中央下揃え', right_top: '右上揃え', right_center: '右中央揃え', right_bottom: '右下揃え') page.item(:line_height).value("行間隔2.0\n日本語\nThinreports") end report.start_new_page layout: t.resource('font_size.tlf') do |page| page[:text_single24].style(:font_size, 24) page[:text_single32].style(:font_size, 32) page.item(:text_multiple24).style(:font_size, 24) page.item(:text_multiple32).style(:font_size, 32) page.item(:block_single18).value('サイズ18') page.item(:block_single24).style(:font_size, 24).value('サイズ24') page.item(:block_single32).style(:font_size, 32).value('サイズ32') page.item(:block_multiple18).value("サイズ18\nサイズ18") page.item(:block_multiple24).style(:font_size, 24).value("サイズ24\nサイズ24") page.item(:block_multiple32).style(:font_size, 32).value("サイズ32\nサイズ32") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.10.2 | examples/tblock_styles/tblock_styles.rb |
thinreports-0.10.1 | examples/tblock_styles/tblock_styles.rb |
thinreports-0.10.0 | examples/tblock_styles/tblock_styles.rb |