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
Graphics::Primitive::Font(3) User Contributed Perl Documentation Graphics::Primitive::Font(3)

Graphics::Primitive::Font - Text styling

Graphics::Primitive::Font represents the various options that are available when rendering text. The options here may or may not have an effect on your rendering. They represent a cross-section of the features provided by various drivers. Setting them should not break anything, but may not have an effect if the driver doesn't understand the option.

  use Graphics::Primitive::Font;

  my $font = Graphics::Primitive::Font->new({
    family => 'Arial',
    size => 12,
    slant => 'normal'
  });

Set the antialiasing mode for this font. Possible values are default, none, gray and subpixel.

Set this font's family.

Controls whether to hint font metrics. Hinting means quantizing them so that they are integer values in device space. This improves the consistency of letter and line spacing, however it also means that text will be laid out differently at different zoom factors. May not be supported by all drivers.

Set the the type of hinting to do on font outlines. Hinting is the process of fitting outlines to the pixel grid in order to improve the appearance of the result. Since hinting outlines involves distorting them, it also reduces the faithfulness to the original outline shapes. Not all of the outline hinting styles are supported by all drivers. Options are default, none, slight, medium and full.

Set/Get the size of this font.

Set/Get the slant of this font. Valid values are normal, italic and oblique.

Set the order of color elements within each pixel on the display device when rendering with subpixel antialiasing. Value values are default, rgb, bgr, vrgb and vbgr.

Set/Get the variant of this font. Valid values are normal or small-caps.

Set/Get the weight of this font. Value valies are normal and bold.

Creates a new Graphics::Primitive::Font.

Clone this font but change one or more of it's attributes by passing in a hashref of options:

  my $new = $font->derive({ attr => $newvalue });

The returned font will be identical to the cloned one, save the attributes specified.

Cory Watson, "<gphat@cpan.org>"

Copyright 2008-2010 by Cory G Watson.

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

2015-01-22 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.