AuburnSounds / printed

Generate PDF/SVG/HTML with D, with a Canvas-style API. Now with a flow document emitter.
36 stars 7 forks source link

Implement textBaseline #16

Closed p0nce closed 5 years ago

p0nce commented 5 years ago

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline

Firefox and Chrome renders them differently, Chrome looks more correct.

p0nce commented 5 years ago

In SVG, Firefox doesn't implement text baseline properly. In chrome, inconsistency for 'middle' between Canvas and SVG.

p0nce commented 5 years ago

Done, with a Y offset. Fixed font sizing too.