Font::TTF::Anchor(3) User Contributed Perl Documentation Font::TTF::Anchor(3)

# [NAME](#NAME)

Font::TTF::Anchor - Anchor points for GPOS tables

# [DESCRIPTION](#DESCRIPTION)

The Anchor defines an anchor point on a glyph providing various information depending on how much is available, including such information as the co-ordinates, a curve point and even device specific modifiers.

# [INSTANCE VARIABLES](#INSTANCE_VARIABLES)

[x](#x)

XCoordinate of the anchor point

[y](#y)

YCoordinate of the anchor point

[p](#p)

Curve point on the glyph to use as the anchor point

[xdev](#xdev)

Device table (delta) for the xcoordinate

[ydev](#ydev)

Device table (delta) for the ycoordinate

[xid](#xid)

XIdAnchor for multiple master horizontal metric id

[yid](#yid)

YIdAnchor for multiple master vertical metric id

# [METHODS](#METHODS)

## [new](#new)

Creates a new Anchor

## [read($fh)](#read%28$fh%29)

Reads the anchor from the given file handle at that point. The file handle is left at an arbitrary read point, usually the end of something!

## [out($fh, $style)](#out%28$fh,_$style%29)

Outputs the Anchor to the given file handle at this point also addressing issues of deltas. If $style is set, then no output is sent to the file handle. The return value is the output string.

## [$a-&gt;out\_xml($context)](#$a)

Outputs the anchor in XML

# [AUTHOR](#AUTHOR)

Martin Hosken &lt;http://scripts.sil.org/FontUtils&gt;.

# [LICENSING](#LICENSING)

Copyright (c) 1998-2016, SIL International (http://www.sil.org)

This module is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.

2026-09-25 perl v5.44.0

---

Document: Font::TTF::Anchor(3pm) from perl-font-ttf 1.06-r0 (Chainguard OS)
