SimdSkia.Text
0.1.10
dotnet add package SimdSkia.Text --version 0.1.10
NuGet\Install-Package SimdSkia.Text -Version 0.1.10
<PackageReference Include="SimdSkia.Text" Version="0.1.10" />
<PackageVersion Include="SimdSkia.Text" Version="0.1.10" />
<PackageReference Include="SimdSkia.Text" />
paket add SimdSkia.Text --version 0.1.10
#r "nuget: SimdSkia.Text, 0.1.10"
#:package SimdSkia.Text@0.1.10
#addin nuget:?package=SimdSkia.Text&version=0.1.10
#tool nuget:?package=SimdSkia.Text&version=0.1.10
SimdSkia 0.1.10
0.1.10 减少裁剪、阴影、描边和字形绘制的托管分配。本机 Win64 的 OxyPlot 测试中,分配为 1.219 MiB/s,工作集为 161.7 MiB,完整 GC 后大对象堆留存为 1.52 MiB。发行说明 · 性能报告
0.1.9 OxyPlot 兼容修复
0.1.9 修复 OxyPlot 绘制坐标轴次刻度时的流式几何异常。桌面和渲染适配器要求 Avalonia 12.1.0 起,Android 要求 12.1.5 起。发行说明
0.1.7 性能更新
减少 Direct2D 连续位图上传的分配,优化字体匹配、几何命中、CPU 绘制、PNG 编码和 Vulkan 初始化。十三个包统一为 0.1.7,面向 .NET 10。编解码器使用 Sdcb.SimdCodecs 2.0.0,可选 PDF 依赖为 PdfPig 0.1.16。发行说明 · CPU、内存与 NativeAOT 实测
SimdSkia 0.1.4 Android NuGet 接入
十三包统一0.1.4正式版,新增SimdSkia.Avalonia.Android,固定Avalonia12.1.5,使用C# CPU/通用SIMD。此前Android16 ARM64源码真机通过中文、触摸、输入、动画和前后台恢复,新增包另做独立缓存Release/Mono AOT消费构建。完整使用方法、字体和主题配置见Android说明,更新与验收见0.1.4发行说明和包内CHANGELOG.md。iOS呈现适配、Android GPU及可变/CFF字体待完善。桌面版本矩阵12.1.0–12.1.5,既有画质/性能差距见报告。可选PDF依赖为PdfPig 0.1.16。
0.1.3 桌面 GPU 优先与文字缓存
从0.1.2升级:桌面默认GPU优先,Windows Direct2D原生呈现、Linux Vulkan、诊断后回退CPU;macOS窗口仍CPU。.UseSimdSkiaDesktop(options => options.UseCpu()) 可保留CPU。新增两帧完成队列、状态缓存、跨帧回退像素修复、文字缓存共享计费/不可变遮罩/LRU及Vulkan有序合批。动态中文自身GPU耗时下降81%–93%,分配降至约168–169B/帧,详细CPU/内存和画质限制见0.1.3发行说明及包内CHANGELOG.md。Avalonia仍>=12.1.0且<13.0.0;原版文字/曲线/整页画质、JPEG及部分性能/内存差距保留,整体目标未全部达到。第三方依赖保持可选 PdfPig 0.1.16、Sdcb.SimdCodecs1.4.0与Clipper2 2.0.0,公开状态以发布记录为准。
0.1.2 历史累计功能
固定SkiaSharp3.119.4基线,892→3230/3235项、累计新增2338项公共元数据签名,63→201类型;按约定保留5项原生合同缺口。扩展路径/描边/渐变/采样/滤镜/Blender/RuntimeEffect子集、Picture/网格、真实Alpha8/浮点颜色、LCD/中文点阵、SVG/XPS/SKP与PDF注释。增加GL/GLES/D3D12/Metal核心及GPU资源互操作,优化Vulkan设备复制/矩形合批/完成读回、SIMD/有界缓存/分配;修复MoveTo、SaveLayer混合范围和纹理生命周期。
Avalonia接受>=12.1.0且<13.0.0,已验证宿主12.1.0–12.1.5。默认SK*解码校正为N32/预乘,直接读取像素的应用应检查ColorType/AlphaType/RowBytes。依赖保持Sdcb.SimdCodecs1.4.0/Clipper2 2.0.0/可选 PdfPig 0.1.16。Metal无Mac GPU实机验证;JPEG、曲线/文字/整页画质、内存及部分GPU/API性能仍有差距。正式版按已实现子集发布,不是全面行为或二进制替换保证;GPU对象要求创建线程显式Dispose。
完整累计更新、性能记录、限制与升级方法见包内CHANGELOG.md和0.1.2发行说明。原始测量按快照保留,不以正式版本号改写画质结果。
Packages target .NET 10 or later:
| Package | Purpose |
|---|---|
| SimdSkia | Convenience package for the source compatibility facade |
| SimdSkia.Core | Geometry, commands and pixel storage |
| SimdSkia.Cpu | Scalar/SIMD CPU rasterization and composition |
| SimdSkia.Text | Managed static glyf TrueType parsing and basic Latin/CJK layout |
| SimdSkia.Imaging | Managed Sdcb codecs with validated input, supported colour conversion and permitted BCL compression |
| SimdSkia.Gpu | Vulkan and GL/GLES; experimental Metal core without hardware validation; requires system APIs/drivers |
| SimdSkia.Compatibility | Implemented SkiaSharp namespace / SK* facade |
| SimdSkia.Avalonia | Rendering/font adapter for Avalonia 12.1.0 or later |
| SimdSkia.Avalonia.Desktop | Windows/Linux X11/macOS OS hosts plus the managed renderer |
| SimdSkia.Avalonia.Gpu | Optional Direct2D native presentation / Vulkan framebuffer drawing |
| SimdSkia.Gpu.Direct2D | Windows hardware Direct2D/D3D11 canvas, C# system API bindings |
| SimdSkia.Pdf | Optional managed PDF parsing/rendering; subset only, pinned PdfPig 0.1.16 |
dotnet add package SimdSkia.Avalonia.Desktop --version 0.1.9
An existing Avalonia application selects the adapter explicitly.
using SimdSkia.Avalonia;
AppBuilder.Configure<App>()
.UseSimdSkiaDesktop()
.StartWithClassicDesktopLifetime(args);
Windows uses its current message font; Linux/macOS discover supported installed static TrueType families. Explicit options.FontFiles.Add(path) overrides automatic selection. Parsing, shaping, glyph coverage and codecs remain C#. Chinese text needs a supported installed Chinese font. Complex shaping, CFF/variable/color fonts and hinting have gaps.
Startup preparation is enabled by default. To disable it for diagnosis, use .UseSimdSkiaDesktop(options => options.EnableStartupPreparation = false). Keep all directly referenced SimdSkia packages on version 0.1.9 and align the versions of your Avalonia packages.
The base adapter provides rendering/font services. The Desktop package supplies OS host selection without Skia/HarfBuzz/ANGLE packages. macOS uses the official MIT libAvaloniaNative window bridge, an explicit window-host exception; application drawing/fonts are managed. The optional GPU adapter defaults Direct2D to a native Windows swapchain; Vulkan currently waits for completion and reads back to the OS framebuffer. The Metal core is unverified and is not wired into Avalonia presentation. GPU glyphs normally use a managed atlas, and CPU layers/fallbacks are reported. See the complete quick start.
SimdSkia and SimdSkia.Compatibility expose only the implemented SK* subset. Do not reference them together with the original SkiaSharp types in the same compilation. Avalonia users normally need only the adapter, not the SK* facade.
MIT licensed. Third-party components retain their own licenses and notices, included in the relevant packages. See the repository's validation and remaining gaps.
Standalone SkiaSharp namespace usage
dotnet add package SimdSkia --version 0.1.9
using SkiaSharp;
using var bitmap = new SKBitmap(160, 100);
using var canvas = new SKCanvas(bitmap);
canvas.Clear(SKColors.White);
using var paint = new SKPaint { Color = SKColors.Blue };
canvas.DrawRect(10, 10, 80, 50, paint);
if (bitmap.GetPixel(20, 20) != SKColors.Blue)
throw new Exception("Pixel validation failed.");
using var png = bitmap.Encode(SKEncodedImageFormat.Png, 100);
using var file = File.Create("rectangle.png");
png.SaveTo(file);
The facade targets the documented SkiaSharp 3.119.4 subset. The five native contracts remain missing, and rendering/behavior parity is incomplete. Dispose GPU resources explicitly on their creating thread; GC finalization equivalence is not established.
| 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
- SimdSkia.Core (>= 0.1.10)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SimdSkia.Text:
| Package | Downloads |
|---|---|
|
SimdSkia.Avalonia
Managed C# rendering/font services for Avalonia 12.1.0 or later. Windows/Linux/macOS installed-font discovery. Add SimdSkia.Avalonia.Desktop for OS window hosts and SimdSkia.Avalonia.Gpu for optional hardware drawing. |
|
|
SimdSkia.Compatibility
Managed C# 2D rendering components. Version 0.1 supports the documented subset; SkiaSharp source and rendering equivalence remain incomplete. No Google Skia rendering dependency. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.10 | 0 | 11/19/2026 |
| 0.1.9 | 0 | 11/19/2026 |
| 0.1.8 | 48 | 11/18/2026 |
| 0.1.6 | 71 | 11/18/2026 |
| 0.1.5 | 90 | 11/17/2026 |
| 0.1.4 | 157 | 11/9/2026 |
| 0.1.3 | 166 | 11/7/2026 |
| 0.1.2 | 158 | 11/7/2026 |
| 0.1.2-preview.3 | 97 | 11/6/2026 |
| 0.1.1 | 173 | 11/4/2026 |
| 0.1.0 | 162 | 11/4/2026 |
| 0.1.0-preview.10 | 102 | 11/1/2026 |
| 0.1.0-preview.9 | 96 | 10/27/2026 |
| 0.1.0-preview.8 | 101 | 10/27/2026 |
| 0.1.0-preview.7 | 89 | 10/26/2026 |
| 0.1.0-preview.6 | 86 | 10/22/2026 |
| 0.1.0-preview.5 | 97 | 10/22/2026 |
| 0.1.0-preview.4 | 91 | 10/21/2026 |
| 0.1.0-preview.3 | 86 | 10/21/2026 |
| 0.1.0-preview.2 | 91 | 10/21/2026 |
0.1.10 正式版。减少 Avalonia 裁剪、阴影、描边和字形绘制的托管分配。性能和 NativeAOT 实测见 CHANGELOG.md。