Checkpoint

This commit is contained in:
Nathan Sobo 2023-10-17 08:26:12 +02:00
parent 2472142532
commit 695a24d8a7
9 changed files with 458 additions and 571 deletions

View file

@ -171,12 +171,7 @@ pub trait PlatformTextSystem: Send + Sync {
fn glyph_for_char(&self, font_id: FontId, ch: char) -> Option<GlyphId>;
fn glyph_raster_bounds(&self, params: &RenderGlyphParams) -> Result<Bounds<DevicePixels>>;
fn rasterize_glyph(&self, params: &RenderGlyphParams) -> Result<(Size<DevicePixels>, Vec<u8>)>;
fn layout_line(
&self,
text: &SharedString,
font_size: Pixels,
runs: &[(usize, FontId)],
) -> LineLayout;
fn layout_line(&self, text: &str, font_size: Pixels, runs: &[(usize, FontId)]) -> LineLayout;
fn wrap_line(
&self,
text: &str,