Searched refs:box_size (Results 1 – 2 of 2) sorted by relevance
94 let (dx, dy) = self.style.font.box_size(t.borrow())?; in estimate_dimension()134 let width = font.box_size(&remaining[0..=left]).unwrap_or((0, 0)).0 as i32; in layout_multiline_text()160 let (dx, dy) = self.style.font.box_size(t.borrow())?; in compute_line_layout()
179 pub fn box_size(&self, text: &str) -> FontResult<(u32, u32)> { in box_size() method