public class DiagramFontUtils extends Object
| Constructor and Description |
|---|
DiagramFontUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.aspose.diagram.Char |
createCharObject(int ix,
Font font,
Color foregroundColor,
DiagramContent content) |
static void |
restoreCharFontIds(com.aspose.diagram.Diagram diagram)
Restores the font references of the characters in a VDX, VSX or VTX diagram.
|
public static com.aspose.diagram.Char createCharObject(int ix,
Font font,
Color foregroundColor,
DiagramContent content)
public static void restoreCharFontIds(com.aspose.diagram.Diagram diagram)
Restores the font references of the characters in a VDX, VSX or VTX diagram.
Aspose.Diagram for Java 26.8 and later reads the Char.Font cell of these formats (a face ID) as a font name. For every ID N it adds a face named "N" and points the characters at that face, so the text loses its font and the document is corrupted when it is saved. This method points such characters back to the face with ID N, restores their font name and removes the added faces. A diagram loaded correctly is left unchanged.
diagram - The diagram just loaded from a VDX, VSX or VTX document.Copyright © 2026 GroupDocs. All rights reserved.