EmojiFont, EmojiCheck: OTL_FeatureTag lives in UnityEngine.TextCore; kerning read from the serialized m_enableKerning
Compiles (Unity 6000.3.24f1 batchmode). Fixes the previous commit, which did not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bd78401967
commit
6d2d52c529
2 changed files with 4 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ using TMPro;
|
|||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TextCore;
|
||||
using UnityEngine.TextCore.LowLevel;
|
||||
|
||||
// The one writer of the emoji font asset and of TMP Settings' emoji routing. The font file is the
|
||||
|
|
@ -94,7 +95,7 @@ public static class EmojiFont
|
|||
var (files, components) = VisitSerializedTexts(text =>
|
||||
{
|
||||
var features = text.fontFeatures.ToList();
|
||||
if (!Enable(features, text.enableKerning)) return false;
|
||||
if (!Enable(features, new SerializedObject(text).FindProperty("m_enableKerning").boolValue)) return false;
|
||||
text.fontFeatures = features;
|
||||
EditorUtility.SetDirty(text);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue