kartik-v / yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.
http://demos.krajee.com/mpdf
Other
161 stars 150 forks source link

htmlpageheader - bolding unicode #127

Open MoVoDesign opened 1 year ago

MoVoDesign commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. render a ('mode' => Pdf::MODE_UTF8) pdf with content:
    <htmlpageheader name="otherpages">
    <b>a 記試</b> / <i>b 記試</i> / <span style="font-weight: bold">c 記試</span>
    </htmlpageheader>

Expected behavior and actual behavior

When I follow those steps, I see the Chinese characters above with normal font weight: a 記試 sample

I was expecting bold font-weight: a 記試

Please note Bold Chinese fonts work in other parts of the pdf generated sample2

Environment

OSX 12.6 / PHP 8.0.23

yiisoft/yii2                          2.0.46
kartik-v/yii2-mpdf             dev-master 6a6506e

Browsers

Operating System

Libraries

Isolating the problem