Skip to main content

imtypeset

Typeset text for Dear ImGui: paragraphs broken into lines the way TeX breaks them, justified and kerned, formulas written as $...$ set by a math engine, tables, columns, selection and copying, drawn through ImGui's own font atlas into your own windows.

This distribution is the Python route. It is a C++ library and a ctypes package over its C ABI, for an application that runs on the imgui-bundle wheel. The library holds no Dear ImGui of its own: it binds to the one inside the installed imgui-bundle and draws into the application's context. The C++ library, its documentation and the demo are in the repository.

One imtypeset for one imgui-bundle

A library that shares Dear ImGui's structs with another binary is built for exactly that binary. So every file here is built for one imgui-bundle version and requires it exactly, and the version says which:

imtypeset 0.4.3.192900     is imtypeset 0.4.3 for imgui-bundle 1.92.900
imtypeset 0.4.3.192801     is imtypeset 0.4.3 for imgui-bundle 1.92.801

The fourth number is the imgui-bundle version written as one number (1.92.900 is 192900). Pin both, exactly, and move them together:

imgui-bundle==1.92.900
imtypeset==0.4.3.192900
  • imtypeset==0.4.3 matches nothing: the version has four numbers.
  • imtypeset==0.4.3.* beside an exact imgui-bundle==X resolves to the build for X.
  • pip install imtypeset with nothing else pinned takes the newest line and installs the imgui-bundle it was built for, replacing another one.

import imtypeset checks the pair before it loads anything and raises ImportError with a sentence that says what to install if they do not match.

Where there are wheels

CPython imgui-bundle
Linux x86-64, glibc 2.28 or later (manylinux_2_28_x86_64) 3.11, 3.12, 3.13, 3.14 1.92.900, 1.92.801
macOS 14 or later on Apple Silicon (macosx_14_0_arm64) 3.11, 3.12, 3.13, 3.14 1.92.900, 1.92.801

Nowhere else: not Windows, not Linux on arm64 or with musl, not macOS on Intel (for which imgui-bundle has no wheel either). There is no source distribution, so on those pip finds nothing to install and says so; a package that depends on imtypeset should say so with an environment marker (docs/releasing.md has the line).

Using it

import os
import imgui_bundle
from imgui_bundle import imgui
import imtypeset as ts

imgui.create_context()  # an application has one already
imgui.get_io().backend_flags |= imgui.BackendFlags_.renderer_has_textures
ts.create_context()     # after ImGui's context, and destroyed before it
fonts = os.path.join(os.path.dirname(imgui_bundle.__file__), "assets", "fonts")
ts.add_font(ts.Face.Regular, os.path.join(fonts, "DroidSans.ttf"))
doc = ts.Document.from_blocks([ts.Block(text="Text set in lines of even colour, the way TeX sets it.")])
doc.layout(240.0)
print(ts.version(), doc.size(), doc.range_text(((0, 0), (0, 8))))
ts.destroy_context()

That runs with no window and prints 0.4.3 (240.0, 31.0) Text set. In an application the document is laid out and drawn each frame, inside a window:

doc.layout(imgui.get_content_region_avail().x)
at = imgui.get_cursor_screen_pos()
doc.draw(None, (at.x, at.y))  # None: the current window's draw list

imtypeset.host_info() says which library was loaded and how the pair was checked.

More

MIT licence. The wheel carries the notices of what the library derives from (Dear ImGui, fontTools, Unicode data) beside its own licence.

This file

A release has one file per platform and CPython, and a page shows this section from one of them.

  • imtypeset 0.4.3, built for imgui-bundle==1.92.801 (Dear ImGui 1.92.8), CPython 3.11, Darwin arm64.
  • Dear ImGui headers: fork:eb8df947f7e319de14ad383ad5c13c802d8163f6.
  • Checked: imgui-check+probe, 26 probe rows, on 2026-10-15T02:12:18Z (GitHub Actions run 38668991176 of WalterCReel3/imtypeset at 0bac06608be358aec7cf9a3ee72c6abc623146e3).

Metadata

