Zunenonooo / dompdf

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

Unicode in header line #517

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
- I used $pdf->text() function to generate text on header line in html file.
- I am using "Times New Roman" font, which is installed successfully by using 
load_font.php script.
- In the html content, all character was successfully displayed, but in header 
line, some characters are replaced by "?".

What is the expected output? What do you see instead?
- All character is fully displayed in utf8.

What version of dompdf are you using? What version of PHP? On what
operating system?
dompdf 0.6 beta 3

Please provide the HTML source code you want to convert, or any additional
information.
if ( isset($pdf) ) {
$font = Font_Metrics::get_font("Times New Roman");
$color = array(0,0,0);
$size = 15;
$text_height = Font_Metrics::get_font_height($font, $size);
$pdf->text(100, 168 + $extent_height, "e é ẽ ẹ è ê", $font, $size, 
$color);
}

Original issue reported on code.google.com by thinhvoquang@gmail.com on 18 Jul 2012 at 9:15

GoogleCodeExporter commented 8 years ago
This is a known issue due to the way dompdf parses inline script. It has been 
addressed for the next release (see the linked issue). Bascially, update to the 
latest nightly release: http://eclecticgeek.com/dompdf

FYI, not all of those characters are supported using the core fonts (Helvetica, 
Times, Courier). The core fonts only support the Windows ANSI character 
encoding. If, after updating, you still experience problems you should try 
using one of the DejaVu fonts (and enable font-subsetting for best results).

Original comment by eclecticgeek on 18 Jul 2012 at 2:25

GoogleCodeExporter commented 8 years ago

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