Closed idursun closed 5 years ago
Fixes #85
Loader::raster_bounds
width
height
DirectWrite::typographic_bounds
$ cargo run --example render-glyph ArialMT { 32 glyph 94: ▓▓██████ ██████████ ▒▒████▒▒ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ████▓▓ ████▒▒ ▒▒████▒▒ ▒▒████▓▓ ░░████████ ░░████▒▒ ░░████████ ▒▒████▓▓ ▒▒████▒▒ ░░████▒▒ ████▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▓▓██▓▓ ▒▒████▒▒ ██████████ ▓▓██████
Test failed. Working on it.
Fixes #85
Loader::raster_bounds
calculation. This aligns raster_bounds with the rest of the loaders.width
andheight
in theDirectWrite::typographic_bounds
. Bearings were being subtracted instead of being added.