IFClite TypeScript API
    Preparing search index...

    Interface DXFText

    One single-line TEXT entity of a DXFTextLayer.

    interface DXFText {
        direction?: Point2D;
        hAlign?: "left" | "right" | "center";
        height: number;
        keepUpright?: boolean;
        position: Point2D;
        text: string;
        vAlign?: "top" | "bottom" | "middle" | "baseline";
    }
    Index
    direction?: Point2D

    Baseline direction in drawing space (default +x). The written angle is measured after coordinateTransform, so text keeps its direction through a flip or rotation of the output frame.

    hAlign?: "left" | "right" | "center"
    height: number

    Text height in output units (metres).

    keepUpright?: boolean

    Turn the text half a turn when it would otherwise read upside down in the output frame (y up). Default false.

    position: Point2D

    Alignment point, in drawing space.

    text: string
    vAlign?: "top" | "bottom" | "middle" | "baseline"