← Back to CSS domain
CSS.getPlatformFontsForNode
Requests information about platform fonts which we used to render child TextNodes in the given
node.
Domain: CSS
experimental
Parameters
| Name | Type | Description |
nodeId | DOM.NodeId | |
Returns
| Name | Type | Description |
fonts | array | Usage statistics for every employed platform font. |
Example Request
{
"id": 1,
"method": "CSS.getPlatformFontsForNode",
"params": {
"nodeId": 1
}
}
Example Response
{
"id": 1,
"result": {
"fonts": []
}
}
Usage in Node.js
const result = await send('CSS.getPlatformFontsForNode', {"nodeId": 1});
console.log(result);
// {"fonts": []}