TextOptions: Omit<ObjectOptions, "texture"> & {
    bevel?: boolean;
    depth?: number;
    familyFamily?: "OpenSans" | "Helvetiker";
    font?: Font;
    onGeometry?: (obj: Mesh) => void;
}

Options to create a 3D text object. Used by ObjectUtils.createText

Type declaration

  • Optionalbevel?: boolean

    Optional: If the text should have a bevel effect

    false
    
  • Optionaldepth?: number

    Optional: The depth of the text.

    .1
    
  • OptionalfamilyFamily?: "OpenSans" | "Helvetiker"

    If the font is not provided, the familyFamily can be used to load a font from the default list

  • Optionalfont?: Font

    Optional: The font to use for the text. If not provided, the default font will be used

  • OptionalonGeometry?: (obj: Mesh) => void

    Invoked when the font geometry is loaded