Skip to content

Commit

Permalink
Update text.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
DraftedDev committed Jul 29, 2023
1 parent e2d0b65 commit 5b9a5e2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ pub struct TextSketch {

impl TextSketch {
/// Create a new empty [TextSketch] with font data.
///
/// ### Example
/// ```rust
/// use mint::Vector2;
/// use qilin::text::TextSketch;
///
/// let font = include_bytes!("myAssets/myFont.ttf");
/// let sketch = TextSketch::new(Vector2::new(10, 10), font);
/// ```
#[inline]
pub fn new(pos: Vector2<u32>, font: &[u8]) -> Self {
Self {
Expand Down

0 comments on commit 5b9a5e2

Please sign in to comment.