raunakbinani / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Large font requires overly large amount of memory #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use load_font.php to add "Arial Unicode" font from Mac OS
2. Modify unicode.html to use Arial Unicode
3. Attempt to render unicode.html

What is the expected output? What do you see instead?
It should work, however the following is displayed:
Fatal error: Allowed memory size of 367001600 bytes exhausted (tried to
allocate 23295664 bytes)
Setting memory_limit to 350M is not enough, however at 400M it works

What version of the product are you using? On what operating system?
Tested with SVN checked out just now

Please provide any additional information below.
php -dmemory_limit=350M ./dompdf.php -f test.pdf www/test/unicode.html

Original issue reported on code.google.com by magical...@gmail.com on 12 Dec 2009 at 2:47

GoogleCodeExporter commented 9 years ago
In lib/fonts:
arialuni.ttf (23M)
arialuni.afm (2.4M)
arialuni.ufm (1.7M)

Original comment by magical...@gmail.com on 12 Dec 2009 at 2:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello, an issue related to font metrics loading has been fixed, which reduces a 
lot memory consumption, could you try the latest trunk to verify this ?

Original comment by fabien.menager on 27 Aug 2010 at 6:16

GoogleCodeExporter commented 9 years ago
The new font metrics were reduced to something like 10 times smaller, so the 
memory should not be filled with this now. It will be available in the next 
beta coming soon.

Original comment by fabien.menager on 1 Feb 2011 at 9:07

GoogleCodeExporter commented 9 years ago
Published in beta2

Original comment by fabien.menager on 10 Apr 2011 at 5:29

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:15