Class: FontDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- FontDrop
- Defined in:
- app/drops/font_drop.rb
Overview
Represents a font selected in ThemeSettingsDrop.
Instance Method Summary collapse
-
#category ⇒ String
The category of font - serif, sans-serif, display, handwriting, or monospace.
-
#css ⇒ String
CSS snippet for the font, including a fallback.
-
#css_string ⇒ String
CSS name for the font.
-
#google? ⇒ Boolean
True if this font is loaded from Google.
-
#name ⇒ String
The category of font - serif, sans-serif, display, handwriting, or monospace.
-
#source ⇒ String
Source of the font (google or typekit).
- #to_s ⇒ String
-
#typekit? ⇒ Boolean
True if this font is loaded from Typekit.
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#category ⇒ String
The category of font - serif, sans-serif, display, handwriting, or monospace.
#css ⇒ String
CSS snippet for the font, including a fallback.
#css_string ⇒ String
CSS name for the font.
#google? ⇒ Boolean
True if this font is loaded from Google.
#name ⇒ String
The category of font - serif, sans-serif, display, handwriting, or monospace.
#source ⇒ String
Source of the font (google or typekit)
#to_s ⇒ String
#typekit? ⇒ Boolean
True if this font is loaded from Typekit.