VL.ImGui.CrossPlatform
1.90.0.2
dotnet add package VL.ImGui.CrossPlatform --version 1.90.0.2
NuGet\Install-Package VL.ImGui.CrossPlatform -Version 1.90.0.2
<PackageReference Include="VL.ImGui.CrossPlatform" Version="1.90.0.2" />
<PackageVersion Include="VL.ImGui.CrossPlatform" Version="1.90.0.2" />
<PackageReference Include="VL.ImGui.CrossPlatform" />
paket add VL.ImGui.CrossPlatform --version 1.90.0.2
#r "nuget: VL.ImGui.CrossPlatform, 1.90.0.2"
#:package VL.ImGui.CrossPlatform@1.90.0.2
#addin nuget:?package=VL.ImGui.CrossPlatform&version=1.90.0.2
#tool nuget:?package=VL.ImGui.CrossPlatform&version=1.90.0.2
VL.ImGui.CrossPlatform
vvvv's ImGui (VL.ImGui) ships its native library for Windows only, and on macOS and Linux it finds no fonts. This package brings both: the native library for macOS and Linux, and sharp fonts at the display's scale. Patch your ImGui UI once, and your exported app shows it on a Mac or a Linux box just as on Windows.
It comes with VL.Skia.Renderer.CrossPlatform, the Skia renderer that draws ImGui (and any Skia layer) in a window on all three systems: adding this package brings it along.
Features
- vvvv's ImGui on macOS (Apple Silicon) and Linux (x64, arm64), in exported apps.
- Sharp fonts on macOS and Linux: the fonts your ImGui region asks for come from the system's fonts, built at the display's scale (Retina, Wayland scaling), instead of ImGui's tiny bitmap font.
- Fonts that come with the patch, on every system: FontFile (Cross-Platform).
- Exports take the font files of a
Fontsfolder next to the patch along. - Windows is not affected: VL.ImGui brings its own native library there, and fonts by name work as before.
Nodes
Both are in ImGui.
FontFile (Cross-Platform) loads a font file for ImGui and Skia. Pins: Family Name, Path, Size, Font Style, Glyph Range; outputs: Font Config, for the ImGui region's Fonts pin, and Typeface, the same font for Skia text. FontConfigs with that Family Name, in any ImGui region, use the file too, on Windows, macOS and Linux. A relative Path is relative to the patch in the editor and to the app's folder in an export.
FontSwap passes an ImGui region's Layer through and gives the region its fonts on macOS and Linux (and the FontFile fonts on every system). You only need it when the layer is drawn by a renderer that doesn't do this by itself, for example vvvv's own Skia Renderer on Windows with a FontFile font. Renderer (Cross-Platform) and Renderer (OffScreen Cross-Platform) of VL.Skia.Renderer.CrossPlatform, and VL.WebRenderer.CrossPlatform, do it by themselves: a patch drawn by them needs no FontSwap.
The help patch Demo_CrossPlatform shows an ImGui UI in the Inter font from its Fonts folder, drawn by Renderer
(Cross-Platform).
Install
You need vvvv gamma 8.0 or later. Open the Package Manager (Ctrl+F3), switch to Browse Packs, search for VL.ImGui.CrossPlatform and click Add. For the help patch also add VL.Skia.Renderer.CrossPlatform. The help patch is in the Help Browser (F1).
Add it to a patch that uses VL.ImGui; nothing else to set up.
Fonts
- By name: a FontConfig's Family Name is looked up in the system's fonts. Windows names map to their usual counterparts: Segoe UI to Helvetica Neue (macOS) or DejaVu Sans (Linux), Consolas to Menlo or DejaVu Sans Mono, and Arial, Times New Roman and Courier New to the matching or metric-compatible fonts. Without a FontConfig the region gets the system's UI font.
- From a file: put the file in a
Fontsfolder next to the patch, point FontFile (Cross-Platform) at it (PathFonts/MyFont.ttf) and connect its Font Config to the region's Fonts pin (through FromValue, or Cons with other fonts). The same font then shows on every system. Use Font Config rather than a FontConfig node: FontConfig's Family Name lists only the fonts installed on the system and marks the file's family as not valid. - In exports: the files in
Fonts(.ttf, .otf, .ttc, and .txt/.md license files) are copied into aFontsfolder next to the exported app. Turn that off with<PropertyGroup><VLImGuiCrossPlatformCopyFonts>false</VLImGuiCrossPlatformCopyFonts></PropertyGroup>in a<PatchName>.propsnext to the patch, or name another folder withVLImGuiCrossPlatformFontsDir.
Many font licenses (most desktop fonts) do not allow embedding the font in an app or passing it on. Ship only fonts whose license permits that (for example the SIL Open Font License) and keep the license text beside the font file.
The font swap acts only where VL.ImGui fell back to its bitmap font, or for FontFile families, and builds a region's
fonts again only when they change. VL_IMGUI_CROSSPLATFORM_LOG=1 prints each rebuild (which font, from which file).
Exporting
Pick the target system in the export dialog: osx-arm64, linux-x64 or linux-arm64 (for macOS and Linux export a
Console application). The native library goes next to the app, and the Fonts folder next to the patch goes along.
- macOS: VL.Skia.Renderer.CrossPlatform, which comes with this package, adds what a Mac export needs to start: run
bash setup.shonce in the app's folder (it clears the quarantine and sets the executable bits, also for a folder copied from Windows), then double-clickStart AppName.command. The app is not signed yet, so macOS may still ask the first time: right-click it, Open, Open. By hand:xattr -dr com.apple.quarantine . && chmod +x AppName, then./AppName. - Linux: copy the folder over,
chmod +x AppName, start it.
The package checks two things when you build or export:
- If VL.ImGui itself ships the native library for the platform, this package's copy is left out, and the build says that VL.ImGui.CrossPlatform is no longer needed there.
- If the ImGui.NET that VL.ImGui ships has another version than the one these libraries were built for, the build
warns (
VLIMGUICP001): ImGui will likely crash on macOS and Linux. Use the VL.ImGui.CrossPlatform version that matches your vvvv: 1.90.0.x matches Dear ImGui 1.90.0 and ImGui.NET 1.90.0.1, as in vvvv gamma 8.0 (the fourth part counts this package's releases). SetVLImGuiCrossPlatformChecktofalseto turn the warning off.
Platforms
| Platform | Status | Notes |
|---|---|---|
| Windows x64 | ✅ | VL.ImGui's own library; FontFile and FontSwap work. Demo tested as a Windows export |
| macOS arm64 | ✅ | macOS 12 or newer, Apple Silicon. Demo tested on an Apple M1 (macOS 26): Inter at 36 px, scale 2 |
| Linux x64 | ✅ | glibc 2.28 or newer (Debian 10, Ubuntu 20.04 and later), no libstdc++ needed. Demo tested on Ubuntu 24.04 (Wayland, scale 2) |
| Linux arm64 | untested | Same build as x64 |
The libraries are Dear ImGui 1.90.0 (docking branch) with cimgui, built unchanged from vvvv/ImGui.NET-nativebuild 95abfbc, the sources VL.ImGui of vvvv gamma 8.0 uses (ImGui.NET 1.90.0.1).
Limitations
- One ImGui scale per app: VL.ImGui scales by one global factor, so a window on a screen with another scale gets the main screen's.
- Font styles come from the font files the system has: a family without a bold file shows regular text for Bold.
- Linux arm64 is built but not yet tested on a device.
Rebuild
The natives must be built from the same nativebuild commit as the VL.ImGui they run with; a mismatch crashes.
native/VERSIONpins the sources.native/check-version.sh [VL.ImGui version]fails when they differ from what that VL.ImGui was built with (default:VLVersioninDirectory.Build.props).native/build.sh <rid> Releasebuilds intoartifacts/<rid>/native. Add--installto replace the library inruntimes/<rid>/nativethat the package ships. Linux builds for the package need Zig 0.13 (ZIG=<path to zig>), which targets glibc 2.28 from any Linux host; macOS builds need an Apple Silicon Mac.native/test.shchecks the libraries inruntimes/as they are (exports, glibc, no libstdc++) and loads the one matching the machine. It never builds or replaces them.dotnet pack src/VL.ImGui.CrossPlatform.csproj -c Release -o artifactsmakes the package.
License
VL.ImGui.CrossPlatform is MIT licensed and free to use, see LICENSE.
In short: you may use, change and sell it and what you build with it, also in closed-source commercial projects. Keep the copyright notice, and ship the third-party notices with your app. No warranty.
vvvv: the MIT license covers this package only. vvvv has its own license: free for evaluation, non-commercial use, FOSS development and teaching; any commercial use, including academic research and NPOs, needs a per-developer license. See vvvv licensing.
The native libraries are Dear ImGui and cimgui (MIT) with the stb libraries (MIT / public domain); the Linux builds link in LLVM's libc++ (Apache 2.0 with LLVM Exceptions). The help's example font is Inter (SIL Open Font License 1.1). See THIRD-PARTY-NOTICES.md.
This is an independent project, not made or endorsed by the vvvv group.
| 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
- VL.Skia.Renderer.CrossPlatform (>= 0.1.0)
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 |
|---|---|---|
| 1.90.0.2 | 110 | 11/30/2026 |
Fix release of VL.ImGui.CrossPlatform: the same libraries, nodes and demo as 1.90.0.1.
- README: a plain title. nuget.org showed the icon's HTML tag in the title as text.
- README: VL.Skia.Renderer.CrossPlatform comes along as a dependency (1.90.0.1's README still said that neither
package needs the other).
- Versioning: 1.90.0.x is for Dear ImGui 1.90.0 / ImGui.NET 1.90.0.1, as in vvvv gamma 8.0. The fourth part counts
this package's releases.
For everything in the package see the release notes of 1.90.0.1.