Hi @PD4ML,
We are trying to convert an HTML file to PDF but the CJK fonts are not displaying in Bold styling, they are rendered in regular styling.
As per the reference manual :
Quote:
PD4ML emulates missing styles. Italic is emulated by an area tilt, Bold is by a font glyph stroke out.
JAR version used is
4.0.4pd4fonts.properties file contents:
Code:
KaiTi=simkai.ttf
MingLiU=MINGLIU.ttf
Times\ New\ Roman=times.ttf
Times\ New\ Roman\ Bold=timesbd.ttf
Times\ New\ Roman\ Bold\ Italic=timesbi.ttf
Times\ New\ Roman\ Italic=timesi.ttf
HTML File :
Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"; charset="UTF-8">
</head>
<body>
<p><strong>simplified chinese</strong></p>
<p><font face="KaiTi"><b>人人生而自由,在尊严和权利上</b></font></p>
</body>
</html>
As per my understanding, since there is no Bold mapping for KaiTi, pd4ml is supposed to emulate the style.
Please guide me on how to achieve bold/italic styling in the resulting PDFs in this case.
Thanks,
Aman.