Skip to content

Commit

Permalink
fix: Mock get_style_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 1, 2024
1 parent bc11356 commit fa15ab4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/engine/src/mocked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,14 @@ pub enum RectWidthStyle {

pub struct LineMetrics;

impl LineMetrics {
pub fn get_style_metrics(&'a self, range: Range<usize>) -> Vec<(usize, &'a StyleMetrics)> {
unimplemented!("This is mocked")
}
}

pub struct StyleMetrics;

pub struct GlyphClusterInfo;

pub struct TextBox {
Expand Down

0 comments on commit fa15ab4

Please sign in to comment.