Method: FPDF#SetFontSize

Defined in:
lib/fpdf.rb

#SetFontSize(size) ⇒ Object



530
531
532
533
534
535
536
537
538
# File 'lib/fpdf.rb', line 530

def SetFontSize(size)
    # Set font size in points
    return if @FontSizePt==size
    @FontSizePt=size
    @FontSize=size/@k
    if @page>0
        out(sprintf('BT /F%d %.2f Tf ET',@CurrentFont['i'],@FontSizePt))
    end
end