Skip to content

Strange Behavior With Chinese Fonts #1027

@Dr-NULL

Description

@Dr-NULL

Bug Report

Description of the problem

PDFKit has a strange behavior when uses a chinese font, and use certain chinese characters.

Details:

  • When inserts the first string ("冷冻去骨牛肉 / Frozen Boneless Beef / Carne Bovina sin Hueso Congelada"), this displays fine.
  • But when inserts some characters (like "产品名"), the texts which inserted next only shows a few characters.
  • Some normal characters such two-dots ":" doesn't rendered by PDFKit.

Code sample

I made a project with a extensive documentation of the problem:
https://github.com/Dr-NULL/Issues-PDFKit

Your environment

  • pdfkit version: 0.10.0
  • Node version: 10.16.3
  • Operating System: Windows 10 x64 bits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions