deana / ttf Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rizer/ttf
Release history of TTF
Home Page: http://search.cpan.org/dist/TTF/
This project forked from rizer/ttf
Release history of TTF
Home Page: http://search.cpan.org/dist/TTF/
Perl Module: TTF =head1 Introduction Perl module for TrueType font hacking. Supports reading, processing and writing of the following tables: LTSH, OS/2, PCLT, cmap, cvt, fpgm, glyf, hdmx, head, hhea, hmtx, kern, loca, maxp, name, post, prep, vhea, vmtx and the reading and writing of all other table types. In short, you can do almost anything with a standard TrueType font with this module. Be Brave! Also included are the following example scripts: EuroFix.bat Fixes fonts created for Win95 so that they work in Win98 and NT4 sp4. TTFEnc.bat Create .enc, .afm, .tfm and .map entry for a ttf file based on Unicode rather than postscript. Requires afm2tfm and ttf2afm. Zerohyph.bat Create a zero width hyphen in place of the normal hyphen Any suggestions, improvements, additions, subclasses, etc. would be gratefully received and probably included in a future release. Please send them to me. =head1 SYNOPSIS Here is the regression test (you provide your own font). Run it once and then again on the output of the first run. There should be no differences between the outputs of the two runs. $f = TTF::Font->open($ARGV[0]); # force a read of all the tables $f->tables_do(sub { $_[0]->read; }); # force read of all glyphs (use read_dat to use lots of memory!) # $f->{'loca'}->glyphs_do(sub { $_[0]->read; }); $f->{'loca'}->glyphs_do(sub { $_[0]->read_dat; }); # NB. no need to $g->update since $f->{'glyf'}->out will do it for us $f->out($ARGV[1]); $f->DESTROY; # forces close of $in and maybe memory reclaim! =head1 PERL4 Utilities As an aside, the following Perl4 system and utilities have been slung in: perlmod.pl addpclt.bat Create a PCLT table for a font with lots of junk in it hackos2.bat Do all sorts of unspeakable things to the OS/2 table MakeMono.bat Force a font to be mono-spaced TTFName.bat Rename a font (and set any other name strings) TTFWidth.bat Find the centre of every glyph in a font and print report =head1 Installation To configure this module, cd to the directory that contains this README file and type the following. perl Makefile.PL Alternatively, if you plan to install XML::Parser somewhere other than your system's perl library directory. You can type something like this: perl Makefile.PL PREFIX=/home/me/perl INSTALLDIRS=perl Then to build you run make. make You can then test the module by typing: make test If you have write access to the perl library directories, you may then install by typing: make install =head1 AUTHOR Martin Hosken L<[email protected]> Copyright Martin Hosken 1998. No warranty or expression of effectiveness for anything, least of all anyone's safety, is implied in this software or documentation. =head2 Licensing The Perl TTF module is licensed under the Perl Artistic License.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.