mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
test code for fonts
This commit is contained in:
parent
13041ad043
commit
f2d7458463
1 changed files with 13 additions and 0 deletions
|
|
@ -169,6 +169,19 @@ impl Ball {
|
|||
pub fn draw_boot(&self) { self.gfx.draw_boot_logo().ok(); }
|
||||
|
||||
pub fn update(&mut self) {
|
||||
/* // for testing fonts, etc.
|
||||
use std::fmt::Write;
|
||||
let mut tv = graphics_server::TextView::new(
|
||||
graphics_server::Gid::new([0, 0, 0, 0]),
|
||||
graphics_server::TextBounds::BoundingBox(self.clip),
|
||||
);
|
||||
tv.clip_rect = Some(self.clip);
|
||||
tv.set_dry_run(false);
|
||||
tv.set_op(graphics_server::TextOp::Render);
|
||||
tv.style = graphics_server::api::GlyphStyle::Tall;
|
||||
write!(tv.text, "hello world! 😀").ok();
|
||||
self.gfx.draw_textview(&mut tv).ok();
|
||||
*/
|
||||
let mut draw_list = ClipObjectList::default();
|
||||
|
||||
// clear the previous location of the ball
|
||||
|
|
|
|||
Loading…
Reference in a new issue