Skip to main content

Available Fonts

PDFDancer provides pre-registered fonts that you can use directly without uploading font files. These fonts are available on the service and can be referenced by name in your code.

Font List

The following fonts are currently available on the PDFDancer service:

Loading available fonts...

Using Available Fonts

You can use any of these fonts with the font() method. Here are examples for each SDK:

from pdfdancer import PDFDancer

with PDFDancer.open("document.pdf") as pdf:
# Use available service fonts directly by name
pdf.new_paragraph() \
.text("Text with Roboto font") \
.font("Roboto-Regular", 14) \
.at(page_number=1, x=100, y=500) \
.add()

pdf.new_paragraph() \
.text("Code with JetBrains Mono") \
.font("JetBrainsMono-Regular", 12) \
.at(page_number=1, x=100, y=480) \
.add()

pdf.save("output.pdf")

Standard and Embedded Fonts

In addition to pre-registered service fonts, PDFDancer supports two other font categories:

Standard PDF Fonts

Standard PDF fonts (also known as Base 14 fonts) are built into PDF viewers and don't require font files:

  • Times-Roman (and Times-Bold, Times-Italic, Times-BoldItalic)
  • Helvetica (and Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique)
  • Courier (and Courier-Bold, Courier-Oblique, Courier-BoldOblique)
  • Symbol
  • ZapfDingbats

These fonts are universally supported and ideal for basic text rendering without external dependencies.

For detailed information about using standard fonts with the StandardFonts enum and code examples, see Standard PDF Fonts in the Working with Fonts guide.

Embedded Fonts

Embedded fonts are fonts already present in the PDF document you're modifying. PDFDancer can detect and use these fonts automatically. When you call find_fonts(), it will search both service fonts and embedded fonts in the document.

To use embedded fonts, simply reference them by name or use find_fonts() to discover them:

info

For detailed information about embedded fonts, their limitations, and best practices when working with them, see About Embedded Fonts in the Working with Fonts guide.

from pdfdancer import PDFDancer

with PDFDancer.open("document.pdf") as pdf:
# Find fonts already embedded in the document
embedded_fonts = pdf.find_fonts("Arial", 12)

if embedded_fonts:
font = embedded_fonts[0]
pdf.new_paragraph() \
.text("Using embedded font") \
.font(font.name, font.size) \
.at(page_number=1, x=100, y=400) \
.add()

pdf.save("output.pdf")

Finding Fonts Programmatically

You can also search for fonts dynamically using the find_fonts() method:

from pdfdancer import PDFDancer

with PDFDancer.open("document.pdf") as pdf:
# Search for fonts available on the service
fonts = pdf.find_fonts("Roboto", 14)

if fonts:
# Use the first match
font = fonts[0]
print(f"Using: {font.name} at {font.size}pt")

pdf.new_paragraph() \
.text("Text with service font") \
.font(font.name, font.size) \
.at(page_number=1, x=300, y=500) \
.add()

pdf.save("output.pdf")

Notes

  • These fonts are pre-registered on the PDFDancer service and ready to use
  • No font file upload required when using these fonts
  • For custom fonts not in this list, see Working with Fonts
  • Font names are case-sensitive
  • The font list is updated dynamically from the service