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

x/sinco/deps.ts>Protocol.CSS.FontFace

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Protocol.CSS.FontFace
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.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").