Calculate an overshoot when mousing to build columnar selections

This commit is contained in:
Antonio Scandurra 2021-11-24 10:28:32 +01:00
parent 2b9db911c7
commit d19d3bbe45
6 changed files with 66 additions and 22 deletions

View file

@ -148,6 +148,7 @@ pub trait FontSystem: Send + Sync {
) -> anyhow::Result<FontId>;
fn font_metrics(&self, font_id: FontId) -> FontMetrics;
fn typographic_bounds(&self, font_id: FontId, glyph_id: GlyphId) -> anyhow::Result<RectF>;
fn advance(&self, font_id: FontId, glyph_id: GlyphId) -> anyhow::Result<Vector2F>;
fn glyph_for_char(&self, font_id: FontId, ch: char) -> Option<GlyphId>;
fn rasterize_glyph(
&self,