nano-ui-ttf: Shared SDL3_ttf shaping, glyph atlas, and font cache for nano-ui

[ graphics ] [ Propose Tags ] [ Report a vulnerability ]

Internal shared TrueType shaping, glyph atlas bookkeeping, font caching, and bundled Inter font used by nano-ui-sdl and nano-ui-sdl-web.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
sdl

Build the SDL3_ttf layer. Needs SDL3, SDL3_ttf, and pkg-config.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.20 && <4.23), bytestring (>=0.12 && <0.13), containers (>=0.7 && <0.9), file-embed (>=0.0.16 && <0.1), nano-ui (>=0.2 && <0.3), primitive (>=0.9 && <0.10), text (>=2.1.2 && <2.2) [details]
Tested with ghc ==9.10.3 || ==9.14.1
License MIT AND OFL-1.1[multiple license files]
Author goolord
Maintainer zacharyachurchill@gmail.com
Uploaded by goolord at 2026-12-03T05:00:34Z
Category Graphics
Home page https://github.com/goolord/nano-ui
Bug tracker https://github.com/goolord/nano-ui/issues
Source repo head: git clone https://github.com/goolord/nano-ui.git(packages/nano-ui-ttf)
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 0 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for nano-ui-ttf-0.2.0.0

[back to package description]

nano-ui-ttf

Shared SDL3_ttf text rendering layer used internally by both nano-ui-sdl and nano-ui-sdl-web. It handles HarfBuzz line shaping via SDL_ttf, glyph atlas packing, shaped-line and font handle caching, and embeds the default Inter font (NanoUI.Ttf.Internal.Inter).

Applications should not depend on nano-ui-ttf directly; depend on a backend package instead. All exposed modules are Internal and may change alongside the backends between minor releases.

Building requires SDL3, SDL3_ttf 3.2+, and pkg-config. The sdl Cabal flag is enabled by default; disabling it marks the library unbuildable so solver plans without SDL can still resolve.

Code is MIT-licensed (LICENSE); the bundled Inter font is under the SIL Open Font License 1.1 (LICENSE-Inter).