Automattic / Automattic/node-canvas

RegisterFont not working well Unicode Text while deploy on Ubuntu Server.

Open
#2,287 2 comments 0 reactions 0 assignees View on GitHub
Text & Fonts
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Issue
`registerFont` function is not working well with Unicode text while deployed on the Ubuntu Server.

### Environment
node -> v20.6.1
Ubuntu Version -> 22.0.4
canvas -> 2.11.2
Result

![Screenshot 2566-09-17 at 02 18 08](https://github.com/Automattic/node-canvas/assets/6771972/d56648b0-7dde-4688-80d0-538d776f8338)

But It works well on a Mac M2 chip local machine
### Environment
node -> 20
Mac -> M2 Pro
canvas -> 2.11.2
Result
image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the registerFont Unicode rendering difference on Ubuntu 22.04 with Node.js and canvas 2.11.2, then compare it with the reported macOS result. The issue names no source file or test; done would mean identifying the platform-dependent cause and demonstrating consistent Unicode text rendering with a focused regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, ubuntu
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.