kevintweber/ktw-fvd

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP port of Typekit/fvd

dev-master 2013-08-18 01:33 UTC

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.

Build Status

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.