bramstein / typeset

TeX line breaking algorithm in JavaScript
BSD 2-Clause "Simplified" License
990 stars 74 forks source link

Support Hi-DPI screens better in the examples #21

Open chris-morgan opened 8 years ago

chris-morgan commented 8 years ago

Text respects the device pixel ratio, but canvas doesn’t automatically; adjusting its scaling makes it render in terms of device pixels rather than CSS screen pixels. Thus we get non-fuzzy text in the canvas.