CTS logo
hazy blue Catskill Mountains in distance

A Thought…

There are two means of refuge from the misery of life — music and cats.

   — Albert Schweitzer

NAME

PDF::Builder::Resource::UniFont - Unicode Font Support

METHODS

new

    $font = PDF::Builder::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:
    [
         $block1, $block3,    # register font for block 1 + 3
        [$blockA, $blockZ],   # register font for blocks A .. Z
    ]
CODESPECS:
    [
         $cp1, $cp3,          # register font for codepoint 1 + 3
        [$cpA, $cpZ],         # register font for codepoints A .. Z
    ]
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)

isvirtual

    $flag = $font->isvirtual()
(No Information)

fontlist

    $font->fontlist()
(No Information)

width

    $w = $font->width($string)
(No Information)

text

    $font->text($string, $size, $indent)
(No Information)

NAVIGATION LINKS

Up (Parents)

Master Index
PDF::Builder -- Facilitates the creation and modification of PDF files
PDF::Builder::Resource -- Base class for PDF resources

Siblings

PDF::Builder::Resource::BaseFont -- Base class for font resources
PDF::Builder::Resource::CIDFont -- Base class for CID fonts
PDF::Builder::Resource::ColorSpace -- Base class for PDF color spaces
PDF::Builder::Resource::Colors -- Translate color names into RGB settings
PDF::Builder::Resource::ExtGState -- Graphics state dictionary support
PDF::Builder::Resource::Font -- Some common support routines for font files
PDF::Builder::Resource::Glyphs -- Preparsed uniglyph.txt file information
PDF::Builder::Resource::PaperSizes -- List of standard paper sizes and their dimensions
PDF::Builder::Resource::Pattern -- Support stub for fill patterns
PDF::Builder::Resource::Shading -- Support stub for fill shading patterns
PDF::Builder::Resource::XObject -- Base class for external objects

 

All content © copyright 2005 – 2025 by Catskill Technology Services, LLC.
All rights reserved.
Note that Third Party software (whether Open Source or proprietary) on this site remains under the copyright and license of its owners. Catskill Technology Services, LLC does not claim copyright over such software.

 

This page is https://www.catskilltech.com/Documentation/PDF/Builder/Resource/UniFont.html

Search Quotations database.

Last updated Sat, 09 Dec 2023 at 10:59 PM

Valid HTML 5

Mon, 13 Jan 2025 at 6:12 AM EST