Fonts

shairontoledo edited this page Sep 13, 2010 · 3 revisions

The list of available fonts depends on your platform; by default the following are available:

  • AvantGarde-Book
  • AvantGarde-BookOblique
  • AvantGarde-Demi
  • AvantGarde-DemiOblique
  • Bookman-Demi
  • Bookman-DemiItalic
  • Bookman-Light
  • Bookman-LightItalic
  • Courier
  • Courier-Bold
  • Courier-BoldOblique
  • Courier-Oblique
  • Helvetica
  • Helvetica-Bold
  • Helvetica-BoldOblique
  • Helvetica-Narrow
  • Helvetica-Narrow-Bold
  • Helvetica-Narrow-BoldOblique
  • Helvetica-Narrow-Oblique
  • Helvetica-Oblique
  • NewCenturySchlbk-Bold
  • NewCenturySchlbk-BoldItalic
  • NewCenturySchlbk-Italic
  • NewCenturySchlbk-Roman
  • Palatino-Bold
  • Palatino-BoldItalic
  • Palatino-Italic
  • Palatino-Roman
  • Times-Bold
  • Times-BoldItalic
  • Times-Italic
  • Times-Roman
  • ZapfChancery-MediumItalic

To discover all fonts in your environment generate the catalog.

RGhost::Config.environment_fonts.render :pdf, :filename => 'mycatalog.pdf'

it generates the page

Fonts are addressed by their names so you must use the font name to define your tags