Morse code encoding and decoding, alphabets, separators and application scenarios.
Four documentation examples are implemented: encoding to glyph identifiers, rendering a PNG, decoding to plain text, and a combined scenario. Runtime verification is pending the user-run tests.
From the repository root:
dotnet test src/Aspose.Font.Net/Aspose.Font.Tests.csproj --filter "TestCategory=MorseCodeExamples"Input under tests-data/Aspose.Font: TTF/LatoWeb-Regular.ttf. Plain-text decoding does not require a font. BaseTests supplies the existing license setup. Output files under tests-out/Aspose.Font.Net/MorseCode: morse.png and callme.png. The PNG fragment continues the font/encoder setup shown in the preceding glyph example; the test supplies that setup outside its snippet.
The current API returns GlyphId[] for glyph encoding and Stream for PNG rendering. Rendering uses pixel line spacing and maximum width; image height is calculated automatically. Character parameters are word separators, not replacement dot/dash symbols. Use IMorseDecoder for plain text; IFontMorseDecoder returns glyph identifiers or a rendered stream.
- 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