Skip to main content
Go to Latest
interface Protocol.CSS.FontFace
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { FontFace } = Protocol.CSS;

Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.

Properties

fontFamily: string

The font-family.

fontStyle: string

The font-style.

fontVariant: string

The font-variant.

fontWeight: string

The font-weight.

fontStretch: string

The font-stretch.

unicodeRange: string

The unicode-range.

src: string

The src.

platformFontFamily: string

The resolved platform font family

optional
fontVariationAxes: FontVariationAxis[]

Available variation settings (a.k.a. "axes").