(&self, text: &str, max_advance: f32)
| 59 | } |
| 60 | |
| 61 | pub fn layout_within(&self, text: &str, max_advance: f32) -> Layout<Brush> { |
| 62 | self.shaper |
| 63 | .borrow_mut() |
| 64 | .layout_within(text, max_advance, &self.default_text_styles) |
| 65 | } |
| 66 | |
| 67 | pub fn insert_state<State: Any>(&self, state: State) { |
| 68 | let mut states = self.states.borrow_mut(); |