Load Type1 fonts, read their metrics, check basic Latin letters and render text with a custom glyph outline painter using Aspose.Font for Java.
- Load a Type1 font from a PFB file.
- Read the font name, glyph count and metrics.
- Check support for all 52 basic Latin letters (
A–Zanda–z) using named Type1 glyph IDs. - Render text to PNG images in two color schemes using Java 2D, a custom outline painter and glyph positioning helpers.
The examples use courier.pfb. Adapt getDataDir(), getOutputDir() and the relative font path to your application. Combine the rendering example with the drawText, fontWidthToImageWidth and Type1GlyphOutlinePainter snippets in the same class.
- Documentation – Aspose.Font for Java
- Product page – Aspose.Font for Java
- Free Support Forum – Aspose.Font
- Blog – Aspose.Font Product Family
- API Reference – Aspose.Font for Java
- Releases – Aspose.Font for Java
- JDK 8 or later with Java 2D and ImageIO available; rendering also works in headless mode.
- Aspose.Font for Java library.
- An input Type1 font and a writable output directory for rendered images.