LeXtudio.UI.Text.Core 0.2.0

This package has a SemVer 2.0.0 package version: 0.2.0+4.
dotnet add package LeXtudio.UI.Text.Core --version 0.2.0
                    
NuGet\Install-Package LeXtudio.UI.Text.Core -Version 0.2.0
                    
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="LeXtudio.UI.Text.Core" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LeXtudio.UI.Text.Core" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LeXtudio.UI.Text.Core" />
                    
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 LeXtudio.UI.Text.Core --version 0.2.0
                    
#r "nuget: LeXtudio.UI.Text.Core, 0.2.0"
                    
#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 LeXtudio.UI.Text.Core@0.2.0
                    
#: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=LeXtudio.UI.Text.Core&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LeXtudio.UI.Text.Core&version=0.2.0
                    
Install as a Cake Tool

TextCore.Uno — Core Text APIs for Uno Platform

TextCore.Uno aims to offer a small, stable set of CoreText/IME primitives editor hosts can use to implement platform text input and IME support on Skia-based desktop platforms. It exposes a managed CoreText* API surface and uses different approaches for platform integration:

  • On Windows, it uses the Win32 IME APIs (user32/imm32) via P/Invoke.
  • On macOS, it includes a tiny native macOS helper (libUnoEditMacInput.dylib) used to surface AppKit text input callbacks to managed code.
  • On Linux, it uses libX11 via P/Invoke for X11 calls and communicates with IBus over D-Bus using a built-in managed DBus-over-socket implementation (no libibus/libdbus P/Invoke).

Quick start

  • Install the NuGet package:
dotnet add package LeXtudio.UI.Text.Core
  • Or add a PackageReference to your project file:
<PackageReference Include="LeXtudio.UI.Text.Core" Version="1.*" />

For advanced workflows (consuming from source, building the native macOS helper, or producing packages) see CONTRIBUTING.md.

API overview

  • CoreTextServicesManager.GetForCurrentView() — factory; call CreateEditContext() to get a CoreTextEditContext.
  • CoreTextEditContext — central event hub. Important events:
    • TextRequested
    • TextUpdating
    • SelectionRequested
    • SelectionUpdating
    • LayoutRequested
    • CompositionStarted / CompositionCompleted / FocusRemoved
    • CommandReceived — receives platform command selectors (e.g. AppKit doCommandBySelector: strings).

Lifecycle methods:

  • bool Attach(nint windowHandle) — attach to a native window.
  • void NotifyCaretRectChanged(double x, double y, double width, double height).
  • void NotifyFocusEnter() / void NotifyFocusLeave().
  • void Dispose().

Minimal usage example

var manager = CoreTextServicesManager.GetForCurrentView();
var ctx = manager.CreateEditContext();

ctx.TextRequested += (s, e) => e.Request.Text = GetDocumentText();
ctx.TextUpdating += (s, e) => ApplyEdit(e.NewText);
ctx.CommandReceived += (s, e) => {
  if (e.Command == "deleteBackward:") { Backspace(); e.Handled = true; }
};

ctx.Attach(hwnd);
ctx.NotifyCaretRectChanged(x, y, w, h);
// ...
ctx.Dispose();

License

This project is licensed under the MIT License. See the LICENSE file for details.

(c) 2026 LeXtudio Inc. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net10.0-desktop1.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 24 4/14/2026
0.1.0 27 4/14/2026