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

Font::FreeType::BoundingBox - a structure used to hold an outline's bounding box

    use Font::FreeType;

    my $freetype = Font::FreeType->new;
    my $face = $freetype->face('Vera.ttf');
    my ($x_min, $y_min, $x_max, $y_max) =
        ($face->x_min, $face->y_min, $face->x_max, $face->y_max);

A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.

The bounding box is specified with the coordinates of the lower left and the upper right corner. In PostScript, those values are often called (llx,lly) and (urx,ury), respectively.

If y_min is negative, this value gives the glyph's descender. Otherwise, the glyph doesn't descend below the baseline. Similarly, if y_max is positive, this value gives the glyph's ascender.

x_min gives the horizontal distance from the glyph's origin to the left edge of the glyph's bounding box. If x_min is negative, the glyph extends to the left of the origin.

x_min
y_min
x_max
y_max
2015-09-27 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.