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

FreeBSD Manual Pages

  
 
  

home | help
PDF::API2::Resource::UUsernContributed Perl DocPDF::API2::Resource::UniFont(3)

NAME
       PDF::API2::Resource::UniFont - Unicode Font Support

METHODS
       $font = PDF::API2::Resource::UniFont->new($pdf, @fontspecs, %options);
	   Returns a uni-font object.

	   FONTSPECS: fonts can	be registered using the	following hash-ref:

	       {
		   font	  => $fontobj,	   # the font to be registered
		   blocks => $blockspec,   # the unicode blocks, the font is being registered for
		   codes  => $codespec,	   # the unicode codepoints, -"-
	       }

	   BLOCKSPECS:

	       [
		   1, 3,    # register font for	blocks 1 and 3
		   [1, 3],  # register font for	blocks 1 .. 3
	       ]

	   CODESPECS:

	       [
		   1, 3,    # register font for	codepoints 1 and 3
		   [1, 3],  # register font for	codepoints 1 ..	3
	       ]

	   NOTE: if you	want to	register a font	for the	entire unicode space
	   (ie.	U+0000 .. U+FFFF), then	simply specify a font-object without
	   the hash-ref.

	   Valid %options are:

	     '-encode' ... changes the encoding	of the font from its default.
	       (see "perldoc Encode" for a list	of valid tags)

perl v5.32.0			  2020-02-05   PDF::API2::Resource::UniFont(3)

NAME | METHODS

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

home | help