kevintweber / ktw-fvd
PHP port of Typekit/fvd
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kevintweber/ktw-fvd
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2020-01-25 01:09:06 UTC
README
Fvd (Font Variant Description) is "a way to unambiguously, compactly and clearly describe a set of @font-face properties." KtwFvd is a PHP port of the Typekit Fvd library.
Documentation
This little library offers three static functions for your enjoyment:
Fvd::Compact()
Given a font description (in CSS), Compact will return the FVD code:
Fvd::Compact('font-style:italic;font-weight:bold;') will return i7.
Fvd::Expand()
Given a FVD code, Expand will return the CSS code:
Fvd::Expand('n5') will return font-style:normal;font-weight:500;.
Fvd::Parse()
Given a FVD code, Parse will return an array of CSS code:
Fvd::Parse('o4') will return array('font-style' => 'oblique', 'font-weight' => 400).
Authors
Kevin Weber - kevintweber@gmail.com
License
KtwFvd is licensed under the MIT license. See LICENSE for
more details.