Loading and Extracting Data
Contents[ Hide ]
Load CFF Font from Disc
Aspose.Font for Java API lets you open CFF Font files in your java applications. CFF font files stored on disc can be loaded by using the following steps.
- Define a new object of FontDefinition class
- Specify FontType as CFF and FontFileDefinition as cff
- Create a CffFont object and open the font file from FontDefinition object defined in the earlier step
Load CFF Font from Byte Array
You can also load CFF fonts from stream using the following code sample.