Studio Yotsuba
Back to Node List

Text Rasterize

text_rasterize

Final text render node. Rasterizes text or a prebuilt text layout into an image, with optional outline rendering

Reviewed
Guide available

Input Ports

NameTypeDescription
Layout
layout
TextLayout
Optional text layout input. When connected, it overrides text and font layout parameters.
Text
text
Text
Optional text input. Falls back to the text parameter when not connected.
Color
color
Color
Optional text color input. Falls back to the color parameter when not connected.
Outline Color
outline_color
Color
Optional outline color input. Falls back to the outline color parameter.

Output Ports

NameTypeDescription
Image
output
Image
Rasterized text image

Parameters

NameTypeDefaultRangeDescription / Options
Text
text
Text
PixPipeline—

Fallback text used when the Text input is not connected

Source Mode
source_mode
Enum
SystemFamily—

How the font is resolved for rasterization

  • SystemFamilySystemFamily
    Use a font family already available on this PC
  • FontFileFontFile
    Load a local TTF/OTF/TTC file for this process and rasterize immediately
Family Name
family_name
Text
Segoe UI—

System family name, or an optional override when using a font file

Font File
font_path
FilePath
——

Local TTF / OTF / TTC file path

Fallback Family
fallback_family
Text
Arial—

Fallback family used when the requested font cannot be resolved exactly

Pixel Size
pixel_size
Int
244–256

Font size in pixels

Tracking
tracking
Int
0-16–64

Additional pixel spacing between glyphs

Line Height
line_height
Float
10.5–3 / step 0.05

Line height multiplier based on the font metrics

Padding
padding
Int
20–64

Transparent padding around the rasterized text

Fill Enabled
fill_enabled
Bool
true—

Whether to render the text fill

Align
align
Enum
Left—

Horizontal alignment inside the auto-sized text bounds

  • LeftLeft
  • CenterCenter
  • RightRight
Antialias
antialias
Enum
Gray—

Glyph smoothing mode

  • PixelPixel
    Disable antialiasing for hard-edged glyphs
  • GrayGray
    Use grayscale antialiasing before thresholding
Outline Enabled
outline_enabled
Bool
false—

Render an outline around the text

Outline Width
outline_width
Int
10–16

Outline width in pixels

Outline Color
outline_color
Color
[0,0,0,1]—

Fallback outline color used when the Outline Color input is not connected

Crisp Edges
crisp_edges
Bool
true—

Prefer harder dot-like edges and a square outline expansion

Pixel Perfect Cleanup
pp_cleanup
Bool
false—

Remove L-corner pixels from the generated outline after rasterization

Cleanup Side
pp_cleanup_side
Enum
Outer—

Which side of the text outline should receive pixel-perfect cleanup

  • InnerInner
    Remove inner-edge L corners
  • OuterOuter
    Remove outer-edge L corners
Threshold
threshold
Float
0.150–1 / step 0.01

Alpha threshold applied after glyph rasterization

Color
color
Color
[1,1,1,1]—

Fallback text color used when the Color input is not connected

Overview

The primary text-rendering node that draws text as a pixel-art image. Font, size, fill, and outline are all handled here. It is the endpoint for anything that needs text, including score displays, title logos, and dialogue boxes.

Usage tips

  • The minimal setup is text_input → text_rasterize. For pixel art, disable antialias or binarize with threshold; specifying a bitmap-style font through font_path gives the cleanest result.
  • Route through text_layout only when inserting per-character effects: text_layout → text_reveal_by_glyph, for example, → text_rasterize (layout input).
  • When layout is connected, font parameters are ignored because layout has already resolved them.

Related nodes

  • text_input — supplies the text
  • text_layout / text_reveal_by_glyph / text_animate_by_glyph — per-character effects
  • text_outline — compatibility wrapper with outline defaults
  • pixel_cleanup — cleans artifacts after rasterization

Priority rules

  • When layout is connected, the input TextLayout takes priority for rasterization.
  • In that case, these layout-related parameters are not read:
    • text
    • source_mode
    • family_name
    • font_path
    • fallback_family
    • pixel_size
    • tracking
    • line_height
    • align
  • padding / fill_enabled / antialias / threshold / color remain active with a layout input.
  • Outline parameters beginning with outline_enabled also remain active with a layout input.

Technical details

  • The font binary itself is not embedded in a project, template, or export.
  • A referenced local font is converted to an Image on the spot.
  • SystemFamily lets you choose from fonts installed on the computer.
  • FontFile temporarily loads a local TTF / OTF / TTC and renders it.
  • If the specified font cannot be resolved exactly, the node tries fallback_family.
  • Fill and outline are drawn together at the final glyph placements after reveal or animation on a TextLayout.
  • TextOutline is a compatibility wrapper around the same render engine; Text Rasterize is intended as the canonical final bake.

Examples

[Text Input] -> [Text Rasterize] -> [Preview]
[Color RGB] -> [Text Rasterize]
[Text Input] -> [Text Layout] -> [Text Rasterize] -> [Preview]
[Text Input] -> [Text Layout] -> [Text Animate By Glyph] -> [Text Rasterize] -> [Preview]
[Text Input] -> [Text Layout] -> [Text Rasterize]
[Color RGB] ------------------------------^
[Color RGB] ------------------------------(outline_color)
Back to Node List