X-Ray.Psd.Text 26.10.7019

dotnet add package X-Ray.Psd.Text --version 26.10.7019
                    
NuGet\Install-Package X-Ray.Psd.Text -Version 26.10.7019
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="X-Ray.Psd.Text" Version="26.10.7019" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="X-Ray.Psd.Text" Version="26.10.7019" />
                    
Directory.Packages.props
<PackageReference Include="X-Ray.Psd.Text" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add X-Ray.Psd.Text --version 26.10.7019
                    
#r "nuget: X-Ray.Psd.Text, 26.10.7019"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package X-Ray.Psd.Text@26.10.7019
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=X-Ray.Psd.Text&version=26.10.7019
                    
Install as a Cake Addin
#tool nuget:?package=X-Ray.Psd.Text&version=26.10.7019
                    
Install as a Cake Tool

X-Ray.Psd.Text

Type-layer re-rendering for X-Ray.Psd, the dependency-free PSD/PSB reader and renderer for .NET. It draws Photoshop type layers from their parsed text with HarfBuzz shaping and SkiaSharp glyph rasterization, following Photoshop's layout model for point, box, vertical and on-path text, leading, tracking, alignment, the layer transform and Warp Text.

  • TextLayerRasterizer plugs into RenderOptions.TextRasterizer. By default only type layers without stored pixels are drawn; TextRasterMode.Always redraws every type layer. Masks, effects, clipping and blend modes apply as usual.
  • TextLayerRenderer.Render(layer) draws one layer on its own.
  • IFontResolver maps PostScript font names to faces: FontCollection for font files you supply, SystemFontResolver for installed fonts, CompositeFontResolver to chain them. Metric-compatible aliases (Arial to Liberation Sans, Calibri to Carlito) are built in, and FindMissingFonts reports names that fall back.
using XRay.Psd;
using XRay.Psd.Rendering;
using XRay.Psd.Text;

var fonts = new FontCollection();
fonts.AddFile("fonts/LiberationSans-Regular.ttf");

using var rasterizer = new TextLayerRasterizer(new TextRenderSettings
{
    FontResolver = new CompositeFontResolver(fonts, SystemFontResolver.Default),
});

var document = PsdDocument.Load("poster.psd");
document.Render(new RenderOptions { TextRasterizer = rasterizer }).SavePng("poster.png");

Applications add the Skia and HarfBuzz native asset packages for their platform (for example SkiaSharp.NativeAssets.Linux and HarfBuzzSharp.NativeAssets.Linux).

Part of the X-Ray family of .NET libraries by Curiosity GmbH. Source: curiosity-ai/x-ray-others.

License: MIT.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on X-Ray.Psd.Text:

Package Downloads
X-Ray

The umbrella package for the X-Ray family of .NET libraries. Carries no code of its own: installing it brings in every X-Ray package, for content extraction (X-Ray.Content), rendering office documents to PDF and images (X-Ray.Office), and reading Photoshop (X-Ray.Psd), email (X-Ray.Email), iCalendar (X-Ray.Ics), PostScript and XPS (X-Ray.PS) and OneNote (X-Ray.OneNote) files. Install a single member directly if you only need one.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.10.7019 0 10/19/2026
26.10.6966 7 10/19/2026