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

#categoryString

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

Returns:

  • (String)

#cssString

CSS snippet for the font, including a fallback.

Returns:

  • (String)

#css_stringString

CSS name for the font.

Returns:

  • (String)

#google?Boolean

True if this font is loaded from Google.

Returns:

  • (Boolean)

#nameString

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

Returns:

  • (String)

#sourceString

Source of the font (google or typekit)

Returns:

  • (String)

#to_sString

Returns:

  • (String)

#typekit?Boolean

True if this font is loaded from Typekit.

Returns:

  • (Boolean)