1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00
phorge-phorge/externals/pear-figlet/docs/README.TXT
epriestley 935ced1edd Include "Figlet" and PEAR "Text_Figlet" in externals
Summary:
Ref T7785. This prepares for (but does not yet use) a pure PHP implementation of Figlet parsing and rendering.

Figlet is somewhat complex, but a parser already exists in PEAR. I'll make sure it's suitable and hook it up in the next diff.

Test Plan: N/A, code not reachable

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9408, T7785

Differential Revision: https://secure.phabricator.com/D14101
2015-09-13 12:30:48 -07:00

26 lines
No EOL
1.1 KiB
Text

FIGlet project home page: http://www.figlet.org/
You can download FIGlet fonts from: ftp://ftp.figlet.org/pub/figlet/fonts/
Project home page (Russian): http://bolknote.ru/files/figlet/
Notes:
1. There are no support flc and vertical smushing.
2. But horizontal smushing is supported.
3. Default character (0x00) is supported.
4. German symbols are supported.
5. It is supported Unicode as %uHHHH, HHHH - a hex code of a character (UCS-2).
7. RTL and LTR text directions are suppoted.
8. Windows and Unix font formats are supported.
9. Incomplete fonts are supported (for example dwhistled.flf).
10. Gzipped fonts supported as .flf.gz (zlib PHP extension required)
11. ZIPed fonts supported (ZIP PHP extension required)
`
Usage:
include_once 'Text/Figlet.php';
$figlet = new Text_Figlet();
if (PEAR::isError($error = $figlet->LoadFont('slant.flf'))) {
echo 'Error: ', $error->getMessage();
} else {
echo $figlet->LineEcho("Hello, world!");
}