# Aspose.Font-for-Java **Repository Path**: william0598/Aspose.Font-for-Java ## Basic Information - **Project Name**: Aspose.Font-for-Java - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-01 - **Last Updated**: 2021-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Java API for Various Font Formats [Aspose.Font for Java](https://products.aspose.com/font/java) is a font loading and drawing library. It supports multiple front formats such as TrueType (with TrueType collectons), CFF, OpenType, and Type1. The API provides rich functionality to load/save font and provide information about its data structures along with any glyph that is supported by all the font types. It also provides encoding information for all the font types which represents a mapping between character codes and glyph identifiers. Its rendering subsystem helps end-users to render any desired glyph or text. Special glyphs can be rendered by implementing interface using simple graphics functionality (move point, draw line, curve). Directory | Description --------- | ----------- [Examples](Examples) | A collection of Java examples that help you learn the product features.
## Font API Features - [Load font files from disc](https://docs.aspose.com/font/java/loading-saving-cff-fonts/) as well as stream. - Read font information and save updated font files to disc. - Support for [*`TrueType`* and *`OpenType`*](https://docs.aspose.com/font/java/working-with-truetype-and-opentype-fonts/) Fonts. - Load `TrueType` Font types from locally stored files, update parameters and save. - Work with Glyphs and Metrics of `TrueType` Fonts. - Render text using `TrueType` and `Type1` font. - Detect Latin Symbols in Fonts. - Load and extract data from `Type1` Font stored at the local disc. - Work with Glyphs and Metrics of `Type1` Fonts. - Render text using custom interfaces. For a more comprehensive list of features, please visit [Feature Overview](https://docs.aspose.com/font/java/feature-list/). ## Read & Write Font Formats TTF ## Read Font Formats TTC, OpenType, CFF, Type1 ## Supported Environments - **Microsoft Windows:** Windows Desktop & Server (x86, x64), Windows Azure - **macOS:** Mac OS X - **Linux:** Ubuntu, CentOS, and others - **Java Versions:** `J2SE 8.0 (1.8)` or above. ## Get Started with Aspose.Font for Java Aspose hosts all Java APIs at the [Aspose Repository](https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-font). You can easily use Aspose.Font for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit [Installing Aspose.Font for Java from Maven Repository](https://docs.aspose.com/font/java/installation/) documentation page. ## Detect Latin Symbols Support in the Font using Java ```java // For complete examples and data files, please go to https://github.com/aspose-font/Aspose.Font-for-Java String fileName = Utils.getDataDir() + "Montserrat-Regular.ttf"; //Font file name with full path FontDefinition fd = new FontDefinition(FontType.TTF, new FontFileDefinition("ttf", new FileSystemStreamSource(fileName))); TtfFont ttfFont = (TtfFont) Font.open(fd); boolean latinText = true; for (int code = 65; code < 123; code++) { GlyphId gid = ttfFont.getEncoding().decodeToGid(code); if (gid == null || gid == GlyphUInt32Id.getNotDef()) { latinText = false; } } if (latinText) { System.out.println(MessageFormat.format("Font {0} supports latin symbols.", ttfFont.getFontName())); } else { System.out.println(MessageFormat.format("Latin symbols are not supported by font {0}.", ttfFont.getFontName())); } ``` [Product Page](https://products.aspose.com/font/java) | [Docs](https://docs.aspose.com/font/java/) | [API Reference](https://apireference.aspose.com/font/java) | [Examples](https://github.com/aspose-font/Aspose.Font-for-Java) | [Blog](https://blog.aspose.com/category/font/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/font) | [Temporary License](https://purchase.aspose.com/temporary-license)