Automattic / Automattic/node-canvas

Is it possible to render bold font while having only regular .ttf?

Open
#1,453 2 comments 1 reaction 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

When I use the canvas element in a browser, I can set the font-weight of an element to **bold**, and the browser will "fake" the bold if I don't actually have the bold font file loaded.

Can I reproduce this behavior using node-canvas or I must have the bold version of the font file registered along with the regular one?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.