Skip to content

API reference / Common / Engine types / TextAutoFit

Type Alias: TextAutoFit ​

ts
type TextAutoFit = 
  | "none"
  | {
  normal: {
     fontScale: number | null;
     lineSpaceReduction: number | null;
  };
}
  | "shape";

The frame/text fit negotiation (a:noAutofit / a:normAutofit / a:spAutoFit).