Re:Let’s fix font size
by wffurr on Wednesday March 31, 2021 @07:40AM
(#26645975)
I will check out that ResizeObserver property.
I hack around it by taking the CSS size of the container, finding the closest smaller integer device pixel size, and set the canvas context to that and the canvas CSS size to the fractional size, which can be smaller than the containers CSS size.
I hack around it by taking the CSS size of the container, finding the closest smaller integer device pixel size, and set the canvas context to that and the canvas CSS size to the fractional size, which can be smaller than the containers CSS size.
Basically rounding down.