PdfBoxGraphics2DFontTextDrawer, but tries to use default fonts
whenever possible. Default fonts are not embedded. You can register
additional font files. If no font mapping is found, Helvetica is used.
This will fallback to vectorized text if any kind of RTL text is rendered
and/or any other not supported feature is used.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PDFont | Returns: a PDFont Courier variant which matches the style in the given Font object.Font to get the styles from font)Get a PDType1Font.COURIER-variant, which matches the given font |
| public static PDFont | Returns: a PDFont Helvetica variant which matches the style in the given Font object.Font to get the styles from font)Get a PDType1Font.HELVETICA-variant, which matches the given font |
| public static PDFont | Returns: a PDFont Times variant which matches the style in the given Font object.Font to get the styles from font)Get a PDType1Font.TIMES-variant, which matches the given font |
| private static boolean | |
| public static PDFont | Returns: null if no default font is found or a default font which does not need to be embedded.font for which to find a suitable default font font)Find a PDFont for the given font object, which does not need to be embedded. |
| protected PDFont | mapFont(Font
the java.awt.Font for which a mapping should be found font, IPdfBoxGraphics2DFontTextDrawer.environment of the font mapper envOverrides de. Try to map the java.awt.Font to a PDFont. |
| PdfBoxGraphics2DFontTextDrawerDefaultFonts | back to summary |
|---|---|
| public PdfBoxGraphics2DFontTextDrawerDefaultFonts() | |
| chooseMatchingCourier | back to summary |
|---|---|
| public static PDFont chooseMatchingCourier(Font font) Get a PDType1Font.COURIER-variant, which matches the given font | |
| chooseMatchingHelvetica | back to summary |
|---|---|
| public static PDFont chooseMatchingHelvetica(Font font) Get a PDType1Font.HELVETICA-variant, which matches the given font | |
| chooseMatchingTimes | back to summary |
|---|---|
| public static PDFont chooseMatchingTimes(Font font) Get a PDType1Font.TIMES-variant, which matches the given font | |
| fontNameEqualsAnyOf | back to summary |
|---|---|
| private static boolean fontNameEqualsAnyOf(Font font, String... names) | |
| mapDefaultFonts | back to summary |
|---|---|
| public static PDFont mapDefaultFonts(Font font) Find a PDFont for the given font object, which does not need to be embedded. | |
| mapFont | back to summary |
|---|---|
| protected PDFont mapFont(Font font, IPdfBoxGraphics2DFontTextDrawer. Overrides de. Doc from de. Try to map the java.awt.Font to a PDFont.
| |