Skip to content

Commit aaf3198

Browse files
author
Koen Deforche
committed
enable UTF-8 encodings
1 parent 342ace1 commit aaf3198

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Wt/WPdfImage.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ WPdfImage::WPdfImage(const WLength& width, const WLength& height,
6868
HPDF_Page_GSave(page_);
6969

7070
trueTypeFonts_ = new FontSupport(this);
71+
72+
if (trueTypeFonts_)
73+
HPDF_UseUTFEncodings(pdf_);
7174
}
7275

7376
WPdfImage::WPdfImage(HPDF_Doc pdf, HPDF_Page page, HPDF_REAL x, HPDF_REAL y,

wt_config.xml.in

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,15 +421,13 @@
421421
because it may be hosted in a web page from an entirely
422422
different domain.
423423

424-
Eg. "http://www.webtoolkit.eu/wt"
425-
426-
The default value is empty, in which case Wt will avoid using
427-
absolute URLs. Relative URLs passed in API calls will be
428-
"fixed" so that they resolve against the location of the
424+
By default, no baseURL is specified, in which case Wt will
425+
avoid using absolute URLs. Relative URLs passed in API calls
426+
will be "fixed" so that they resolve against the location of the
429427
application deploy path, even in the presence of an
430428
internal path.
431429
-->
432-
<property name="baseURL"></property>
430+
<!-- <property name="baseURL">"http://www.webtoolkit.eu/wt</property> -->
433431

434432
<!-- resourcesURL property
435433

0 commit comments

Comments
 (0)