Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htmlpageheader - bolding unicode #127

Open
10 of 17 tasks
MoVoDesign opened this issue Oct 11, 2022 · 0 comments
Open
10 of 17 tasks

htmlpageheader - bolding unicode #127

MoVoDesign opened this issue Oct 11, 2022 · 0 comments

Comments

@MoVoDesign
Copy link

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of yii2-mpdf.
  • This is not an usage question. I confirm having gone through and read the documentation.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

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

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Safari

Operating System

  • Windows
  • Mac OS X
  • Linux (CentOS)
  • Mobile

Libraries

  • jQuery version: 2.1.4
  • yii2-mpdf version: dev-master 6a6506e

Isolating the problem

  • This bug happens on the demos page
  • The bug happens consistently across all tested browsers
  • This bug happens when using yii2-mpdf without other plugins (no other PDF plugins)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant