Introduce PhysicalGlyph for offsetting and scaling
This commit is contained in:
parent
e8b10fd675
commit
eb09cf0259
5 changed files with 79 additions and 38 deletions
|
|
@ -23,7 +23,7 @@ impl CacheKey {
|
|||
pos: (f32, f32),
|
||||
) -> (Self, i32, i32) {
|
||||
let (x, x_bin) = SubpixelBin::new(pos.0);
|
||||
let (y, y_bin) = SubpixelBin::new(pos.1);
|
||||
let (y, y_bin) = SubpixelBin::new(pos.1.trunc());
|
||||
(
|
||||
Self {
|
||||
font_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue