ruby - How to change font size in Rails Prawn PDF gem? -


i have following code generate table in pdf :

  def member_list     move_down 20     table member_list_rows       self.row(0).align = :center       row(0).background_color = '3498db'       row(0).text_color = "ffffff"       self.row_colors = ["dddddd", "ffffff"]       self.header = true     end   end 

in here, how can change font size in table cells? tried many methods (style, font_size, size) nothing works! correct way?

in prawn manual under table/cell_text.rb can find

table data, :cell_style => { :size => 18, :text_color => "346842" } 

you can style host of other things except size see.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -