← Back to CSS domain

CSS.setLocalFontsEnabled

Enables/disables rendering of local CSS fonts (enabled by default).

Domain: CSS experimental

Parameters

NameTypeDescription
enabledbooleanWhether rendering of local fonts is enabled.

Example Request

{
  "id": 1,
  "method": "CSS.setLocalFontsEnabled",
  "params": {
    "enabled": true
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('CSS.setLocalFontsEnabled', {"enabled": true});
console.log(result);