search for: font_siz

Displaying 7 results from an estimated 7 matches for "font_siz".

Did you mean: font_size
2006 Apr 04
2
How to add CSS tips to link_to_remote?
The following code of tag clouds implementation: <%= link_to(h("<#{tag}>"), "tags/listmytag/#{tag}", { :style => "font-size: #{font_size}" } ) -%> I want to change it to ajax style: <%= link_to_remote "<#{tag}>", { :url => { :controller => ''tags'', :action => ''listmytag'', :id => "#{tag}" }, :update => "body"} %> but I...
2007 May 22
0
tcl font size issue on centso 4.4 x86_64
I have a simply script that I cannot get a font size bigger than 40. Changing the font_size value to 80 does not make the font any bigger just the background. How do I get a bigger font than 40? I run this script as "wish -f file.tcl" What am I doing wrong to not get bigger fonts? THanks, Jerry --------------------------------------------- set font_size 40 set show_window_...
2007 Apr 16
7
pdf-file tot desktop with pdf/writer problem
Hi, I''m using pdf/Writer to generate a pdf-file, but whatever I do, it gets saved in folder of my app, and not on the users desktop. I''ve used pdf = PDF::Writer.new pdf.select_font "Times-Roman" pdf.text "Hello.pdf", :font_size => 12, :justification => :left File.open("hello.pdf", "wb") { |f| f.write pdf.render } and Ive used _pdf = PDF::Writer.new _pdf.select_font "Times-Roman" _pdf.text "Hello, Ruby.", :font_size => 72, :justification =&g...
2006 Jul 13
1
Incorrect composed_of I think
...lass, element.rb. Does anyone know how to do this? Thanx for any and all info. Code... # My model is simple: class Element < ActiveRecord::Base composed_of :fontsize, :class_name => "Property", :mapping => [ %w(font_size amount), %w(font_size_unit unit) ] end # My class for this is simple: class Property attr_reader :amount, :unit def intialize(amount, unit) @amount = amount @unit = unit end def to_s @amount.to_s + @unit end end -- :// Nathan Herald
2008 Mar 13
0
Template being ignored when attaching pdf in e-mail
..._encoding => "send_pdf" do |a| a.body = generate_pdf(notice_request) end end def generate_pdf(notice_request) pdf = PDF::Writer.new(:paper => "LETTER") pdf.select_font ''Times-Roman'' pdf.text "HELLO WORLD", :font_size => 17, :justification => :center pdf.move_pointer(5) pdf.render :filename => ''NoticeRequest.pdf'', :type => ''application/pdf'' end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are...
2006 Nov 04
0
UTF-8 String to PDF using PDF::Writer
...ter, portrait, PDF version 1.3 document. AJ pdfOfListing.compressed pdfOfListing.select_font(''Times-Roman'', {:encoding => ''MacRomanEncoding''}) pdfOfListing.text(Iconv.conv("UTF-8", "MacRoman", chapter.chapter_body), :font_size => 12, :justification => :left)) send_data(pdfOfListing.render, :filename => listing.title_of_work , :type => "application/pdf" ) end Thanks Andrew Johnson
2006 May 05
8
pdf/writer: table.render_on best practices?
...20s are spend in the render_on method. I wonder if it is possible to speed up that process? To create the report, I do the following: 1) Setup pdf layout: # Setup pdf layout pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"}) pdf.text " ", :font_size => 12, :justification => :center s = 9 t = ''Seite <PAGENUM>'' y = pdf.absolute_bottom_margin - 5 x = pdf.absolute_right_margin x -=(pdf.text_width(''Seite XX'', s)) pdf.start_page_numbering(x, y, s, nil, t, nil)...