Unix/Linux Go Back    

CentOS 7.0 - man page for font::ttf::dumper (centos section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

Font::TTF::Dumper(3)	       User Contributed Perl Documentation	     Font::TTF::Dumper(3)

       Font::TTF::Dumper - Debug dump of a font datastructure, avoiding recursion on ' PARENT'


	   # Print a table from the font structure:
	   print ttfdump($font->{$tag});

	   # Print font table with name
	   print ttfdump($font->{'head'}, 'head');

	   # Print one glyph's data:
	   print ttfdump($font->{'loca'}->read->{'glyphs'}[$gid], "glyph_$gid");

       Font::TTF data structures are trees created from hashes and arrays. When trying to figure
       out how the structures work, sometimes it is helpful to use Data::Dumper on them. However,
       many of the object structures have ' PARENT' links that refer back to the object's parent,
       which means that Data::Dumper ends up dumping the whole font no matter what.

       The purpose of this module is to do just one thing: invoke Data::Dumper with a filter that
       skips over the ' PARENT' element of any hash.

       To reduce output further, this module also skips over ' CACHE' elements and any hash
       element whose value is a Font::TTF::Glyph or Font::TTF::Font object.  (Really should make
       this configurable.)

See also

perl v5.16.3				    2011-10-13			     Font::TTF::Dumper(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 08:45 PM.