fontMap 文本渲染一次绘制一个字符,从而丢弃字体的 OpenType 间距调整。
作者: nilvng创建于 2026年7月29日更新于 2026年7月29日
Describe the bug
When rendering a text layer via LottieAnimationView#setFontMap / LottieDrawable#setFontMap (the path taken whenever the layer isn't exported as glyph shapes), text is drawn one character at a time: TextLayer#drawFontTextLine calls fillPaint.measureText(charString) on a single character, draws it, then manually canvas.translate()s by that character's width before drawing the next one.
内容来源: airbnb/lottie-android