Apple Advanced Typography

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (November 2009) (Learn how and when to remove this message)

|

Computer technology by Apple

Apple Advanced Typography

Filename extension|

.ttf, .ttc

Type code| 0100, "ttcf"
Developed by| Apple
Type of format| Font file
Extended from| TrueType, PostScript fonts
Website| https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6AATIntro.html

Apple Advanced Typography (AAT) is Apple Inc.'s computer technology for advanced font rendering, supporting internationalization and complex features for typographers, a successor to Apple's little-used QuickDraw GX font technology of the mid-1990s.

It is a set of extensions to the TrueType outline font standard, with smartfont features similar to the OpenType font format that was developed by Adobe and Microsoft, and to Graphite. It incorporates concepts from Adobe's "multiple master" font format, allowing for axes of traits to be defined and morphing of a glyph independently along each of these axes. AAT font features do not alter the underlying typed text; they only affect the characters' representation during glyph conversion.

## Features

[edit]

Example of the extra glyphs and ligatures available in the Zapfino typeface

Significant features of AAT include:

* Several degrees of ligature control
* Kashida justification and joiners
* Cross-stream kerning (required for Nasta'liq Urdu, for example)
* Indic vowel rearrangement
* Independently controllable substitution of:
* Old style figures
* Small caps and drop caps
* Swash variants
* Alternative glyphs:
* Individual alternatives on a per-glyph basis
* Wholesale alternatives, such as engraved text
* Anything else the font designer wants to add
* Glyph variation axes

AAT font features are supported on Mac OS 8.5 and above and all versions of macOS. The cross-platform ICU library provided basic AAT support for left-to-right scripts.[1] HarfBuzz version 2 has added AAT shaping support, an open-source implementation of the technology[2] which Chrome/Chromium as version 72 and LibreOffice as version 6.3 uses it instead of CoreText for rendering macOS AAT fonts in cross-platform way.

As of OS X Yosemite and iOS 8, AAT supports language-specific shaping—that is, changing how glyphs are processed depending on the human language they are being used to represent. This support is available through the use of language tags in Core Text.[3] Provision was added at the same time for the relative positioning of two glyphs via anchor points via the 'kerx' and 'ankr' tables.[4]

## AAT and OpenType in macOS

[edit]

As of Mac OS X 10.5 Leopard, partial support for OpenType is available. As of 2011, support is limited to Western and Arabic scripts. If a font has AAT tables, they will be used for typography. If the font does not have AAT tables but does have OpenType tables, they will be used to the extent that the system supports them.

This means that many OpenType fonts for Western or Middle Eastern scripts can be used without modification on Mac OS X 10.5, but South Asian scripts such as Thai and Devanagari cannot. These require AAT tables for proper layout.

## AAT Layout

[edit]

This section does not cite any sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (November 2009) (Learn how and when to remove this message)

|

AAT requires the text to be turned entirely into glyphs before text layout occurs. Operations on the text take place entirely within the glyph layer.

The core table used in the AAT layout process is the "morx" table. This table is divided into a series of chains, each further divided into subtables. The chains and subtables are processed in order. When each subtable is encountered, the layout engine compares flags in the subtable against control flags, generally derived from user settings. This determines whether or not the subtable is processed.

The set of available features in the font is made accessible to the user via the "feat" table. This table provides pointers to the localizable strings that can be used to describe a feature to the end user and the appropriate flags to send to the text engine if the feature is selected. Features can be made invisible to the user by the simple expedient of not including entries in the "feat" table for them. Apple uses this approach, for example, to support required ligatures.[5]

Subtables may perform non-contextual glyph substitutions, contextual glyph substitutions, glyph rearrangements, glyph insertions, and ligature formation.[6] Contextual actions are sensitive to the surrounding text. They can be used, for example, to automatically turn an s into a medial s anywhere in a word except at its end.

The "morx" subtables for non-contextual glyph substitutions are simple mapping tables between the glyph substituted and its substitute. The others all involve the use of finite-state machines.

For the purposes of processing the finite-state machine, glyphs are organized into classes. A class may be small, containing only a single glyph (for something like ligature formation), or it may include dozens glyphs or even more. A special class is automatically defined for any glyph not included in any of the explicit classes. Special classes are also available for the end of the glyph stream and glyphs deleted from the glyph stream.

Beginning with a start-of-text state, the layout engine parses the text, glyph by glyph. Depending on its current state and the class of the glyph it encounters, it will switch to a new state and possibly perform an appropriate action. The process continues until the glyph stream is exhausted.

The use of finite-state machines allows "morx" tables to be relatively small and to be processed relatively quickly. They also provide considerable flexibility. Inasmuch, however, as Apple's font tools require the generation of "morx" tables via raw state table information, they can be difficult to produce and debug. The font designer is also responsible for making sure that "morx" subtables are ordered correctly for the desired effect.

AAT operates entirely with glyphs and never with characters, so all the layout information necessary for producing the proper display resides within the font itself. This allows fonts to be added for new scripts without requiring any specific support from the OS. Third parties can produce fonts for scripts not officially supported by Apple, and they will work with macOS. On the other hand, this also means that every font for a given script requires its own copy of the script's shaping information in its own "morx" tables.

Other AAT tables (or AAT-specific extensions to standard TrueType tables) allow for context-sensitive kerning, justification, and ligature splitting. AAT also supports variation fonts,[7] in which a font's shape can vary depending on a scaled value supplied by the user. Variation fonts are similar to Adobe's defunct Multiple master fonts, where the endpoints are defined and any medial value is valid. With this, the user can then drag sliders in the user interface to make glyphs taller or shorter, to make them fatter or thinner, to increase or decrease the size of the serifs, and the like, all independently of one another. Glyphs may even have their fundamental shapes radically altered.[8] Before OpenType introduced Font Variation in September 2016, there is nothing like this in OpenType.

Other AAT tables can also have point-size dependent effects;[7] for example, at 12 points, the horizontal and vertical strokes can be of similar width, but at 300 points, the stroke width variation could be quite great.

In practice, few AAT fonts use any features of the technology other than those available through the "morx" table. Zapfino, Hoefler Text, and Skia are fonts that ship with macOS that illustrate a variety of AAT's capabilities.

## AAT for Indic scripts

[edit]

For Indic scripts, the only features that are necessary are glyph reordering and substitution; AAT supports both of these. As noted above, OpenType fonts for Indic scripts require AAT tables to be added before they will function properly on macOS. However, this applies only to software dependent on the system support of OpenType. Programs that provide their own implementation of OpenType will render Indic properly with OpenType fonts. (They may, however, not render Indic fonts with AAT tables correctly.)

Mac OS X 10.5 shipped with fonts for Devanagari, Gurmukhi, Gujarati, Thai, Tibetan, and Tamil. Fonts for other Indic scripts were included in later versions of macOS and iOS, as well as being available from third parties.

## See also

[edit]

* Apple typography
* Graphite (SIL) technology on MS Windows and Linux
* List of typographic features
* XeTeX

## References

[edit]

1. ^ "Layout Engine - ICU User Guide".
2. ^ "HarfBuzz 2.0 Released for Advancing Open-Source Text Shaping". Phoronix. 19 October 2018.
3. ^ "Language Tag Table". Apple Inc.
4. ^ "Anchor Point Table". Apple Inc.
5. ^ Apple Developer. (n.d.). TrueType Reference Manual - Chapter 6: Introduction to AAT. Retrieved May 2, 2025, from [1](https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6AATIntro.html)
6. ^ "About Apple Advanced Typography Fonts". Apple Inc.
7. ^ a b "TrueType Reference Manual - The 'fvar' table". Apple Inc. Archived from the original on 4 June 2014.
8. ^ "TrueType Reference Manual - The 'gvar' table". Apple Inc. Archived from the original on 4 June 2014.

## External links

[edit]

* About Apple Advanced Typography Fonts, Apple's developer documentation
* "Font tools". Archived from the original on 14 January 2010. \- a set of command-line tools to work with fonts
* "Advanced Typography with Mac OS X" (PDF). Archived from the original (PDF) on 4 October 2005. (in PDF format)
* An example of an AAT table
* Fontforge documentation
* Discussion on AAT used in Persian fonts

* v
* t
* e

macOS

* History
* Architecture
* Built-in apps
* Server
* Software

Versions|

| Mac OS X|

* Server 1.0
* Public Beta
* 10.0 Cheetah
* 10.1 Puma
* 10.2 Jaguar
* 10.3 Panther
* 10.4 Tiger
* 10.5 Leopard
* 10.6 Snow Leopard

|

OS X|

* 10.7 Lion
* 10.8 Mountain Lion
* 10.9 Mavericks
* 10.10 Yosemite
* 10.11 El Capitan

macOS|

* 10.12 Sierra
* 10.13 High Sierra
* 10.14 Mojave
* 10.15 Catalina
* 11 Big Sur
* 12 Monterey
* 13 Ventura
* 14 Sonoma
* 15 Sequoia
* 26 Tahoe

Predecessors|

* Classic Mac OS
* NeXTSTEP
* Rhapsody

Applications|

| Core
applications|

* App Store
* Automator
* Calculator
* Calendar
* Chess
* Contacts
* Control Center
* Dictionary
* DVD Player
* FaceTime
* Finder
* Game Center
* Grapher
* Home
* Launchpad
* Mail
* Messages
* News
* Music
* Notes
* Notification Center
* Podcasts
* Photo Booth
* Photos
* Preview
* QuickTime Player
* Reminders
* Safari
* version history
* Shortcuts
* Siri
* Stickies
* TextEdit
* Time Machine

|

Developer
Tools|

| Xcode|

* Instruments
* FileMerge

|

Former|

* Interface Builder
* Dashcode
* Quartz Composer

Former|

* Dashboard
* Front Row
* iChat
* iPhoto
* iSync
* iTunes
* history
* Sherlock

Utilities|

* Activity Monitor
* AirPort Utility
* Archive Utility
* Audio MIDI Setup
* Bluetooth File Exchange
* Boot Camp
* ColorSync
* Configurator
* Console
* Crash Reporter
* Digital Color Meter
* Directory Utility
* DiskImageMounter
* Disk Utility
* Font Book
* Help Viewer
* Image Capture
* Installer
* Keychain Access
* Migration Assistant
* Script Editor
* System Settings
* System Information
* Terminal
* Universal Access
* VoiceOver

Discontinued|

* Grab
* Network Utility
* ODBC Administrator
* Remote Install Mac OS X
* Software Update

Technologies,
user interface|

* AirDrop
* AppKit
* Apple File System
* Apple menu
* Apple Push Notification service
* AppleScript
* Aqua
* Audio Units
* AVFoundation
* Bonjour
* Bundle
* CloudKit
* Cocoa
* ColorSync
* Command key
* Core Animation
* Core Audio
* Core Data
* Core Foundation
* Core Image
* Core OpenGL
* Core Text
* Core Video
* CUPS
* Cover Flow
* Darwin
* Dock
* FileVault
* Fonts
* Foundation
* Gatekeeper
* Grand Central Dispatch
* icns
* iCloud
* Kernel panic
* Keychain
* launchd
* Liquid Glass
* Mach-O
* Menu extra
* Metal
* Mission Control
* Night Shift
* OpenCL
* Option key
* Preference Pane
* Property list
* Quartz
* Quick Look
* Rosetta
* Smart Folders
* Speakable items
* Spotlight
* Stacks
* System Integrity Protection
* Uniform Type Identifier
* Universal binary
* WebKit
* XNU
* XQuartz

Deprecated|

* HFS+

Discontinued|

* ATSUI
* BootX
* Brushed metal
* Carbon
* Classic Environment
* Inkwell
* QuickTime
* Spaces
* Xgrid

* Italics denote upcoming products.
*  Category

*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template