The font features described by OpenType, AAT, and Graphite are not indentical. However, in many cases there is a clear mapping between them.
The OpenType shaping library HarfBuzz supports a mapping between AAT and OpenType features that covers most, but not all of the AAT codes.
The first thing to note is that the AAT codes tend to be more
granular. So, for example, the c2sc OpenType feature, which means
"capitals to small caps," maps to a set of two AAT selectors taken
together: kUpperCaseSmallCapsSelector + kDefaultUpperCaseSelector.
The other thing to note is that there are several AAT codes not currently supported in this mapping. Excluding deprecated code and the codes that are exclusively tied to script-shaping features, they are:
kRequiredLigaturesOnSelectorRequired LigatureskRebusPicturesOnSelectorRebus PictureskDiphthongLigaturesOnSelectorDiphthong LigatureskSquaredLigaturesOnSelectorSquared LigatureskAbbrevSquaredLigaturesOnSelectorSquared Ligatures, AbbreviatedkSymbolLigaturesOnSelectorSymbol LigatureskWordInitialSwashesOnSelectorWord Initial SwasheskWordFinalSwashesOnSelectorWord Final SwasheskShowDiacriticsSelectorShow DiacriticskHideDiacriticsSelectorHide DiacriticskDecomposeDiacriticsSelectorDecompose DiacriticskVerticalFractionsSelectorVertical FractionskNoOrnamentsSelectorNonekDingbatsSelectorDingbatskPiCharactersSelectorPi CharacterskFleuronsSelectorFleuronskDecorativeBordersSelectorDecorative BorderskInternationalSymbolsSelectorInternational SymbolskMathSymbolsSelectorMath SymbolskCharacterAlternativesCharacter AlternativeskDesignLevel1SelectorDesign Level 1kDesignLevel2SelectorDesign Level 2kDesignLevel3SelectorDesign Level 3kDesignLevel4SelectorDesign Level 4kDesignLevel5SelectorDesign Level 5kDisplayTextSelectorDisplay TextkEngravedTextSelectorEngraved TextkIlluminatedCapsSelectorIlluminated CapskTallCapsSelectorTall CapskNoAnnotationSelectorNo AnnotationkBoxAnnotationSelectorBox AnnotationkRoundedBoxAnnotationSelectorRounded Box AnnotationkCircleAnnotationSelectorCircle AnnotationkInvertedCircleAnnotationSelectorInverted Circle AnnotationkParenthesisAnnotationSelectorParenthesis AnnotationkPeriodAnnotationSelectorPeriod AnnotationkRomanNumeralAnnotationSelectorRoman Numeral AnnotationkDiamondAnnotationSelectorDiamond AnnotationkInvertedBoxAnnotationSelectorInverted Box AnnotationkInvertedRoundedBoxAnnotationSelectorInverted Rounded Box Annotation