Preparing search index...

    Class FontFamilyEntry

    Represents a single entry in a FontFamily, mapping a Font asset to a style (weight + italic).

    Index

    Properties

    Methods

    Properties

    font: Font

    The Font asset for this entry.

    italic: boolean

    Whether this entry is italic.

    weight: number

    The font weight (e.g. 400 for Regular, 700 for Bold).

    Methods

    • Creates a new FontFamilyEntry with default values.

      Returns FontFamilyEntry

      //@input Asset.Font fontRegular

      var entry = FontFamilyEntry.create();
      entry.font = script.fontRegular;
      entry.weight = 400;
      entry.italic = false;