Bitbybit Docs
    Preparing search index...

    Class Text3DUrlDto (Advanced.Text3D)

    The text, font URL and placement for advanced.text3d.createWithUrl. It works like the inputs of advanced.text3d.create, with fontUrl naming the font file in place of a shipped family.

    Index

    Constructors

    • Parameters

      • Optionaltext: string
      • OptionalfontUrl: string
      • OptionalfontSize: number
      • Optionalheight: number
      • Optionalrotation: number
      • Optionalorigin: Vector3
      • Optionaldirection: Vector3
      • OptionaloriginAlignment: recAlignmentEnum

      Returns Text3DUrlDto

    Properties

    text: string

    The string to build. Spaces leave a gap but produce no character shape.

    bitbybit.dev
    
    fontUrl: string

    Where to load the font file from. TTF, OTF and WOFF files are read, WOFF2 is not, and outlines that cross themselves can fail to build.

    https://git-cdn.bitbybit.dev/latest/fonts/Tektur/Tektur-Bold.ttf
    
    fontSize: number

    The size of the font in model units, the height of its em square; capital letters come out somewhat smaller.

    1.5
    

    0

    Infinity

    0.1

    height: number

    How far each letter is extruded along direction, in model units. 0 returns flat letter faces instead of solids.

    0.2
    

    0

    Infinity

    0.1

    rotation: number

    Spins the text about direction around the point on origin, in degrees.

    0
    

    0

    Infinity

    15

    origin: Vector3

    The point the anchor chosen by originAlignment is placed on.

    [0, 0, 0]
    
    direction: Vector3

    The direction the letters face and are extruded along; the text lies in the plane perpendicular to it.

    [0, 1, 0]
    
    originAlignment: recAlignmentEnum

    Which point of the text lands on its anchor: left, center or right combined with top, middle or bottom. The offsets come from the text's bounding box, and the bottom positions sit on the baseline.

    centerMiddle