https://github.com/iiiii7d/egui_layout_job_macro
Macros for egui LayoutJob and TextFormat
https://github.com/iiiii7d/egui_layout_job_macro
egui layoutjob macro rust textformat
Last synced: 29 days ago
JSON representation
Macros for egui LayoutJob and TextFormat
- Host: GitHub
- URL: https://github.com/iiiii7d/egui_layout_job_macro
- Owner: iiiii7d
- License: lgpl-3.0
- Created: 2026-04-21T04:07:40.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2026-05-06T05:32:25.000Z (about 1 month ago)
- Last Synced: 2026-05-06T07:28:13.624Z (about 1 month ago)
- Topics: egui, layoutjob, macro, rust, textformat
- Language: Rust
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# egui_layout_job_macro
[](https://crates.io/crates/egui_layout_job_macro)
[](https://github.com/iiiii7d/egui_layout_job_macro)

[](https://docs.rs/egui_layout_job_macro)









> As you can see, constructing a LayoutJob is currently a lot of work. It would be nice to have a helper macro for it! ~egui docs
Macros for [egui](https://github.com/emilk/egui) `LayoutJob` and `TextFormat`
## Installation
```bash
cargo add egui_layout_job_macro
```
Macros are tested on the egui pinned in `Cargo.toml`, but it should theoretically work on any past and future releases.
Make sure `egui` is installed and available in your project
## Usage
```rust
use egui_layout_job_macro::layout_job;
layout_job!(@size[14](@white("Hello ") @mono(@black("World!"))));
```
See the [documentation](https://docs.rs/egui_layout_job_macro) and [`example.rs`](https://github.com/iiiii7d/egui_layout_job_macro/blob/master/examples/example.rs) for more examples.