Closed GoogleCodeExporter closed 9 years ago
Same problem can anyone help?
Original comment by martin.a...@gmail.com
on 14 Apr 2011 at 12:48
By default the current release of DOMPDF supports the iso-8859-1 character set.
Perhaps this isn't plainly stated in the documentation. In order to support
characters outside this set, you have to ensure each of the following is true:
1) the MBString PHP extension is enabled
2) DOMPDF_UNICODE_ENABLED to set to true in dompdf_config.inc.php
3) you have loaded a Unicode font via load_font.php (requires ttf2ufm) or using
the web-based font prep tool
4) your HTML document includes a meta header indicating the content type, e.g.
<meta http-equiv="Content-Type" content="charset=utf-8" />
In the final release of 0.6.0 we will more than likely include some fonts with
Unicode support. That will make things a little easier, but you will still need
to ensure that all the required conditions outlined above are true.
FYI, the demo has not been tweaked to ensure all the examples produce the
expected output. I have taken the same example, added a font that does support
Cyrillic, and it renders fine. See it here:
http://eclecticgeek.com/dompdf/docs_0-6-0/dompdf.php?base_path=test%2F&options[A
ttachment]=0&input_file=encoding_utf-8.html
Original comment by eclecticgeek
on 22 Apr 2011 at 7:53
First of all, all the requirements are met. I think it is strange that the
current fonts do not support unicode. Really, really strange... And finaly, I
can not use the web based font converver, so I really can not find those fonts.
Original comment by vkera...@gmail.com
on 22 Apr 2011 at 8:04
No fonts are currently supplied with DOMPDF. What you get on a fresh
installation is support for the core fonts that all PDF viewers are required to
include. We are working on improving character set support in these fonts, but
as of now DOMPDF only supports the Windows ANSI character set when they are
used. Windows ANSI is one of the few internally-supported encodings allowed by
the PDF 1.3 spec. None of these internal encodings include Cyrillic character
support, which is why you have to supply your own fonts if you want to enable
Unicode support.
Why are you unable to use the web-based font prep tool? Is it failing when
processing your fonts? If you post the font you wish to use here I will be
happy to process it and post the resulting files (font metrics and
dompdf_font_family_cache).
Original comment by eclecticgeek
on 22 Apr 2011 at 10:41
Really thanks! Actually the web based tool always gives me an error. And
nothing for download :[
This is an archive with calibri font (normal, bold, italic, bold-italic). 4
files in the .rar
I am (almost) sure, those do support cyrillic.
Will be very happy if You could send them to me via email. Thanks in advance!
Original comment by vkera...@gmail.com
on 23 Apr 2011 at 8:46
Attachments:
Any chances for the fonts soon? Really thanks again...
Original comment by vkera...@gmail.com
on 29 Apr 2011 at 8:41
I have exactly the same problem.
Could you send me the fonts too?
Thanks in advance!
Original comment by mindwrap...@gmail.com
on 1 May 2011 at 7:26
Hello, the DejaVu font is now embedded in the latest revision from the SVN
trunk, with Cyrillic. See here :
http://pxd.me/dompdf/dompdf.php?base_path=www%2Ftest%2F&options%5BAttachment%5D=
0&input_file=encoding_utf-8.html#toolbar=0&view=FitH&statusbar=0&messages=0&navp
anes=0
Original comment by phenxdesign
on 3 May 2011 at 6:06
@vkeranov: I sent you the processed fonts by email.
DejaVu should handle most people's needs with regard to expanded character
support.
Also, the web-based font prep tool has been updated with a new font processor
option. If you font doesn't process with the traditional processor (the ttf2ufm
binary) try the new one (ttf2ufm.php). You will currently only get the Unicode
font metrics from this processor (.ufm files).
Original comment by eclecticgeek
on 6 May 2011 at 5:10
I cant convert too. how can i get the modified fonts. is there a link
Original comment by orlin...@gmail.com
on 26 May 2011 at 10:13
The addition of the DejaVu fonts will be included in the next release. You can
download a nightly (a pre-release version of the code) that includes these
fonts here:
http://eclecticgeek.com/dompdf/
Original comment by eclecticgeek
on 26 May 2011 at 2:46
Original comment by eclecticgeek
on 30 May 2013 at 5:15
Original issue reported on code.google.com by
vkera...@gmail.com
on 9 Apr 2011 at 7:20