vikrambalye / dompdf

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

Unicode fonts #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My understanding is that DOMPDF does not support embedding fonts in generated 
documents. If that's true, then what is the purpose of the load-font.php script 
and the fonts directory? I'm confused on that point. Also, if I have to use one 
of the fonts that's universally supported by all PDF viewers, do any of them 
support Cyrillic?

Original issue reported on code.google.com by wbeau...@gmail.com on 17 Apr 2011 at 9:58

GoogleCodeExporter commented 9 years ago
DOMPDF does support embedded fonts. I thought this was clear based on our 
discussion in Issue 249.

The built-in fonts currently only support iso-8859-1 (Windows ANSI, actually). 
This is one of the few standard character sets allowed in the PDF 1.3 spec. 
Because of this I'm not entirely sure what the full list of supported 
characters are for the built-in fonts. This is something we're looking into.

Original comment by eclecticgeek on 22 Apr 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Then update your documentation so that it does not say "Font embedding is not 
currently supported" (dompdf_config.inc.php, lines 108-109).

Original comment by wbeau...@gmail.com on 22 Apr 2011 at 10:50

GoogleCodeExporter commented 9 years ago
I think we meant "font subsetting", we'll fix it, thanks.

Original comment by fabien.menager on 22 Apr 2011 at 11:37

GoogleCodeExporter commented 9 years ago
Wow ... how did that comment get missed for so long? Thanks for pointing it 
out. Do you need any additional help with your font situation?

Original comment by eclecticgeek on 23 Apr 2011 at 12:53

GoogleCodeExporter commented 9 years ago
Yes, but I don't know if you can help me because all I can say is that I've 
tried installing various fonts that are supposed to be Unicode-friendly and 
none work for displaying Cyrillic characters. Could it be something other than 
the font? I've checked the text I'm printing and I know it displays correctly 
in HTML (UTF-8 encoding).

Original comment by wbeau...@gmail.com on 23 Apr 2011 at 1:07

GoogleCodeExporter commented 9 years ago
If you can supply a sample document we'll make sure it converts correctly. If 
that's ok, then maybe we can take a look at your PHP?

Though there are really only a few things you need to enable support for 
Cyrillic, it's the details that can cause problems.

Original comment by eclecticgeek on 23 Apr 2011 at 1:33

GoogleCodeExporter commented 9 years ago

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