GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PDF::Font(3) User Contributed Perl Documentation PDF::Font(3)

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

Version 1.46

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.

    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";

Expects "font_name" as the only parameter. It can be one of the following names:
  • Courier
  • Courier-Bold
  • Courier-BoldOblique
  • Courier-Oblique
  • Helvetica
  • Helvetica-Bold
  • Helvetica-BoldOblique
  • Helvetica-Oblique
  • Times-Bold
  • Times-BoldItalic
  • Times-Italic
  • Times-Roman
  • Symbol

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

Returns the character width for the given $codepoint.

Returns the character name for the given $codepoint.

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

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

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

This is free software; you can redistribute it and / or modify it under the same terms as Perl 5.6.0.
2019-09-30 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.