class EmbeddedFonts
{

    private EmbeddedFonts()
    {
    }
    
    public static void main(String[] args) throws IOException
    {<FILL_FUNCTION_BODY>}
}

        try (PDDocument document = new PDDocument())
        {
            PDPage page = new PDPage(PDRectangle.A4);
            document.addPage(page);
            
            String dir = "../pdfbox/src/main/resources/org/apache/pdfbox/resources/ttf/";
            PDType0Font font = PDType0Font.load(document, new File(dir + "LiberationSans-Regular.ttf"));
            
            try (PDPageContentStream stream = new PDPageContentStream(document, page))
            {
                stream.beginText();
                stream.setFont(font, 12);
                stream.setLeading(12 * 1.2f);

                stream.newLineAtOffset(50, 600);
                stream.showText("PDFBox's Unicode with Embedded TrueType Font");
                stream.newLine();
                
                stream.showText("Supports full Unicode text ☺");
                stream.newLine();
                
                stream.showText("English русский язык Tiếng Việt");
                stream.newLine();
                
                // ligature
                stream.showText("Ligatures: \uFB01lm \uFB02ood");
                
                stream.endText();
            }
            
            document.save("example.pdf");
        }
    
<no_super_class>