Skip to content

updates to use PDType0Font in the doc#25

Open
maidenur wants to merge 1 commit into
GlenKPeterson:masterfrom
maidenur:font-revise
Open

updates to use PDType0Font in the doc#25
maidenur wants to merge 1 commit into
GlenKPeterson:masterfrom
maidenur:font-revise

Conversation

@maidenur

@maidenur maidenur commented Mar 5, 2023

Copy link
Copy Markdown

Users will be able to insert desired fonts using the PDDocument which will be injected to PdfLayoutMgr.

        PDDocument document = new PDDocument();
        PDFont font = PDType0Font.load(document, new File("AbhayaLibre-Medium.ttf"));
        PDFont boldFont = PDType0Font.load(document, new File("AbhayaLibre-Bold.ttf"));
        PdfLayoutMgr pageMgr = PdfLayoutMgr.newRgbPageMgr(document);

TextStyle as;

TextStyle regular = TextStyle.of(font, 9.5, Color.BLACK);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant