AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.TEXT_OVERFLOW_CLIP

Variable  -  Const

Type

const int

Description

Clip text to given rectangular area.

Text printed within a rectangular area using the RB.Print method, or measured using the RB.PrintMeasure method could potentially overflow the given area. When an overflow happens this flag indicates that the text should be clipped.

This flag can be OR'ed with RB.TEXT_OVERFLOW_WRAP.

Example

void Render()
{
    // Draw text in a rectangular area, clip off any letters that don't fit.
    RB.Print(
        new Rect2i(1001003248),
        Color.white,
        RB.ALIGN_H_CENTER | RB.ALIGN_V_CENTER | RB.TEXT_OVERFLOW_CLIP,
        "This long text might need to be clipped!");
}

See Also

RB.Print
RB.PrintMeasure
RB.TEXT_OVERFLOW_WRAP

See Docs

Features - Text Clipping