Houdini 20.5 Nodes Copernicus nodes

Font Copernicus node

Rasterizes text onto a layer from Type 1, TrueType, and OpenType fonts.

On this page

This node lets you add text to a layer. Houdini automatically scans your system and user font directories for compatible fonts and displays them in the Font parameter. The Font COP is Unicode compatible and can draw any glyph from a Unicode font.

Note

The text is placed in world space (at the origin by default) facing the z-axis. You can use the Match Camera COP to return the input image to this location if you want the text to be placed in image space. You can also use the Match Camera after the Font COP to then restore the original layer’s transform.

Parameters

Font

The font to use for drawing the text.

This parameter lists all known system fonts by default. You can browse for a specific font file if it’s not listed.

Text

The text to generate.

Output Type

The output type of the node.

Mask

Output the rasterized font as a mask.

SDF

Output the rasterized font as a signed distance field.

Horizontal Alignment

The horizontal alignment of the text around the origin.

Left

The beginning of the text aligns with the x-coordinate. For example, if Translate is (0.5,0), then the left-side of the text is flush against the 0.5 x-coordinate.

Center

The middle of the text aligns with the x-coordinate. For example, if Translate is (0.5,0), then the center of the text is at the 0.5 x-coordinate.

Vertical Alignment

The vertical alignment of the text around the origin.

First Line

The bottom of the text’s first line aligns with the y-coordinate. For example, if Translate is (0,0.5), then the bottom of the text’s first line is flush against the 0.5 y-coordinate.

Top

The top of the text aligns with the y-coordinate. For example, if Translate is (0,0.5), then the top of the text’s first line is flush against the 0.5 y-coordinate.

Middle

The middle of the text aligns with the y-coordinate. For example, if Translate is (0,0.5), then the center of the text is at the 0.5 y-coordinate.

Bottom

The bottom of the text aligns with the y-coordinate. For example, if Translate is (0,0.5), then the bottom of the text’s last line is flush against the 0.5 y-coordinate.

Include Descender in Vertical Alignment

Sets the vertical alignment baseline to the descender of the text, rather than the text’s baseline.

The baseline is the line that letters sit on. A descender is the portion of a letter that extends below the text’s baseline (for example, the stem of a lowercase p).

Font Size

The size of the font. The Scale parameter is applied on top of this value.

Translate

The origin of the text along the world x- and y-axes.

Rotate Z

The rotation of the text about the world z-axis.

Scale

The amount to scale factors along the x- and y-axes. This value is applied on top of the Font Size parameter value.

Tracking

The amount of space between characters in the x-direction (left and right).

Leading

The amount of space between characters in the y-direction (up and down).

Note

This parameter takes effect when you have multiple lines of text.

Oblique Angle

The amount of slant (in degrees) to apply to the text.

Level of Detail

The number of points in polygonal fonts.

Inputs

size_ref

A representative layer that determines the size of the output image and controls the metadata.

Note

The text remains in world space even if the size_ref is in a different space.

Outputs

font

The mono layer with the rasterized font. The Output Type parameter determines the type.

id

The ID layer that corresponds to the textindex attribute, which contains the offset (counted in code points) into the string.

See also

Copernicus nodes