diff options
author | jaseg <git@jaseg.de> | 2022-04-24 20:05:29 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-04-24 20:05:29 +0200 |
commit | b42b0e85fa2220a5083f64383aed43de73788c0c (patch) | |
tree | 6c81b8c5932ba5d20e1daaab7f6553ad0da30a0d /gerbonara/aperture_macros | |
parent | 766c4eb4b3c962d523d37511fb0875e779234961 (diff) | |
download | gerbonara-b42b0e85fa2220a5083f64383aed43de73788c0c.tar.gz gerbonara-b42b0e85fa2220a5083f64383aed43de73788c0c.tar.bz2 gerbonara-b42b0e85fa2220a5083f64383aed43de73788c0c.zip |
Rectify latest cairo SVG export
It seems Cairo got updated and its SVG export is now broken in a new and
exciting way. Now it exports documents with dimensionless w/h. The issue
with that is that Cairo thinks that means point @ 72 pt / inch, but
everyone else including the actual svg spec interpret that as raw document
units or pixels, AFAICT completely breaking dpi scaling in common
viewers. Since we have to mess with Cairo's SVG files anyway, we just
fix this as well by re-writing the broken w/h into physical units
according to a hardcoded conversion factor that matches cairo's
hardcoded scale.
Diffstat (limited to 'gerbonara/aperture_macros')
0 files changed, 0 insertions, 0 deletions