Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.CSS.FontFace
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { FontFace } = default.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").