Class: FontDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/font_drop.rb

Overview

Represents a font selected in ThemeSettingsDrop.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#category ⇒ String

The category of font - serif, sans-serif, display, handwriting, or monospace.

Returns:

  • (String)

#css ⇒ String

CSS snippet for the font, including a fallback.

Returns:

  • (String)

#css_string ⇒ String

CSS name for the font.

Returns:

  • (String)

#google? ⇒ Boolean

True if this font is loaded from Google.

Returns:

  • (Boolean)

#name ⇒ String

The category of font - serif, sans-serif, display, handwriting, or monospace.

Returns:

  • (String)

#source ⇒ String

Source of the font (google or typekit)

Returns:

  • (String)

#to_s ⇒ String

Returns:

  • (String)

#typekit? ⇒ Boolean

True if this font is loaded from Typekit.

Returns:

  • (Boolean)