from ironpdf import * html_with_font = '''<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet"> <p style="font-family: \'Lobster\', serif; font-size:30px;" > Hello Google Fonts</p>''' # Instantiate Renderer renderer = ChromePdfRenderer() renderer.RenderingOptions.WaitFor.RenderDelay(500) # Create a PDF from an HTML string pdf = renderer.RenderHtmlAsPdf(html_with_font) # Export to a file or Stream pdf.SaveAs("font.pdf")