Latin-1 and geometric shape unicode chars supported by the loaded font are measured correctly now. In the below example, the unicode for the bullseye is not supported for Source Sans Pro, so is still measured incorrectly. However, the coverage is much better
Note that it's possible to extend this further to all unicode chars, but it reduces performance by a lot (runtime of all tests went from 46s to 112s) for very little gain.
closes https://github.com/terrastruct/d2/issues/1811
Latin-1 and geometric shape unicode chars supported by the loaded font are measured correctly now. In the below example, the unicode for the bullseye is not supported for Source Sans Pro, so is still measured incorrectly. However, the coverage is much better
Note that it's possible to extend this further to all unicode chars, but it reduces performance by a lot (runtime of all tests went from 46s to 112s) for very little gain.