Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.CSS.FontFace

Headless Chrome Deno API
Latest
interface Protocol.CSS.FontFace
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
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").