12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Linq;
- using System.Collections.Generic;
- using UnityEngine;
- namespace TMPro
- {
-
-
-
- [Serializable]
- public class TMP_FontFeatureTable
- {
-
-
-
- public List<TMP_GlyphPairAdjustmentRecord> glyphPairAdjustmentRecords
- {
- get { return m_GlyphPairAdjustmentRecords; }
- set { m_GlyphPairAdjustmentRecords = value; }
- }
- [SerializeField]
- internal List<TMP_GlyphPairAdjustmentRecord> m_GlyphPairAdjustmentRecords;
-
-
-
- internal Dictionary<uint, TMP_GlyphPairAdjustmentRecord> m_GlyphPairAdjustmentRecordLookupDictionary;
-
-
-
- public TMP_FontFeatureTable()
- {
- m_GlyphPairAdjustmentRecords = new List<TMP_GlyphPairAdjustmentRecord>();
- m_GlyphPairAdjustmentRecordLookupDictionary = new Dictionary<uint, TMP_GlyphPairAdjustmentRecord>();
- }
-
-
-
-
-
-
- public void SortGlyphPairAdjustmentRecords()
- {
-
- if (m_GlyphPairAdjustmentRecords.Count > 0)
- m_GlyphPairAdjustmentRecords = m_GlyphPairAdjustmentRecords.OrderBy(s => s.firstAdjustmentRecord.glyphIndex).ThenBy(s => s.secondAdjustmentRecord.glyphIndex).ToList();
- }
- }
- }
|