Re: UTF-8 problem has been solved

358 views
Skip to first unread message

darcik

unread,
Jan 2, 2013, 9:31:57 AM1/2/13
to dom...@googlegroups.com
If you tried to make pdf on standard, built-in fonts - didn't work ;)
I use DejaVu fonts.
Ofc pdf will be a bit fat, cause script have to add whole font or fonts to pdf file.
Each DejaVu font increases pdf file about ca 200 kB.

W dniu środa, 2 stycznia 2013 12:19:01 UTC+1 użytkownik Csaba Fekete napisał:
Yes, I was tried this, but it doesn't work in case of Hungarian language. The workaround was to install additional fonts, thus making the pdf files huge (1+ megs/page) :-(


Csaba Fekete

unread,
Jan 2, 2013, 10:17:35 AM1/2/13
to dom...@googlegroups.com
200k should be acceptable but why 2.4M for a two-page file, I don't understand. Maybe because I also use italic and bold variants?

--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dompdf/-/3qOL-Lvy7Y4J.

To post to this group, send email to dom...@googlegroups.com.
To unsubscribe from this group, send email to dompdf+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dompdf?hl=en.

darcik

unread,
Jan 2, 2013, 11:19:29 AM1/2/13
to dom...@googlegroups.com
Ofc, each variety of font increases weight of file.
Eg DejaVuSans - Normal, Italic, Bold, Bold-Italic - if you use all variations in pdf, file will be increased over 2,4 MB.
So you are right, unfortunately.

I tried: define("DOMPDF_ENABLE_FONTSUBSETTING", true);
but dont work, pdf isnt created.

BrianS

unread,
Jan 8, 2013, 11:33:12 AM1/8/13
to dom...@googlegroups.com
Enabling font subsetting should significantly decrease the size of the PDF when using embedded fonts. It works succesfully on my installation. You might want to try looking for errors in your PHP log.

You could also try updating to the latest code to see if that helps. It's unpackaged, but you can get it via github (just click on the "ZIP" button):
https://github.com/dompdf/dompdf

If you grab it from github you'll also need to download php-font-lib separately and place it in the lib/php-font-lib directory. You can grab the latest php-font-lib from github as well:
https://github.com/PhenX/php-font-lib

At some point I'll update the "nightly" downloader to make this all a bit easier. Right now it still points to the code.google.com SVN repo, which is no longer being updated.
Reply all
Reply to author
Forward
0 new messages