PHP Classes

File: vars/fontweight2num.php

Recommend this page to a friend!
  Classes of Corey Hart  >  CSS Compressor  >  vars/fontweight2num.php  >  Download  
File: vars/fontweight2num.php
Role: Configuration script
Content type: text/plain
Description: converts font names to numbers
Class: CSS Compressor
Compact the size of CSS definitions
Author: By
Last change: -Better options handling
-Look behind regexs are used to not break urls
-Singleton access added
-Exposing byte unit conversion display
-The compressor no longer self instantiates itself, you must explicitly initialize it.
-Most methods that were never meant to be public, have been turned into private/protected based on accessibility requirements.
Date: 6 years ago
Size: 227 bytes


Class file image Download
 * CSS Compressor [VERSION]
 * [DATE]
 * Corey Hart @

// Font-weight conversions
$fontweight2num = array(
"lighter" => 100,
"normal" => 400,
"bold" => 700,
"bolder" => 900,