Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
PDF::Font(3)	      User Contributed Perl Documentation	  PDF::Font(3)

NAME
       PDF::Font - Base	font class for PDF::Create.

VERSION
       Version 1.35

DESCRIPTION
       Base font class to support font families	approved by PDF::Create. This
       is used in the method "init_widths()" inside the	package
       PDF::Create::Page.

SYNOPSIS
	   use strict; use warnings;
	   use PDF::Font;

	   my $font = PDF::Font->new('Helvetica');
	   my $char_widths = $font->char_width;
	   print "Character width: ", $font->get_char_width(ord('A')), "\n";
	   print "Character  name: ", $font->get_char_name(ord('A')) , "\n";

CONSTRUCTOR
       Expects "font_name" as the only parameter. It can be one	of the
       following names:

       o   Courier

       o   Courier-Bold

       o   Courier-BoldOblique

       o   Courier-Oblique

       o   Helvetica

       o   Helvetica-Bold

       o   Helvetica-BoldOblique

       o   Helvetica-Oblique

       o   Times-Bold

       o   Times-BoldItalic

       o   Times-Italic

       o   Times-Roman

       o   Symbol

METHODS
   char_width()
       Returns arrayref	of all characters width	(0..255).

   get_char_width($codepoint)
       Returns the character width for the given $codepoint.

   get_char_name($codepoint)
       Returns the character name for the given	$codepoint.

AUTHORS
       Mohammad	S Anwar	(MANWAR) "<mohammad.anwar at yahoo.com>"

REPOSITORY
       <https://github.com/manwar/pdf-create>

COPYRIGHT
       Copyright 1999-2001,Fabien Tassin.All rights reserved.It	may be used
       and modified freely, but	I do  request that this	copyright notice
       remain attached to the file.  You may modify this module	as you
       wish,but	if you redistribute a modified version , please	attach a note
       listing the modifications you have made.

       Copyright 2007 Markus Baertschi

       Copyright 2010 Gary Lieberman

LICENSE
       This is free software; you can redistribute it and / or modify it under
       the same	terms as Perl 5.6.0.

perl v5.24.1			  2016-09-09			  PDF::Font(3)

NAME | VERSION | DESCRIPTION | SYNOPSIS | CONSTRUCTOR | METHODS | AUTHORS | REPOSITORY | COPYRIGHT | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=PDF::Font&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help