1PDF::Font(3)          User Contributed Perl Documentation         PDF::Font(3)
2
3
4

NAME

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

VERSION

9       Version 1.46
10

DESCRIPTION

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

SYNOPSIS

17           use strict; use warnings;
18           use PDF::Font;
19
20           my $font = PDF::Font->new('Helvetica');
21           my $char_widths = $font->char_width;
22           print "Character width: ", $font->get_char_width(ord('A')), "\n";
23           print "Character  name: ", $font->get_char_name(ord('A')) , "\n";
24

CONSTRUCTOR

26       Expects "font_name" as the only parameter. It can be one of the
27       following names:
28
29       •   Courier
30
31       •   Courier-Bold
32
33       •   Courier-BoldOblique
34
35       •   Courier-Oblique
36
37       •   Helvetica
38
39       •   Helvetica-Bold
40
41       •   Helvetica-BoldOblique
42
43       •   Helvetica-Oblique
44
45       •   Times-Bold
46
47       •   Times-BoldItalic
48
49       •   Times-Italic
50
51       •   Times-Roman
52
53       •   Symbol
54

METHODS

56   char_width()
57       Returns arrayref of all characters width (0..255).
58
59   get_char_width($codepoint)
60       Returns the character width for the given $codepoint.
61
62   get_char_name($codepoint)
63       Returns the character name for the given $codepoint.
64

AUTHORS

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

REPOSITORY

69       <https://github.com/manwar/pdf-create>
70
72       Copyright 1999-2001,Fabien Tassin.All rights reserved.It may be used
73       and modified freely, but I do  request that this copyright notice
74       remain attached to the file.  You may modify this module as you
75       wish,but if you redistribute a modified version , please attach a note
76       listing the modifications you have made.
77
78       Copyright 2007 Markus Baertschi
79
80       Copyright 2010 Gary Lieberman
81

LICENSE

83       This is free software; you can redistribute it and / or modify it under
84       the same terms as Perl 5.6.0.
85
86
87
88perl v5.36.0                      2022-07-22                      PDF::Font(3)
Impressum