Glyph advances, path point coordinates and pair kerning.
Three documentation examples are implemented in GlyphObjectsTests (four test cases). Runtime verification is pending the user-run tests.
From the repository root:
dotnet test src/Aspose.Font.Net/Aspose.Font.Tests.csproj --filter "TestCategory=GlyphExamples"All examples use tests-data/Aspose.Font/TTF/LatoWeb-Regular.ttf. BaseTests supplies the license and DataDir. Font loading and glyph selection are test setup outside the snippet markers. When reusing the snippets, supply a loaded Font; the point example also requires a nonempty Glyph. The examples produce no output files.
- Sum glyph advances for Hello world at size 10, without pair kerning. The fixture's hmtx/head tables give an expected width of 50.99.
- Collect integer endpoint and Bezier control-point coordinates for A and S. Casting truncates fractional coordinates; the list does not group contours or process ClosePath.
- Query kerning for A/C. The supplied font's horizontal kern table has no pair adjustment, so the expected value is zero.
Assertions remain outside all snippet markers. The source page has no separate executable composite-glyph example.
- Documentation – Aspose.Font for .NET
- Product page – Aspose.Font for .NET
- Free Support Forum – Aspose.Font
- Blog – Aspose.Font Product Family
- API Reference – Aspose.Font for .NET
- NuGet – Aspose.Font
- .NET 5.0+, .NET Core, or .NET Framework
- Aspose.Font for .NET library