Author Topic: Where is kerningDictionary in TMP 2.0.1  (Read 117 times)


  • Newbie
  • *
  • Posts: 10
Where is kerningDictionary in TMP 2.0.1
« on: December 02, 2019, 09:15:13 PM »
Hello, I updated to TMP 2.0.1 and was able to fix most compiler errors in my project, but finding a replacement for TMP_FontAsset.kerningDictionary has been elusive.

Also, font.fontInfo is deprecated in favor of font.faceInfo, but I can't find a way to set font.fontInfo.AtlasWidth that is not deprecated.

Stephan B.

  • Administrator
  • Hero Member
  • *****
  • Posts: 5687
Re: Where is kerningDictionary in TMP 2.0.1
« Reply #1 on: December 04, 2019, 12:29:16 PM »
The structure of font assets has changed as a result of the introduction of the Dynamic SDF system.

The fontInfo as you point out has been deprecated and replaced by the faceInfo which is specific to the typeface. Since the Atlas Texture width and height is not related to the typeface, those properties are now associated with the generation settings and font asset directly and are atlasWidth and atlasHeight.

The Kerning which is one of the many potential features a font may contain is now part of the fontFeatureTable which contains the glyphPairAdjustmentRecords. In time the fontFeatureTable will also contain other features like Ligatures, single glyph adjustment, etc.