Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

kevintweber/KtwFvd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KtwFvd - Font Variant Description for PHP

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 - [email protected]

License

KtwFvd is licensed under the MIT license. See LICENSE for more details.

About

PHP port of the TypeKit Fvd library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages