说明: 服务端脚本语言php实现,pcdtr是一个PHP 和CSS脚本 javascript免费,动态地替换html文本使用任何定制的字体,简单全面供给各类学习参考 (Service-side scripting language php achieve the , pcdtr is a PHP and CSS scripts javascript free to use any custom fonts dynamically replace html text , simple comprehensive reference supply all kinds of learning)
P C D T R - PHP + CSS Dynamic Text Replacement
================================================================================
(Revision by Joao Makray )
HOW TO INSTALL
--------------------------------------------------------------------------------
1. In the beggining of the HTML insert:
And at the bottom:
2. Link the style sheet inside the :
or inside your css:
@import "pcdtr/styles.css";
and start styling!
3. Copy your font files (.ttf or .otf) to the pcdtr folder.
OBS: .otf fonts seems to have problems with accents
4. Assign write permissions to the cache folder inside the pcdtr folder for
faster performance.
NOTES
--------------------------------------------------------------------------------
* If you need to change folder names or files, configure the paths in class.php
* This is an open source script. Feel free to use it but if you make any changes,
share it too!
* Here are the CSS Rules that can be used to style your headings:
* font-family (use the name of the font FILE, with or without extension)
* font-size (in points)
* color
* background-color
* a:hover
* text-decoration (for links)
* text-transform: uppercase/lowercase
* text-align
* If you are using this script in a CMS that doesn't allow you to use output
buffering functions, simply comment the line with `ob_start('PCDTR_init');` in
the class.php file and, in your code, execute PCDTR_init($buffer);
with your generated content string.
* When using background images behind the font, specify the nearest background-color
for the alias color and after that, set background:transparent.