We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17e2f02 + 539a173 commit fc66030Copy full SHA for fc66030
src/PhpWord/Shared/Drawing.php
@@ -56,7 +56,7 @@ public static function emuToPixels($value = 0)
56
*/
57
public static function pixelsToPoints($value = 0)
58
{
59
- return $value * 0.67777777;
+ return $value * 0.75;
60
}
61
62
/**
tests/PhpWord/Tests/Shared/DrawingTest.php
@@ -44,7 +44,7 @@ public function testUnitConversions()
44
$this->assertEquals(round($value / 9525), $result);
45
46
$result = Drawing::pixelsToPoints($value);
47
- $this->assertEquals($value * 0.67777777, $result);
+ $this->assertEquals($value * 0.75, $result);
48
49
$result = Drawing::pointsToPixels($value);
50
$this->assertEquals($value * 1.333333333, $result);
0 commit comments