Login   Register  
PHP Classes
elePHPant
Icontem

File: class.pGifText.config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ciprian Voicu  >  Pictoru's GIF Text  >  class.pGifText.config.php  >  Download  
File: class.pGifText.config.php
Role: Configuration script
Content type: text/plain
Description: configuration file
Class: Pictoru's GIF Text
Render text as images
Author: By
Last change: typed more explanations for the font folder location
Date: 2006-08-29 11:26
Size: 1,039 bytes
 

Contents

Class file image Download
<?
# CONFIGURATION FILE
# -------------------------------------------------------------------------------
#    Name:            Pictoru's Gif Title                                                
#    Author:            Ciprian Voicu                                                
#    Version:         1.0                                                         
#    Date:            2006-08-29                                                    
#    Description:    • creates and outputs gif images from ttf fonts, usefull for 
#                    texts which are not supported  by the browsers
#    License:         GNU GPL                                                        
# -------------------------------------------------------------------------------

error_reporting(E_ALL);

# this defines the location of the fonts folder relativ to this file

# change the $font_folder value with the location of your fonts folder 
# put in that font your fonts 

$font_folder="fonts";

define("IMG_FONT_FOLDER"realpath(dirname(__FILE__)."/".$font_folder)."/");

# insert a new item in this array for your new font. 
# the key will be the identifier into the class
define("IMG_TTF_FONTS"serialize(array(
                
1=>"Swiss721CondensedBT.ttf",
                
2=>"Requiem.ttf",
                )));
?>