struct Protocol::CSS::FontFace

Overview

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.

Included Modules

Defined in:

protocol/css.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def font_display : String #

The font-display.


[View source]
def font_family : String #

The font-family.


[View source]
def font_stretch : String #

The font-stretch.


[View source]
def font_style : String #

The font-style.


[View source]
def font_variant : String #

The font-variant.


[View source]
def font_variation_axes : Array(FontVariationAxis) | Nil #

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


[View source]
def font_weight : String #

The font-weight.


[View source]
def platform_font_family : String #

The resolved platform font family


[View source]
def src : String #

The src.


[View source]
def unicode_range : String #

The unicode-range.


[View source]