mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 03:48:27 +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<()> {
|
) -> anyhow::Result<()> {
|
||||||
let mut buffers = Vec::new();
|
let mut buffers = Vec::new();
|
||||||
|
|
||||||
|
for op in &_operations.operations {
|
||||||
let mut buffer = glyphon::Buffer::new(
|
let mut buffer = glyphon::Buffer::new(
|
||||||
&mut self.font_system,
|
&mut self.font_system,
|
||||||
glyphon::Metrics {
|
glyphon::Metrics {
|
||||||
@ -79,12 +80,13 @@ impl TextRenderer {
|
|||||||
);
|
);
|
||||||
buffer.set_text(
|
buffer.set_text(
|
||||||
&mut self.font_system,
|
&mut self.font_system,
|
||||||
"Hello, world!",
|
&format!("{op}"),
|
||||||
glyphon::Attrs::new(),
|
glyphon::Attrs::new(),
|
||||||
glyphon::Shaping::Advanced,
|
glyphon::Shaping::Advanced,
|
||||||
);
|
);
|
||||||
|
|
||||||
buffers.push(buffer);
|
buffers.push(buffer);
|
||||||
|
}
|
||||||
|
|
||||||
let text_areas = buffers.iter().map(|buffer| glyphon::TextArea {
|
let text_areas = buffers.iter().map(|buffer| glyphon::TextArea {
|
||||||
buffer,
|
buffer,
|
||||||
|
Loading…
Reference in New Issue
Block a user