Release files for imtypeset 0.4.3.192801

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for imtypeset 0.4.3.192801
File Actions
imtypeset-0.4.3.192801-cp314-none-manylinux_2_28_x86_64.whl CPython 3.14 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192801-cp314-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192801-cp314-none-macosx_14_0_arm64.whl CPython 3.14 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192801-cp314-none-macosx_14_0_arm64.whl
imtypeset-0.4.3.192801-cp313-none-manylinux_2_28_x86_64.whl CPython 3.13 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192801-cp313-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192801-cp313-none-macosx_14_0_arm64.whl CPython 3.13 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192801-cp313-none-macosx_14_0_arm64.whl
imtypeset-0.4.3.192801-cp312-none-manylinux_2_28_x86_64.whl CPython 3.12 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192801-cp312-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192801-cp312-none-macosx_14_0_arm64.whl CPython 3.12 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192801-cp312-none-macosx_14_0_arm64.whl
imtypeset-0.4.3.192801-cp311-none-manylinux_2_28_x86_64.whl CPython 3.11 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192801-cp311-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192801-cp311-none-macosx_14_0_arm64.whl CPython 3.11 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192801-cp311-none-macosx_14_0_arm64.whl

Total release size: 4.7 MB

Release files / imtypeset-0.4.3.192801-cp314-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192801-cp314-none-manylinux_2_28_x86_64.whl
Size 614.4 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
309c4f6e8241d4ddc44ebdca12b63290f58aa1cb8bf54a122f772e6a2adacd1a
BLAKE2b-256 checksum
How to use checksums
55ef9346557cb60ba043cab7d430f7adb7aa0cbe25d5ab93e723bc03604d59f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp314-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192801-cp314-none-macosx_14_0_arm64.whl
Size 565.9 kB
Tags CPython 3.14 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
c569d48e2127cc84e03ae66c11d606149694a3e409eca801ae41abe7ef64f14a
BLAKE2b-256 checksum
How to use checksums
ede2da00d1d44a5925401d4ef4ccd2886136f41f542353519432bd21630b732b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp313-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192801-cp313-none-manylinux_2_28_x86_64.whl
Size 614.4 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b730060c200afc3e6a008334b8ed6aa57103e0a87607f55cc761f1304956cc0a
BLAKE2b-256 checksum
How to use checksums
836e0e8e18815f61a0cc9b9063386cef9769ae020efa33d97af11823c994023b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp313-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192801-cp313-none-macosx_14_0_arm64.whl
Size 565.9 kB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
aacda553882573f894c97256c8abc6e3b65fe0595d4bc4fff3772cc30fa737c7
BLAKE2b-256 checksum
How to use checksums
c90626620abd260b0e611e4aad4b322a2cf691b6c108d3c0b34bb6d232ea1ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp312-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192801-cp312-none-manylinux_2_28_x86_64.whl
Size 614.4 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e34cbfd3e8e55996cec2f162db309fcb9d6dd02db9daac36d8ffe450acc02683
BLAKE2b-256 checksum
How to use checksums
86b9a2e86658f9db6c20106cca01bc9916a341ed4d4cfadcea6a8ed10dcc28c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp312-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192801-cp312-none-macosx_14_0_arm64.whl
Size 565.9 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
13aa8788b4bf53063008245c62069c8347669b1ad8808ed8bfb0c7b48a15e727
BLAKE2b-256 checksum
How to use checksums
f000705926c10eb874eb1df8a54307744b8ece4046ffd35c136c5ffad96dc44f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp311-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192801-cp311-none-manylinux_2_28_x86_64.whl
Size 614.4 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
bec9d4aa9d1cc526f9027eb3c5de68f88ed35880566b4628a071f6798d290cf7
BLAKE2b-256 checksum
How to use checksums
90c2078a690e78a4425835b01e4b37e8bd01c0a67bd09b5c07a97d70f0ea8cb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / imtypeset-0.4.3.192801-cp311-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192801-cp311-none-macosx_14_0_arm64.whl
Size 565.9 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
3e717488b67c6283420a2015d0631f82798d2373f5af8f9d69ce4361f9f5ac7a
BLAKE2b-256 checksum
How to use checksums
7f4391fcbdbde2d553ae418e6b486db96e6b237800d4e2113c5e427556e52d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Security for imtypeset 0.4.3.192801

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for imtypeset-0.4.3.192801-cp314-none-manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page