Skip to content

Commit

Permalink
transcoder: wmf: pixel/inch ratio was using an archaic specification,…
Browse files Browse the repository at this point in the history
… use modern (fixed) ratio
  • Loading branch information
carlosame committed May 6, 2021
1 parent b642f7b commit 6ca7449
Show file tree
Hide file tree
Showing 7 changed files with 1,226 additions and 1,042 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
*/
public abstract class AbstractWMFReader {

public static final float PIXEL_PER_INCH = Platform.getScreenResolution();
public static final float MM_PER_PIXEL = 25.4f / Platform.getScreenResolution();
public static final float PIXEL_PER_INCH = 96f;
public static final float MM_PER_PIXEL = 25.4f / 96f;
protected int left, right, top, bottom, width, height, inch;
protected float scaleX, scaleY, scaleXY;
protected int vpW, vpH, vpX, vpY;
Expand Down
52 changes: 25 additions & 27 deletions test-references/io/sf/carte/echosvg/transcoder/wmf/black_shapes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6ca7449

Please sign in to comment.