Skip to content

Commit

Permalink
Add docs for add_test_font
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Aug 2, 2024
1 parent 9d4d1e4 commit 58632d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion masonry/src/render_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ impl RenderRoot {
self.root_on_text_event(event)
}

// TODO: Is this the right place for this?
/// Add a font from its raw data for use in tests.
///
/// We expect to develop a much more fully-featured font API in the future, but
/// this is necessaary for our testing of Masonry.
pub fn add_test_font(
&mut self,
data: Vec<u8>,
Expand Down

0 comments on commit 58632d5

Please sign in to comment.