Honor vertical subpixel positions

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-03-24 18:35:48 +01:00
co-authored by Nathan Sobo
parent bc977fc873
commit 5f3dbb05d6
4 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ pub trait FontSystem: Send + Sync {
font_id: FontId,
font_size: f32,
glyph_id: GlyphId,
horizontal_shift: f32,
subpixel_shift: Vector2F,
scale_factor: f32,
) -> Option<(RectI, Vec<u8>)>;
fn layout_str(&self, text: &str, font_size: f32, runs: &[(Range<usize>, FontId)]) -> Line;