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.900 (Dear ImGui 1.92.9), CPython 3.11, Darwin arm64.
  • Dear ImGui headers: fork:c9a0a84f8a4ddae794a9e1acf6a93afce73d5057.
  • Checked: imgui-check+probe, 26 probe rows, on 2026-10-15T02:09:57Z (GitHub Actions run 38668991176 of WalterCReel3/imtypeset at 0bac06608be358aec7cf9a3ee72c6abc623146e3).

Metadata

Release files for imtypeset 0.4.3.192900

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.192900
File Actions
imtypeset-0.4.3.192900-cp314-none-manylinux_2_28_x86_64.whl CPython 3.14 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192900-cp314-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192900-cp314-none-macosx_14_0_arm64.whl CPython 3.14 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192900-cp314-none-macosx_14_0_arm64.whl
imtypeset-0.4.3.192900-cp313-none-manylinux_2_28_x86_64.whl CPython 3.13 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192900-cp313-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192900-cp313-none-macosx_14_0_arm64.whl CPython 3.13 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192900-cp313-none-macosx_14_0_arm64.whl
imtypeset-0.4.3.192900-cp312-none-manylinux_2_28_x86_64.whl CPython 3.12 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192900-cp312-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192900-cp312-none-macosx_14_0_arm64.whl CPython 3.12 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192900-cp312-none-macosx_14_0_arm64.whl
imtypeset-0.4.3.192900-cp311-none-manylinux_2_28_x86_64.whl CPython 3.11 none Linux glibc 2.28+ x86-64 Details for imtypeset-0.4.3.192900-cp311-none-manylinux_2_28_x86_64.whl
imtypeset-0.4.3.192900-cp311-none-macosx_14_0_arm64.whl CPython 3.11 none macOS 14.0+ ARM64 Details for imtypeset-0.4.3.192900-cp311-none-macosx_14_0_arm64.whl

Total release size: 4.7 MB

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

Download URL imtypeset-0.4.3.192900-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
0ddf21a1eaee61479cc4728caff16369df6cbadb2bdeb1e86c69d855f480f819
BLAKE2b-256 checksum
How to use checksums
3d2551784096aae3daa03ff6139f4f627192f47b28c7b36e433661048bea87f1
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.192900-cp314-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192900-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
be8e6e33f366c14af0b94c420fc6950d777b2ff5385722c3431187fe087a0a9b
BLAKE2b-256 checksum
How to use checksums
b6c31970eb00e8f81b8790a8298ee0237ae65ec957b382aaa10a8463bd92f4ae
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.192900-cp313-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192900-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
0dff411286aacf72b86e6a7a50b813b2d9304af3c5c1fe1393b228e767da489c
BLAKE2b-256 checksum
How to use checksums
29c7b33df0bb1745a76f5b8972cdf0483c638e61a07b8044d1d2cfc6f5ad24ec
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.192900-cp313-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192900-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
8a90b561710693fed9d79fb6b527619083954747406b8c8290ebad50ef4061f8
BLAKE2b-256 checksum
How to use checksums
08fbeac72395c2fd49138083f7d9faacb097e5dad9c01e46175dce8130d4d7d6
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.192900-cp312-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192900-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
e9a68c5c90f75be3b40b921741fad1d1fed2aacf1fc7a84aa12479224e93edab
BLAKE2b-256 checksum
How to use checksums
f33e48550b38c0f5f80fcd94e5986fb5be4e43c587c60d7cd3aede8f45c1e651
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.192900-cp312-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192900-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
27b23731b92e3a13cf00ea43307df220b1a7e8f02d87eb1e729dafabdb77e850
BLAKE2b-256 checksum
How to use checksums
912db8c5994054938b69c74628a274c299e97680fd5eb1d4441b2da818a4508d
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.192900-cp311-none-manylinux_2_28_x86_64.whl

Download URL imtypeset-0.4.3.192900-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
bf4f7004a44e7f6010083917ba66e54e3d5ff920837c48a3a46f82d1c3a56cef
BLAKE2b-256 checksum
How to use checksums
61ac7be4aa49a295606599f5515d2ceeebc8ee5b964e3b6706bafb241985d21b
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.192900-cp311-none-macosx_14_0_arm64.whl

Download URL imtypeset-0.4.3.192900-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
2ea3cfc51777a76718bbf71546554aa9822e222c34bce8846dd0a1dc37dc0cde
BLAKE2b-256 checksum
How to use checksums
bafa434a8d8bbe7674829ce4ed1930ef7e9cae1607af69e7729ddf067307b94a
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.192900

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.192900-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