mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +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,21 +70,23 @@ impl TextRenderer {
|
|||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
let mut buffers = Vec::new();
|
let mut buffers = Vec::new();
|
||||||
|
|
||||||
let mut buffer = glyphon::Buffer::new(
|
for op in &_operations.operations {
|
||||||
&mut self.font_system,
|
let mut buffer = glyphon::Buffer::new(
|
||||||
glyphon::Metrics {
|
&mut self.font_system,
|
||||||
font_size: 16.,
|
glyphon::Metrics {
|
||||||
line_height: 16.,
|
font_size: 16.,
|
||||||
},
|
line_height: 16.,
|
||||||
);
|
},
|
||||||
buffer.set_text(
|
);
|
||||||
&mut self.font_system,
|
buffer.set_text(
|
||||||
"Hello, world!",
|
&mut self.font_system,
|
||||||
glyphon::Attrs::new(),
|
&format!("{op}"),
|
||||||
glyphon::Shaping::Advanced,
|
glyphon::Attrs::new(),
|
||||||
);
|
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