class Fontist::Import::Google::DataSources::Vf
Data source for fetching Variable Fonts
This data source fetches fonts from the Google Fonts API with the VF (Variable Fonts) capability. The response includes fonts that support variable font capabilities, with axes data for those that have it.
Note: The VF endpoint returns both variable and static fonts. Fonts without axes are static fonts that support the VF capability but donβt have variable font axes.
Constants
- CAPABILITY
Public Class Methods
Source
# File lib/fontist/import/google/data_sources/vf.rb, line 22 def initialize(api_key:) super(api_key: api_key, capability: CAPABILITY) end
Initialize a new Variable Fonts data source
@param api_key [String] Google Fonts API key
Calls superclass method
Fontist::Import::Google::DataSources::Base::new