Automattic / Automattic/node-canvas
I can't register font on linux also stroke not same responding
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
I am working with nodejs 19.4 and canvas version is 2.11.2 my linux server equal with this versions. There is no error messege with my code but in local development ı can get the result as ı want but in the server ı can't apply the font ı want.
registerFont('./Cormorant.tff', {family: 'Cormorant', style: 'normal'}); I use this funcion before creating canvas context also ı have a problem with stroke style
I draw stroke with this code
```js
canvasCtx.lineWidth = designTemplate.strokeWidth;
canvasCtx.strokeStyle = designTemplate.strokeColor;
canvasCtx.strokeText(data.line, data.x + Xadder, data.y);
// etc.
```
in my local machine
what I get in server
## Your Environment
* canvas version 2.11.2
* node version 19.4
* ubuntu 22.04
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.