Skip to content

Font italic is not effective in backend mode #2005

@ouronghuang

Description

@ouronghuang

main.js

import Konva from 'konva';
import 'konva/skia-backend';

const text = new Konva.Text({
  text: 'testf\ntestf',
  fontFamily: 'Microsoft Yahei',
  fontSize: 80,
  fontStyle: 'italic',
  padding: 20,
  lineHeight: 1.4,
  letterSpacing: 0,
  fill: '#000000',
});
console.log(text.toDataURL());

package.json

{
  "name": "font-script",
  "private": true,
  "type": "module",
  "engines": {
    "node": "^22.17.1"
  },
  "dependencies": {
    "konva": "^10.0.12",
    "skia-canvas": "^3.0.8"
  }
}

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