---
name: "PDF::API2::Basic::TTF::Hdmx"
section: "3pm"
platform: "linux"
package: "libpdf-api2-perl"
version: "0.73-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/PDF::API2::Basic::TTF::Hdmx"
---

# PDF::API2::Basic::TTF::Hdmx(3pm)

Horizontal device metrics

## NAME

PDF::API2::Basic::TTF::Hdmx - Horizontal device metrics

## DESCRIPTION

The table consists of an hash of device metric tables indexed by the ppem for that subtable. Each subtable consists of an array of advance widths in pixels for each glyph at that ppem (horizontally).

## INSTANCE VARIABLES

Individual metrics are accessed using the following referencing:

```
    $f->{'hdmx'}{$ppem}[$glyph_num]
```

In addition there is one instance variable:

- Num

  Number of device tables.

### METHODS

### $t-\>read

Reads the table into data structures

### $t-\>out($fh)

Outputs the device metrics for this font

### $t-\>tables\_do(&func)

For each subtable it calls &sub($ref, `$ppem`)

### $t-\>XML\_element($context, $depth, $key, $value)

Outputs device metrics a little more tidily

## BUGS

None known

## AUTHOR

Martin Hosken Martin\_Hosken@sil.org. See PDF::API2::Basic::TTF::Font for copyright and licensing.
