Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagine\Gd\ImagineTest::testShouldDetermineFontSize fails #109

Closed
MKuckert opened this issue Apr 18, 2012 · 4 comments
Closed

Imagine\Gd\ImagineTest::testShouldDetermineFontSize fails #109

MKuckert opened this issue Apr 18, 2012 · 4 comments

Comments

@MKuckert
Copy link

The test is failing on my configuration:

1) Imagine\Gd\ImagineTest::testShouldDetermineFontSize
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
 Imagine\Image\Box Object (
-    'width' => 112
-    'height' => 46
+    'width' => 117
+    'height' => 47
 )

I'm using php from the ubuntu repos:

PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012 02:17:16) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

My gd configurations are as follows:

GD Support => enabled
GD Version => 2.0
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.4.4
T1Lib Support => enabled
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.2.46
WBMP Support => enabled
@avalanche123
Copy link
Collaborator

This really is related to how GD calculates image box for text. I don't think I can easily fix this without changes to GD itself as was discussed in #32

@MKuckert
Copy link
Author

So i think the unittest will be dropped? It's awkward to distribute a unittest that will probably fail.

@avalanche123
Copy link
Collaborator

Code will eventually be updated to a more decoupled design which will allow for better tests.

@MKuckert
Copy link
Author

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants