Use psx-font to put text on screen through textured GPU primitives. Pick a bitmap font, upload its atlas and palette once, and draw with the returned FontAtlas.
How the crate is organized
The root defines font descriptors, atlas upload, layout and drawing methods. fonts contains the supplied bitmap fonts; hex handles hexadecimal text helpers. Font source files and vendor provenance remain linked from the source tree.
Integration notes
draw_text uses textured rectangles for axis-aligned text. Scaled, rotated, affine and gradient variants use different GPU packet paths. Pick the path that fits the effect, and reserve both atlas and CLUT space in your VRAM layout. The convenience upload has bounded stack scratch; use the caller-owned scratch API for larger atlases. Font assets carry their own licences, so check provenance before redistributing them.
The hello-input source shows initialization and status text in a complete frame loop.
API, dependencies and source structure
SDK revision f2fec1c301f1. Structure, dependencies and features below come from this revision.
The PS1 reference includes all Cargo features. The manifest below shows which features are enabled by default.
Dependencies
psx-gpu: all targetspsx-hw(shared repository crate): all targetspsx-io: all targetspsx-math: all targetspsx-vram: all targets
Cargo features
This crate declares no Cargo features.
Read the complete manifest and feature comments.
Source layout
The list includes internal implementation and test files. Public modules, types, functions and their signatures are indexed in the API reference above.
46 source and manifest files
Cargo.tomlsrc/fonts/aldrich.rssrc/fonts/audiowide.rssrc/fonts/basic.rssrc/fonts/basic_8x16.rssrc/fonts/boxdraw.rssrc/fonts/bruno_ace.rssrc/fonts/chakra_petch.rssrc/fonts/drippy_space.rssrc/fonts/drippy_space_display.rssrc/fonts/electrolize.rssrc/fonts/ext_latin.rssrc/fonts/jersey_10.rssrc/fonts/jura.rssrc/fonts/kenney_blocks.rssrc/fonts/kenney_future.rssrc/fonts/kenney_future_narrow.rssrc/fonts/kenney_high.rssrc/fonts/kenney_high_square.rssrc/fonts/kenney_mini.rssrc/fonts/kenney_mini_square.rssrc/fonts/kenney_mini_square_mono.rssrc/fonts/kenney_pixel.rssrc/fonts/kenney_pixel_square.rssrc/fonts/kenney_rocket.rssrc/fonts/kenney_rocket_square.rssrc/fonts/michroma.rssrc/fonts/mod.rs: Built-in fonts.src/fonts/orbitron.rssrc/fonts/oxanium.rssrc/fonts/pixelify_sans.rssrc/fonts/press_start_2p.rssrc/fonts/rajdhani.rssrc/fonts/share_tech_mono.rssrc/fonts/silkscreen.rssrc/fonts/space_mono.rssrc/fonts/spleen_5x8.rssrc/fonts/syncopate.rssrc/fonts/tektur.rssrc/fonts/tiny5.rssrc/fonts/tomorrow.rssrc/fonts/turret_road.rssrc/fonts/zen_dots.rssrc/fonts/zen_dots_display.rssrc/hex.rs: Heap-free hex label formatting for debug HUDs.src/lib.rs: Bitmap-font atlases for the PS1.