RecursiveAI.OneImage.Text
1.7.0
dotnet add package RecursiveAI.OneImage.Text --version 1.7.0
NuGet\Install-Package RecursiveAI.OneImage.Text -Version 1.7.0
<PackageReference Include="RecursiveAI.OneImage.Text" Version="1.7.0" />
<PackageVersion Include="RecursiveAI.OneImage.Text" Version="1.7.0" />
<PackageReference Include="RecursiveAI.OneImage.Text" />
paket add RecursiveAI.OneImage.Text --version 1.7.0
#r "nuget: RecursiveAI.OneImage.Text, 1.7.0"
#:package RecursiveAI.OneImage.Text@1.7.0
#addin nuget:?package=RecursiveAI.OneImage.Text&version=1.7.0
#tool nuget:?package=RecursiveAI.OneImage.Text&version=1.7.0
OneImage.Text
Fonts and text for OneImage: load TrueType, OpenType (CFF), TrueType Collection, WOFF and WOFF2 fonts, draw COLR color glyphs, measure and lay out text, and draw it on an Image or Canvas through the vector drawing layer. Pure C# with no dependency beyond OneImage and .NET.
using OneImage;
using OneImage.Drawing;
using OneImage.Text;
var fonts = new FontCollection();
FontFamily family = fonts.Add("Roboto-Regular.ttf");
Font font = family.CreateFont(32);
Image img = Image.Load("photo.jpg")
.DrawText("Hello, world", new TextOptions(font) { Origin = new(40, 60) }, Brush.Solid(new Rgba32(255, 255, 255, 255)));
Text is shaped with OpenType GSUB/GPOS (ligatures, kerning, marks) for Latin, Greek, Cyrillic, Arabic, Hebrew, the Indic scripts, Thai, Lao and the other complex scripts (with the Unicode bidirectional algorithm, so mixed left-to-right and right-to-left paragraphs lay out correctly) and wrapped with the Unicode line breaking algorithm. Vertical and bottom-to-top layout, TrueType hinting (opt-in) and COLR version 0 and 1 color glyphs are supported, as are rich-text runs, decorations, font fallback, text on a path and installed fonts. The text guide covers the API, units, defaults and the differences from SixLabors.Fonts.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- RecursiveAI.OneImage (= 1.7.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RecursiveAI.OneImage.Text:
| Package | Downloads |
|---|---|
|
RecursiveAI.OneImage.Svg
SVG support for OneImage: reads static SVG (shapes, paths, gradients, patterns, clipping, masks, markers, filters and text) as an image format, rendered directly at the requested output size. |
GitHub repositories
This package is not used by any popular GitHub repositories.
See CHANGELOG.md in the repository.