Remove 1px horizontal offset on pixel fonts
This commit is contained in:
parent
1abcf67e17
commit
463387d6a1
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ fn swash_image(
|
|||
// in a real renderer
|
||||
let offset = if cache_key.flags.contains(CacheKeyFlags::PIXEL_FONT) {
|
||||
Vector::new(
|
||||
cache_key.x_bin.as_float().round() + 1.0,
|
||||
cache_key.x_bin.as_float().round(),
|
||||
cache_key.y_bin.as_float().round(),
|
||||
)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue