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: 14 years ago
Size: 227 bytes
 

Contents

Class file image Download
<?php
/**
 * CSS Compressor [VERSION]
 * [DATE]
 * Corey Hart @ http://www.codenothing.com
 */

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

?>