mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-10 03:56:07 +00:00
Render list of operations (incorrectly)
This renders all operation names into one place. Work in progress!
This commit is contained in:
parent
f745509849
commit
ab7f435d06
@ -70,6 +70,7 @@ impl TextRenderer {
|
||||
) -> anyhow::Result<()> {
|
||||
let mut buffers = Vec::new();
|
||||
|
||||
for op in &_operations.operations {
|
||||
let mut buffer = glyphon::Buffer::new(
|
||||
&mut self.font_system,
|
||||
glyphon::Metrics {
|
||||
@ -79,12 +80,13 @@ impl TextRenderer {
|
||||
);
|
||||
buffer.set_text(
|
||||
&mut self.font_system,
|
||||
"Hello, world!",
|
||||
&format!("{op}"),
|
||||
glyphon::Attrs::new(),
|
||||
glyphon::Shaping::Advanced,
|
||||
);
|
||||
|
||||
buffers.push(buffer);
|
||||
}
|
||||
|
||||
let text_areas = buffers.iter().map(|buffer| glyphon::TextArea {
|
||||
buffer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user