reckfellENGINE

TextServerExtension

Base class for custom TextServer implementations (plugins).

On this page
class TextServerExtensionReckfellSharpInherits TextServer

Base class for custom TextServer implementations (plugins).

External TextServer implementations should inherit from this class.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

TextServerExtensionConstructor
# TextServerExtension
C#
public TextServerExtension();

Methods245

_Cleanupvoid
# _Cleanup
C#
public virtual void _Cleanup();

This method is called before text server is unregistered.

_CreateFontRid
# _CreateFont
C#
public virtual Rid _CreateFont();

Creates a new, empty font cache entry resource.

Returns Rid
_CreateFontLinkedVariationRid
# _CreateFontLinkedVariation
C#
public virtual Rid _CreateFontLinkedVariation(Rid fontRid);

Optional, implement if font supports extra spacing or baseline offset. Creates a new variation existing font which is reusing the same glyph cache and font data.

Parameters
NameTypeDefault
fontRidRid—
Returns Rid
_CreateShapedTextRid
# _CreateShapedText
C#
public virtual Rid _CreateShapedText(TextServer.Direction direction, TextServer.Orientation orientation);

Creates a new buffer for complex text layout, with the given direction and orientation.

Parameters
NameTypeDefault
directionTextServer.Direction—
orientationTextServer.Orientation—
Returns Rid
_DrawHexCodeBoxvoid
# _DrawHexCodeBox
C#
public virtual void _DrawHexCodeBox(Rid canvas, long size, Vector2 pos, long index, Color color);

Draws box displaying character hexadecimal code.

Parameters
NameTypeDefault
canvasRid—
sizelong—
posVector2—
indexlong—
colorColor—
_FontClearGlyphsvoid
# _FontClearGlyphs
C#
public virtual void _FontClearGlyphs(Rid fontRid, Vector2I size);

Removes all rendered glyph information from the cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
_FontClearKerningMapvoid
# _FontClearKerningMap
C#
public virtual void _FontClearKerningMap(Rid fontRid, long size);

Removes all kerning overrides.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
_FontClearSizeCachevoid
# _FontClearSizeCache
C#
public virtual void _FontClearSizeCache(Rid fontRid);

Removes all font sizes from the cache entry.

Parameters
NameTypeDefault
fontRidRid—
_FontClearSystemFallbackCachevoid
# _FontClearSystemFallbackCache
C#
public virtual void _FontClearSystemFallbackCache();

Frees all automatically loaded system fonts.

_FontClearTexturesvoid
# _FontClearTextures
C#
public virtual void _FontClearTextures(Rid fontRid, Vector2I size);

Removes all textures from font cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
_FontDrawGlyphvoid
# _FontDrawGlyph
C#
public virtual void _FontDrawGlyph(Rid fontRid, Rid canvas, long size, Vector2 pos, long index, Color color, float oversampling);

Draws single glyph into a canvas item at the position, using font_rid at the size size. If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

Parameters
NameTypeDefault
fontRidRid—
canvasRid—
sizelong—
posVector2—
indexlong—
colorColor—
oversamplingfloat—
_FontDrawGlyphOutlinevoid
# _FontDrawGlyphOutline
C#
public virtual void _FontDrawGlyphOutline(Rid fontRid, Rid canvas, long size, long outlineSize, Vector2 pos, long index, Color color, float oversampling);

Draws single glyph outline of size outline_size into a canvas item at the position, using font_rid at the size size. If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

Parameters
NameTypeDefault
fontRidRid—
canvasRid—
sizelong—
outlineSizelong—
posVector2—
indexlong—
colorColor—
oversamplingfloat—
_FontGetAntialiasingTextServer.FontAntialiasing
# _FontGetAntialiasing
C#
public virtual TextServer.FontAntialiasing _FontGetAntialiasing(Rid fontRid);

Returns font anti-aliasing mode.

Parameters
NameTypeDefault
fontRidRid—
Returns TextServer.FontAntialiasing
_FontGetAscentdouble
# _FontGetAscent
C#
public virtual double _FontGetAscent(Rid fontRid, long size);

Returns the font ascent (number of pixels above the baseline).

Parameters
NameTypeDefault
fontRidRid—
sizelong—
Returns double
_FontGetBaselineOffsetdouble
# _FontGetBaselineOffset
C#
public virtual double _FontGetBaselineOffset(Rid fontRid);

Returns extra baseline offset (as a fraction of font height).

Parameters
NameTypeDefault
fontRidRid—
Returns double
_FontGetCharFromGlyphIndexlong
# _FontGetCharFromGlyphIndex
C#
public virtual long _FontGetCharFromGlyphIndex(Rid fontRid, long size, long glyphIndex);

Returns character code associated with glyph_index, or 0 if glyph_index is invalid.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
glyphIndexlong—
Returns long
_FontGetDescentdouble
# _FontGetDescent
C#
public virtual double _FontGetDescent(Rid fontRid, long size);

Returns the font descent (number of pixels below the baseline).

Parameters
NameTypeDefault
fontRidRid—
sizelong—
Returns double
_FontGetDisableEmbeddedBitmapsbool
# _FontGetDisableEmbeddedBitmaps
C#
public virtual bool _FontGetDisableEmbeddedBitmaps(Rid fontRid);

Returns whether the font's embedded bitmap loading is disabled.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontGetEmboldendouble
# _FontGetEmbolden
C#
public virtual double _FontGetEmbolden(Rid fontRid);

Returns font embolden strength.

Parameters
NameTypeDefault
fontRidRid—
Returns double
_FontGetFaceCountlong
# _FontGetFaceCount
C#
public virtual long _FontGetFaceCount(Rid fontRid);

Returns number of faces in the TrueType / OpenType collection.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetFaceIndexlong
# _FontGetFaceIndex
C#
public virtual long _FontGetFaceIndex(Rid fontRid);

Returns an active face index in the TrueType / OpenType collection.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetFixedSizelong
# _FontGetFixedSize
C#
public virtual long _FontGetFixedSize(Rid fontRid);

Returns bitmap font fixed size.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetFixedSizeScaleModeTextServer.FixedSizeScaleMode
# _FontGetFixedSizeScaleMode
C#
public virtual TextServer.FixedSizeScaleMode _FontGetFixedSizeScaleMode(Rid fontRid);

Returns bitmap font scaling mode.

Parameters
NameTypeDefault
fontRidRid—
Returns TextServer.FixedSizeScaleMode
_FontGetGenerateMipmapsbool
# _FontGetGenerateMipmaps
C#
public virtual bool _FontGetGenerateMipmaps(Rid fontRid);

Returns true if font texture mipmap generation is enabled.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontGetGlobalOversamplingdouble
# _FontGetGlobalOversampling
C#
public virtual double _FontGetGlobalOversampling();

Returns the font oversampling factor, shared by all fonts in the TextServer.

Returns double
_FontGetGlyphAdvanceVector2
# _FontGetGlyphAdvance
C#
public virtual Vector2 _FontGetGlyphAdvance(Rid fontRid, long size, long glyph);

Returns glyph advance (offset of the next glyph).

Parameters
NameTypeDefault
fontRidRid—
sizelong—
glyphlong—
Returns Vector2
_FontGetGlyphContoursReckfell.Collections.Dictionary
# _FontGetGlyphContours
C#
public virtual Reckfell.Collections.Dictionary _FontGetGlyphContours(Rid fontRid, long size, long index);

Returns outline contours of the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
indexlong—
Returns Reckfell.Collections.Dictionary
_FontGetGlyphIndexlong
# _FontGetGlyphIndex
C#
public virtual long _FontGetGlyphIndex(Rid fontRid, long size, long @char, long variationSelector);

Returns the glyph index of a char, optionally modified by the variation_selector.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
charlong—
variationSelectorlong—
Returns long
_FontGetGlyphListint[]
# _FontGetGlyphList
C#
public virtual int[] _FontGetGlyphList(Rid fontRid, Vector2I size);

Returns list of rendered glyphs in the cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
Returns int[]
_FontGetGlyphOffsetVector2
# _FontGetGlyphOffset
C#
public virtual Vector2 _FontGetGlyphOffset(Rid fontRid, Vector2I size, long glyph);

Returns glyph offset from the baseline.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
Returns Vector2
_FontGetGlyphSizeVector2
# _FontGetGlyphSize
C#
public virtual Vector2 _FontGetGlyphSize(Rid fontRid, Vector2I size, long glyph);

Returns size of the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
Returns Vector2
_FontGetGlyphTextureIdxlong
# _FontGetGlyphTextureIdx
C#
public virtual long _FontGetGlyphTextureIdx(Rid fontRid, Vector2I size, long glyph);

Returns index of the cache texture containing the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
Returns long
_FontGetGlyphTextureRidRid
# _FontGetGlyphTextureRid
C#
public virtual Rid _FontGetGlyphTextureRid(Rid fontRid, Vector2I size, long glyph);

Returns resource ID of the cache texture containing the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
Returns Rid
_FontGetGlyphTextureSizeVector2
# _FontGetGlyphTextureSize
C#
public virtual Vector2 _FontGetGlyphTextureSize(Rid fontRid, Vector2I size, long glyph);

Returns size of the cache texture containing the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
Returns Vector2
_FontGetGlyphUVRectRect2
# _FontGetGlyphUVRect
C#
public virtual Rect2 _FontGetGlyphUVRect(Rid fontRid, Vector2I size, long glyph);

Returns rectangle in the cache texture containing the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
Returns Rect2
_FontGetHintingTextServer.Hinting
# _FontGetHinting
C#
public virtual TextServer.Hinting _FontGetHinting(Rid fontRid);

Returns the font hinting mode. Used by dynamic fonts only.

Parameters
NameTypeDefault
fontRidRid—
Returns TextServer.Hinting
_FontGetKeepRoundingRemaindersbool
# _FontGetKeepRoundingRemainders
C#
public virtual bool _FontGetKeepRoundingRemainders(Rid fontRid);

Returns glyph position rounding behavior. If set to true, when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontGetKerningVector2
# _FontGetKerning
C#
public virtual Vector2 _FontGetKerning(Rid fontRid, long size, Vector2I glyphPair);

Returns kerning for the pair of glyphs.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
glyphPairVector2I—
Returns Vector2
_FontGetKerningListReckfell.Collections.Array<Vector2I>
# _FontGetKerningList
C#
public virtual Reckfell.Collections.Array<Vector2I> _FontGetKerningList(Rid fontRid, long size);

Returns list of the kerning overrides.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
Returns Reckfell.Collections.Array<Vector2I>
_FontGetLanguageSupportOverridebool
# _FontGetLanguageSupportOverride
C#
public virtual bool _FontGetLanguageSupportOverride(Rid fontRid, string language);

Returns true if support override is enabled for the language.

Parameters
NameTypeDefault
fontRidRid—
languagestring—
Returns bool
_FontGetLanguageSupportOverridesstring[]
# _FontGetLanguageSupportOverrides
C#
public virtual string[] _FontGetLanguageSupportOverrides(Rid fontRid);

Returns list of language support overrides.

Parameters
NameTypeDefault
fontRidRid—
Returns string[]
_FontGetMsdfPixelRangelong
# _FontGetMsdfPixelRange
C#
public virtual long _FontGetMsdfPixelRange(Rid fontRid);

Returns the width of the range around the shape between the minimum and maximum representable signed distance.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetMsdfSizelong
# _FontGetMsdfSize
C#
public virtual long _FontGetMsdfSize(Rid fontRid);

Returns source font size used to generate MSDF textures.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetNamestring
# _FontGetName
C#
public virtual string _FontGetName(Rid fontRid);

Returns font family name.

Parameters
NameTypeDefault
fontRidRid—
Returns string
_FontGetOpentypeFeatureOverridesReckfell.Collections.Dictionary
# _FontGetOpentypeFeatureOverrides
C#
public virtual Reckfell.Collections.Dictionary _FontGetOpentypeFeatureOverrides(Rid fontRid);

Returns font OpenType feature set override.

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Dictionary
_FontGetOtNameStringsReckfell.Collections.Dictionary
# _FontGetOtNameStrings
C#
public virtual Reckfell.Collections.Dictionary _FontGetOtNameStrings(Rid fontRid);

Returns Reckfell.Collections.Dictionary with OpenType font name strings (localized font names, version, description, license information, sample text, etc.).

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Dictionary
_FontGetOversamplingdouble
# _FontGetOversampling
C#
public virtual double _FontGetOversampling(Rid fontRid);

Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See Viewport.Oversampling. This value doesn't override the [code skip-lint]oversampling parameter of [code skip-lint]draw_* methods. Used by dynamic fonts only.

Parameters
NameTypeDefault
fontRidRid—
Returns double
_FontGetPaletteColorsColor[]
# _FontGetPaletteColors
C#
public virtual Color[] _FontGetPaletteColors(Rid fontRid, long index);

Returns the array in the predefined color palette at index. Palette contains all colors used to render font glyphs. Each palette has the same number of colors. Colors can be overridden using TextServerExtension._FontSetPaletteCustomColors.

Parameters
NameTypeDefault
fontRidRid—
indexlong—
Returns Color[]
_FontGetPaletteCountlong
# _FontGetPaletteCount
C#
public virtual long _FontGetPaletteCount(Rid fontRid);

Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetPaletteCustomColorsColor[]
# _FontGetPaletteCustomColors
C#
public virtual Color[] _FontGetPaletteCustomColors(Rid fontRid);

Returns array of custom colors to override predefined palette.

Parameters
NameTypeDefault
fontRidRid—
Returns Color[]
_FontGetPaletteNamestring
# _FontGetPaletteName
C#
public virtual string _FontGetPaletteName(Rid fontRid, long index);

Returns the name of the predefined color palette at index. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.

Parameters
NameTypeDefault
fontRidRid—
indexlong—
Returns string
_FontGetScaledouble
# _FontGetScale
C#
public virtual double _FontGetScale(Rid fontRid, long size);

Returns scaling factor of the color bitmap font.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
Returns double
_FontGetScriptSupportOverridebool
# _FontGetScriptSupportOverride
C#
public virtual bool _FontGetScriptSupportOverride(Rid fontRid, string script);

Returns true if support override is enabled for the script.

Parameters
NameTypeDefault
fontRidRid—
scriptstring—
Returns bool
_FontGetScriptSupportOverridesstring[]
# _FontGetScriptSupportOverrides
C#
public virtual string[] _FontGetScriptSupportOverrides(Rid fontRid);

Returns list of script support overrides.

Parameters
NameTypeDefault
fontRidRid—
Returns string[]
_FontGetSizeCacheInfoReckfell.Collections.Array<Reckfell.Collections.Dictionary>
# _FontGetSizeCacheInfo
C#
public virtual Reckfell.Collections.Array<Reckfell.Collections.Dictionary> _FontGetSizeCacheInfo(Rid fontRid);

Returns font cache information, each entry contains the following fields: Vector2i size_px - font size in pixels, float viewport_oversampling - viewport oversampling factor, int glyphs - number of rendered glyphs, int textures - number of used textures, int textures_size - size of texture data in bytes.

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Array<Reckfell.Collections.Dictionary>
_FontGetSizeCacheListReckfell.Collections.Array<Vector2I>
# _FontGetSizeCacheList
C#
public virtual Reckfell.Collections.Array<Vector2I> _FontGetSizeCacheList(Rid fontRid);

Returns list of the font sizes in the cache. Each size is Vector2I with font size and outline size.

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Array<Vector2I>
_FontGetSpacinglong
# _FontGetSpacing
C#
public virtual long _FontGetSpacing(Rid fontRid, TextServer.SpacingType spacing);

Returns the spacing for spacing in pixels (not relative to the font size).

Parameters
NameTypeDefault
fontRidRid—
spacingTextServer.SpacingType—
Returns long
_FontGetStretchlong
# _FontGetStretch
C#
public virtual long _FontGetStretch(Rid fontRid);

Returns font stretch amount, compared to a normal width. A percentage value between 50% and 200%.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetStyleTextServer.FontStyle
# _FontGetStyle
C#
public virtual TextServer.FontStyle _FontGetStyle(Rid fontRid);

Returns font style flags.

Parameters
NameTypeDefault
fontRidRid—
Returns TextServer.FontStyle
_FontGetStyleNamestring
# _FontGetStyleName
C#
public virtual string _FontGetStyleName(Rid fontRid);

Returns font style name.

Parameters
NameTypeDefault
fontRidRid—
Returns string
_FontGetSubpixelPositioningTextServer.SubpixelPositioning
# _FontGetSubpixelPositioning
C#
public virtual TextServer.SubpixelPositioning _FontGetSubpixelPositioning(Rid fontRid);

Returns font subpixel glyph positioning mode.

Parameters
NameTypeDefault
fontRidRid—
Returns TextServer.SubpixelPositioning
_FontGetSupportedCharsstring
# _FontGetSupportedChars
C#
public virtual string _FontGetSupportedChars(Rid fontRid);

Returns a string containing all the characters available in the font.

Parameters
NameTypeDefault
fontRidRid—
Returns string
_FontGetSupportedGlyphsint[]
# _FontGetSupportedGlyphs
C#
public virtual int[] _FontGetSupportedGlyphs(Rid fontRid);

Returns an array containing all glyph indices in the font.

Parameters
NameTypeDefault
fontRidRid—
Returns int[]
_FontGetTextureCountlong
# _FontGetTextureCount
C#
public virtual long _FontGetTextureCount(Rid fontRid, Vector2I size);

Returns number of textures used by font cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
Returns long
_FontGetTextureImageImage
# _FontGetTextureImage
C#
public virtual Image _FontGetTextureImage(Rid fontRid, Vector2I size, long textureIndex);

Returns font cache texture image data.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
textureIndexlong—
Returns Image
_FontGetTextureOffsetsint[]
# _FontGetTextureOffsets
C#
public virtual int[] _FontGetTextureOffsets(Rid fontRid, Vector2I size, long textureIndex);

Returns array containing glyph packing data.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
textureIndexlong—
Returns int[]
_FontGetTransformTransform2D
# _FontGetTransform
C#
public virtual Transform2D _FontGetTransform(Rid fontRid);

Returns 2D transform applied to the font outlines.

Parameters
NameTypeDefault
fontRidRid—
Returns Transform2D
_FontGetUnderlinePositiondouble
# _FontGetUnderlinePosition
C#
public virtual double _FontGetUnderlinePosition(Rid fontRid, long size);

Returns pixel offset of the underline below the baseline.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
Returns double
_FontGetUnderlineThicknessdouble
# _FontGetUnderlineThickness
C#
public virtual double _FontGetUnderlineThickness(Rid fontRid, long size);

Returns thickness of the underline in pixels.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
Returns double
_FontGetUsedPalettelong
# _FontGetUsedPalette
C#
public virtual long _FontGetUsedPalette(Rid fontRid);

Returns used palette index.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontGetVariationCoordinatesReckfell.Collections.Dictionary
# _FontGetVariationCoordinates
C#
public virtual Reckfell.Collections.Dictionary _FontGetVariationCoordinates(Rid fontRid);

Returns variation coordinates for the specified font cache entry.

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Dictionary
_FontGetWeightlong
# _FontGetWeight
C#
public virtual long _FontGetWeight(Rid fontRid);

Returns weight (boldness) of the font. A value in the 100...999 range, normal font weight is 400, bold font weight is 700.

Parameters
NameTypeDefault
fontRidRid—
Returns long
_FontHasCharbool
# _FontHasChar
C#
public virtual bool _FontHasChar(Rid fontRid, long @char);

Returns true if a Unicode char is available in the font.

Parameters
NameTypeDefault
fontRidRid—
charlong—
Returns bool
_FontIsAllowSystemFallbackbool
# _FontIsAllowSystemFallback
C#
public virtual bool _FontIsAllowSystemFallback(Rid fontRid);

Returns true if system fonts can be automatically used as fallbacks.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontIsForceAutohinterbool
# _FontIsForceAutohinter
C#
public virtual bool _FontIsForceAutohinter(Rid fontRid);

Returns true if auto-hinting is supported and preferred over font built-in hinting.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontIsLanguageSupportedbool
# _FontIsLanguageSupported
C#
public virtual bool _FontIsLanguageSupported(Rid fontRid, string language);

Returns true if the font supports the given language (as a ISO 639 code).

Parameters
NameTypeDefault
fontRidRid—
languagestring—
Returns bool
_FontIsModulateColorGlyphsbool
# _FontIsModulateColorGlyphs
C#
public virtual bool _FontIsModulateColorGlyphs(Rid fontRid);

Returns true if color modulation is applied when drawing the font's colored glyphs.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontIsMultichannelSignedDistanceFieldbool
# _FontIsMultichannelSignedDistanceField
C#
public virtual bool _FontIsMultichannelSignedDistanceField(Rid fontRid);

Returns true if glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data.

Parameters
NameTypeDefault
fontRidRid—
Returns bool
_FontIsScriptSupportedbool
# _FontIsScriptSupported
C#
public virtual bool _FontIsScriptSupported(Rid fontRid, string script);

Returns true if the font supports the given script (as a ISO 15924 code).

Parameters
NameTypeDefault
fontRidRid—
scriptstring—
Returns bool
_FontRemoveGlyphvoid
# _FontRemoveGlyph
C#
public virtual void _FontRemoveGlyph(Rid fontRid, Vector2I size, long glyph);

Removes specified rendered glyph information from the cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
_FontRemoveKerningvoid
# _FontRemoveKerning
C#
public virtual void _FontRemoveKerning(Rid fontRid, long size, Vector2I glyphPair);

Removes kerning override for the pair of glyphs.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
glyphPairVector2I—
_FontRemoveLanguageSupportOverridevoid
# _FontRemoveLanguageSupportOverride
C#
public virtual void _FontRemoveLanguageSupportOverride(Rid fontRid, string language);

Remove language support override.

Parameters
NameTypeDefault
fontRidRid—
languagestring—
_FontRemoveScriptSupportOverridevoid
# _FontRemoveScriptSupportOverride
C#
public virtual void _FontRemoveScriptSupportOverride(Rid fontRid, string script);

Removes script support override.

Parameters
NameTypeDefault
fontRidRid—
scriptstring—
_FontRemoveSizeCachevoid
# _FontRemoveSizeCache
C#
public virtual void _FontRemoveSizeCache(Rid fontRid, Vector2I size);

Removes specified font size from the cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
_FontRemoveTexturevoid
# _FontRemoveTexture
C#
public virtual void _FontRemoveTexture(Rid fontRid, Vector2I size, long textureIndex);

Removes specified texture from the cache entry.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
textureIndexlong—
_FontRenderGlyphvoid
# _FontRenderGlyph
C#
public virtual void _FontRenderGlyph(Rid fontRid, Vector2I size, long index);

Renders specified glyph to the font cache texture.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
indexlong—
_FontRenderRangevoid
# _FontRenderRange
C#
public virtual void _FontRenderRange(Rid fontRid, Vector2I size, long start, long end);

Renders the range of characters to the font cache texture.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
startlong—
endlong—
_FontSetAllowSystemFallbackvoid
# _FontSetAllowSystemFallback
C#
public virtual void _FontSetAllowSystemFallback(Rid fontRid, bool allowSystemFallback);

If set to true, system fonts can be automatically used as fallbacks.

Parameters
NameTypeDefault
fontRidRid—
allowSystemFallbackbool—
_FontSetAntialiasingvoid
# _FontSetAntialiasing
C#
public virtual void _FontSetAntialiasing(Rid fontRid, TextServer.FontAntialiasing antialiasing);

Sets font anti-aliasing mode.

Parameters
NameTypeDefault
fontRidRid—
antialiasingTextServer.FontAntialiasing—
_FontSetAscentvoid
# _FontSetAscent
C#
public virtual void _FontSetAscent(Rid fontRid, long size, double ascent);

Sets the font ascent (number of pixels above the baseline).

Parameters
NameTypeDefault
fontRidRid—
sizelong—
ascentdouble—
_FontSetBaselineOffsetvoid
# _FontSetBaselineOffset
C#
public virtual void _FontSetBaselineOffset(Rid fontRid, double baselineOffset);

Sets extra baseline offset (as a fraction of font height).

Parameters
NameTypeDefault
fontRidRid—
baselineOffsetdouble—
_FontSetDatavoid
# _FontSetData
C#
public virtual void _FontSetData(Rid fontRid, byte[] data);

Sets font source data, e.g contents of the dynamic font source file.

Parameters
NameTypeDefault
fontRidRid—
databyte[]—
_FontSetDescentvoid
# _FontSetDescent
C#
public virtual void _FontSetDescent(Rid fontRid, long size, double descent);

Sets the font descent (number of pixels below the baseline).

Parameters
NameTypeDefault
fontRidRid—
sizelong—
descentdouble—
_FontSetDisableEmbeddedBitmapsvoid
# _FontSetDisableEmbeddedBitmaps
C#
public virtual void _FontSetDisableEmbeddedBitmaps(Rid fontRid, bool disableEmbeddedBitmaps);

If set to true, embedded font bitmap loading is disabled.

Parameters
NameTypeDefault
fontRidRid—
disableEmbeddedBitmapsbool—
_FontSetEmboldenvoid
# _FontSetEmbolden
C#
public virtual void _FontSetEmbolden(Rid fontRid, double strength);

Sets font embolden strength. If strength is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.

Parameters
NameTypeDefault
fontRidRid—
strengthdouble—
_FontSetFaceIndexvoid
# _FontSetFaceIndex
C#
public virtual void _FontSetFaceIndex(Rid fontRid, long faceIndex);

Sets an active face index in the TrueType / OpenType collection.

Parameters
NameTypeDefault
fontRidRid—
faceIndexlong—
_FontSetFixedSizevoid
# _FontSetFixedSize
C#
public virtual void _FontSetFixedSize(Rid fontRid, long fixedSize);

Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used for all font sizes.

Parameters
NameTypeDefault
fontRidRid—
fixedSizelong—
_FontSetFixedSizeScaleModevoid
# _FontSetFixedSizeScaleMode
C#
public virtual void _FontSetFixedSizeScaleMode(Rid fontRid, TextServer.FixedSizeScaleMode fixedSizeScaleMode);

Sets bitmap font scaling mode. This property is used only if fixed_size is greater than zero.

Parameters
NameTypeDefault
fontRidRid—
fixedSizeScaleModeTextServer.FixedSizeScaleMode—
_FontSetForceAutohintervoid
# _FontSetForceAutohinter
C#
public virtual void _FontSetForceAutohinter(Rid fontRid, bool forceAutohinter);

If set to true auto-hinting is preferred over font built-in hinting.

Parameters
NameTypeDefault
fontRidRid—
forceAutohinterbool—
_FontSetGenerateMipmapsvoid
# _FontSetGenerateMipmaps
C#
public virtual void _FontSetGenerateMipmaps(Rid fontRid, bool generateMipmaps);

If set to true font texture mipmap generation is enabled.

Parameters
NameTypeDefault
fontRidRid—
generateMipmapsbool—
_FontSetGlobalOversamplingvoid
# _FontSetGlobalOversampling
C#
public virtual void _FontSetGlobalOversampling(double oversampling);

Sets oversampling factor, shared by all font in the TextServer.

Parameters
NameTypeDefault
oversamplingdouble—
_FontSetGlyphAdvancevoid
# _FontSetGlyphAdvance
C#
public virtual void _FontSetGlyphAdvance(Rid fontRid, long size, long glyph, Vector2 advance);

Sets glyph advance (offset of the next glyph).

Parameters
NameTypeDefault
fontRidRid—
sizelong—
glyphlong—
advanceVector2—
_FontSetGlyphOffsetvoid
# _FontSetGlyphOffset
C#
public virtual void _FontSetGlyphOffset(Rid fontRid, Vector2I size, long glyph, Vector2 offset);

Sets glyph offset from the baseline.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
offsetVector2—
_FontSetGlyphSizevoid
# _FontSetGlyphSize
C#
public virtual void _FontSetGlyphSize(Rid fontRid, Vector2I size, long glyph, Vector2 glSize);

Sets size of the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
glSizeVector2—
_FontSetGlyphTextureIdxvoid
# _FontSetGlyphTextureIdx
C#
public virtual void _FontSetGlyphTextureIdx(Rid fontRid, Vector2I size, long glyph, long textureIdx);

Sets index of the cache texture containing the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
textureIdxlong—
_FontSetGlyphUVRectvoid
# _FontSetGlyphUVRect
C#
public virtual void _FontSetGlyphUVRect(Rid fontRid, Vector2I size, long glyph, Rect2 uVRect);

Sets rectangle in the cache texture containing the glyph.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
glyphlong—
uVRectRect2—
_FontSetHintingvoid
# _FontSetHinting
C#
public virtual void _FontSetHinting(Rid fontRid, TextServer.Hinting hinting);

Sets font hinting mode. Used by dynamic fonts only.

Parameters
NameTypeDefault
fontRidRid—
hintingTextServer.Hinting—
_FontSetKeepRoundingRemaindersvoid
# _FontSetKeepRoundingRemainders
C#
public virtual void _FontSetKeepRoundingRemainders(Rid fontRid, bool keepRoundingRemainders);

Sets glyph position rounding behavior. If set to true, when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.

Parameters
NameTypeDefault
fontRidRid—
keepRoundingRemaindersbool—
_FontSetKerningvoid
# _FontSetKerning
C#
public virtual void _FontSetKerning(Rid fontRid, long size, Vector2I glyphPair, Vector2 kerning);

Sets kerning for the pair of glyphs.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
glyphPairVector2I—
kerningVector2—
_FontSetLanguageSupportOverridevoid
# _FontSetLanguageSupportOverride
C#
public virtual void _FontSetLanguageSupportOverride(Rid fontRid, string language, bool supported);

Adds override for TextServerExtension._FontIsLanguageSupported.

Parameters
NameTypeDefault
fontRidRid—
languagestring—
supportedbool—
_FontSetModulateColorGlyphsvoid
# _FontSetModulateColorGlyphs
C#
public virtual void _FontSetModulateColorGlyphs(Rid fontRid, bool modulate);

If set to true, color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.

Parameters
NameTypeDefault
fontRidRid—
modulatebool—
_FontSetMsdfPixelRangevoid
# _FontSetMsdfPixelRange
C#
public virtual void _FontSetMsdfPixelRange(Rid fontRid, long msdfPixelRange);

Sets the width of the range around the shape between the minimum and maximum representable signed distance.

Parameters
NameTypeDefault
fontRidRid—
msdfPixelRangelong—
_FontSetMsdfSizevoid
# _FontSetMsdfSize
C#
public virtual void _FontSetMsdfSize(Rid fontRid, long msdfSize);

Sets source font size used to generate MSDF textures.

Parameters
NameTypeDefault
fontRidRid—
msdfSizelong—
_FontSetMultichannelSignedDistanceFieldvoid
# _FontSetMultichannelSignedDistanceField
C#
public virtual void _FontSetMultichannelSignedDistanceField(Rid fontRid, bool msdf);

If set to true, glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data. MSDF rendering allows displaying the font at any scaling factor without blurriness, and without incurring a CPU cost when the font size changes (since the font no longer needs to be rasterized on the CPU). As a downside, font hinting is not available with MSDF. The lack of font hinting may result in less crisp and less readable fonts at small sizes.

Parameters
NameTypeDefault
fontRidRid—
msdfbool—
_FontSetNamevoid
# _FontSetName
C#
public virtual void _FontSetName(Rid fontRid, string name);

Sets the font family name.

Parameters
NameTypeDefault
fontRidRid—
namestring—
_FontSetOpentypeFeatureOverridesvoid
# _FontSetOpentypeFeatureOverrides
C#
public virtual void _FontSetOpentypeFeatureOverrides(Rid fontRid, Reckfell.Collections.Dictionary overrides);

Sets font OpenType feature set override.

Parameters
NameTypeDefault
fontRidRid—
overridesReckfell.Collections.Dictionary—
_FontSetOversamplingvoid
# _FontSetOversampling
C#
public virtual void _FontSetOversampling(Rid fontRid, double oversampling);

If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See Viewport.Oversampling. This value doesn't override the [code skip-lint]oversampling parameter of [code skip-lint]draw_* methods. Used by dynamic fonts only.

Parameters
NameTypeDefault
fontRidRid—
oversamplingdouble—
_FontSetPaletteCustomColorsvoid
# _FontSetPaletteCustomColors
C#
public virtual void _FontSetPaletteCustomColors(Rid fontRid, Color[] colors);

Sets array of custom colors to override predefined palette. Set to empty array to reset overrides. Use Color(0, 0, 0, 0), to keep predefined palette color at specific position.

Parameters
NameTypeDefault
fontRidRid—
colorsColor[]—
_FontSetScalevoid
# _FontSetScale
C#
public virtual void _FontSetScale(Rid fontRid, long size, double scale);

Sets scaling factor of the color bitmap font.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
scaledouble—
_FontSetScriptSupportOverridevoid
# _FontSetScriptSupportOverride
C#
public virtual void _FontSetScriptSupportOverride(Rid fontRid, string script, bool supported);

Adds override for TextServerExtension._FontIsScriptSupported.

Parameters
NameTypeDefault
fontRidRid—
scriptstring—
supportedbool—
_FontSetSpacingvoid
# _FontSetSpacing
C#
public virtual void _FontSetSpacing(Rid fontRid, TextServer.SpacingType spacing, long value);

Sets the spacing for spacing to value in pixels (not relative to the font size).

Parameters
NameTypeDefault
fontRidRid—
spacingTextServer.SpacingType—
valuelong—
_FontSetStretchvoid
# _FontSetStretch
C#
public virtual void _FontSetStretch(Rid fontRid, long stretch);

Sets font stretch amount, compared to a normal width. A percentage value between 50% and 200%.

Parameters
NameTypeDefault
fontRidRid—
stretchlong—
_FontSetStylevoid
# _FontSetStyle
C#
public virtual void _FontSetStyle(Rid fontRid, TextServer.FontStyle style);

Sets the font style flags.

Parameters
NameTypeDefault
fontRidRid—
styleTextServer.FontStyle—
_FontSetStyleNamevoid
# _FontSetStyleName
C#
public virtual void _FontSetStyleName(Rid fontRid, string nameStyle);

Sets the font style name.

Parameters
NameTypeDefault
fontRidRid—
nameStylestring—
_FontSetSubpixelPositioningvoid
# _FontSetSubpixelPositioning
C#
public virtual void _FontSetSubpixelPositioning(Rid fontRid, TextServer.SubpixelPositioning subpixelPositioning);

Sets font subpixel glyph positioning mode.

Parameters
NameTypeDefault
fontRidRid—
subpixelPositioningTextServer.SubpixelPositioning—
_FontSetTextureImagevoid
# _FontSetTextureImage
C#
public virtual void _FontSetTextureImage(Rid fontRid, Vector2I size, long textureIndex, Image image);

Sets font cache texture image data.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
textureIndexlong—
imageImage—
_FontSetTextureOffsetsvoid
# _FontSetTextureOffsets
C#
public virtual void _FontSetTextureOffsets(Rid fontRid, Vector2I size, long textureIndex, int[] offset);

Sets array containing glyph packing data.

Parameters
NameTypeDefault
fontRidRid—
sizeVector2I—
textureIndexlong—
offsetint[]—
_FontSetTransformvoid
# _FontSetTransform
C#
public virtual void _FontSetTransform(Rid fontRid, Transform2D transform);

Sets 2D transform, applied to the font outlines, can be used for slanting, flipping, and rotating glyphs.

Parameters
NameTypeDefault
fontRidRid—
transformTransform2D—
_FontSetUnderlinePositionvoid
# _FontSetUnderlinePosition
C#
public virtual void _FontSetUnderlinePosition(Rid fontRid, long size, double underlinePosition);

Sets pixel offset of the underline below the baseline.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
underlinePositiondouble—
_FontSetUnderlineThicknessvoid
# _FontSetUnderlineThickness
C#
public virtual void _FontSetUnderlineThickness(Rid fontRid, long size, double underlineThickness);

Sets thickness of the underline in pixels.

Parameters
NameTypeDefault
fontRidRid—
sizelong—
underlineThicknessdouble—
_FontSetUsedPalettevoid
# _FontSetUsedPalette
C#
public virtual void _FontSetUsedPalette(Rid fontRid, long index);

Sets used palette index.

Parameters
NameTypeDefault
fontRidRid—
indexlong—
_FontSetVariationCoordinatesvoid
# _FontSetVariationCoordinates
C#
public virtual void _FontSetVariationCoordinates(Rid fontRid, Reckfell.Collections.Dictionary variationCoordinates);

Sets variation coordinates for the specified font cache entry.

Parameters
NameTypeDefault
fontRidRid—
variationCoordinatesReckfell.Collections.Dictionary—
_FontSetWeightvoid
# _FontSetWeight
C#
public virtual void _FontSetWeight(Rid fontRid, long weight);

Sets weight (boldness) of the font. A value in the 100...999 range, normal font weight is 400, bold font weight is 700.

Parameters
NameTypeDefault
fontRidRid—
weightlong—
_FontSupportedFeatureListReckfell.Collections.Dictionary
# _FontSupportedFeatureList
C#
public virtual Reckfell.Collections.Dictionary _FontSupportedFeatureList(Rid fontRid);

Returns the dictionary of the supported OpenType features.

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Dictionary
_FontSupportedVariationListReckfell.Collections.Dictionary
# _FontSupportedVariationList
C#
public virtual Reckfell.Collections.Dictionary _FontSupportedVariationList(Rid fontRid);

Returns the dictionary of the supported OpenType variation coordinates.

Parameters
NameTypeDefault
fontRidRid—
Returns Reckfell.Collections.Dictionary
_FormatNumberstring · Deprecated
# _FormatNumber
C#
public virtual string _FormatNumber(string number, string language);

Converts a number from Western Arabic (0..9) to the numeral system used in the given language. If language is an empty string, the active locale will be used.

Parameters
NameTypeDefault
numberstring—
languagestring—
Returns string
_FreeRidvoid
# _FreeRid
C#
public virtual void _FreeRid(Rid rid);

Frees an object created by this TextServer.

Parameters
NameTypeDefault
ridRid—
_GetFeatureslong
# _GetFeatures
C#
public virtual long _GetFeatures();

Returns text server features, see TextServer.Feature.

Returns long
_GetHexCodeBoxSizeVector2
# _GetHexCodeBoxSize
C#
public virtual Vector2 _GetHexCodeBoxSize(long size, long index);

Returns size of the replacement character (box with character hexadecimal code that is drawn in place of invalid characters).

Parameters
NameTypeDefault
sizelong—
indexlong—
Returns Vector2
_GetNamestring
# _GetName
C#
public virtual string _GetName();

Returns the name of the server interface.

Returns string
_GetShortNamestring
# _GetShortName
C#
public virtual string _GetShortName();

Returns the short name of the server interface. By convention, this should return a lowercase string that follows the snake_case naming scheme.

Returns string
_GetSupportDatabyte[]
# _GetSupportData
C#
public virtual byte[] _GetSupportData();

Returns default TextServer database (e.g. ICU break iterators and dictionaries).

Returns byte[]
_GetSupportDataFileNamestring
# _GetSupportDataFileName
C#
public virtual string _GetSupportDataFileName();

Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename.

Returns string
_GetSupportDataInfostring
# _GetSupportDataInfo
C#
public virtual string _GetSupportDataInfo();

Returns TextServer database (e.g. ICU break iterators and dictionaries) description.

Returns string
_Hasbool
# _Has
C#
public virtual bool _Has(Rid rid);

Returns true if rid is valid resource owned by this text server.

Parameters
NameTypeDefault
ridRid—
Returns bool
_HasFeaturebool
# _HasFeature
C#
public virtual bool _HasFeature(TextServer.Feature feature);

Returns true if the server supports a feature.

Parameters
NameTypeDefault
featureTextServer.Feature—
Returns bool
_IsConfusablelong
# _IsConfusable
C#
public virtual long _IsConfusable(string @string, string[] dict);

Returns index of the first string in dict which is visually confusable with the string, or -1 if none is found.

Parameters
NameTypeDefault
stringstring—
dictstring[]—
Returns long
_IsLocaleRightToLeftbool
# _IsLocaleRightToLeft
C#
public virtual bool _IsLocaleRightToLeft(string locale);

Returns true if locale is right-to-left.

Parameters
NameTypeDefault
localestring—
Returns bool
_IsLocaleUsingSupportDatabool
# _IsLocaleUsingSupportData
C#
public virtual bool _IsLocaleUsingSupportData(string locale);

Returns true if the locale requires text server support data for line/word breaking.

Parameters
NameTypeDefault
localestring—
Returns bool
_IsValidIdentifierbool
# _IsValidIdentifier
C#
public virtual bool _IsValidIdentifier(string @string);

Returns true if string is a valid identifier.

Parameters
NameTypeDefault
stringstring—
Returns bool
_IsValidLetterbool
# _IsValidLetter
C#
public virtual bool _IsValidLetter(ulong unicode);
Parameters
NameTypeDefault
unicodeulong—
Returns bool
_LoadSupportDatabool
# _LoadSupportData
C#
public virtual bool _LoadSupportData(string fileName);

Loads optional TextServer database (e.g. ICU break iterators and dictionaries).

Parameters
NameTypeDefault
fileNamestring—
Returns bool
_NameToTaglong
# _NameToTag
C#
public virtual long _NameToTag(string name);

Converts the given readable name of a feature, variation, script, or language to an OpenType tag.

Parameters
NameTypeDefault
namestring—
Returns long
_ParseNumberstring · Deprecated
# _ParseNumber
C#
public virtual string _ParseNumber(string number, string language);

Converts number from the numeral system used in the given language to Western Arabic (0..9). If language is an empty string, the active locale will be used.

Parameters
NameTypeDefault
numberstring—
languagestring—
Returns string
_ParseStructuredTextReckfell.Collections.Array<Vector3I>
# _ParseStructuredText
C#
public virtual Reckfell.Collections.Array<Vector3I> _ParseStructuredText(TextServer.StructuredTextParser parserType, Reckfell.Collections.Array args, string text);

Default implementation of the BiDi algorithm override function.

Parameters
NameTypeDefault
parserTypeTextServer.StructuredTextParser—
argsReckfell.Collections.Array—
textstring—
Returns Reckfell.Collections.Array<Vector3I>
_PercentSignstring · Deprecated
# _PercentSign
C#
public virtual string _PercentSign(string language);

Returns percent sign used in the given language.

Parameters
NameTypeDefault
languagestring—
Returns string
_ReferenceOversamplingLevelvoid
# _ReferenceOversamplingLevel
C#
public virtual void _ReferenceOversamplingLevel(double oversampling);

Increases the reference count of the specified oversampling level. This method is called by Viewport, and should not be used directly.

Parameters
NameTypeDefault
oversamplingdouble—
_SaveSupportDatabool
# _SaveSupportData
C#
public virtual bool _SaveSupportData(string fileName);

Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file.

Parameters
NameTypeDefault
fileNamestring—
Returns bool
_ShapedGetRunCountlong
# _ShapedGetRunCount
C#
public virtual long _ShapedGetRunCount(Rid shaped);

Returns the number of uniform text runs in the buffer.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedGetRunDirectionTextServer.Direction
# _ShapedGetRunDirection
C#
public virtual TextServer.Direction _ShapedGetRunDirection(Rid shaped, long index);

Returns the direction of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns TextServer.Direction
_ShapedGetRunFontRidRid
# _ShapedGetRunFontRid
C#
public virtual Rid _ShapedGetRunFontRid(Rid shaped, long index);

Returns the font RID of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Rid
_ShapedGetRunFontSizeint
# _ShapedGetRunFontSize
C#
public virtual int _ShapedGetRunFontSize(Rid shaped, long index);

Returns the font size of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns int
_ShapedGetRunGlyphRangeVector2I
# _ShapedGetRunGlyphRange
C#
public virtual Vector2I _ShapedGetRunGlyphRange(Rid shaped, long index);

Returns the glyph range of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Vector2I
_ShapedGetRunLanguagestring
# _ShapedGetRunLanguage
C#
public virtual string _ShapedGetRunLanguage(Rid shaped, long index);

Returns the language of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns string
_ShapedGetRunObjectVariant
# _ShapedGetRunObject
C#
public virtual Variant _ShapedGetRunObject(Rid shaped, long index);

Returns the embedded object of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Variant
_ShapedGetRunRangeVector2I
# _ShapedGetRunRange
C#
public virtual Vector2I _ShapedGetRunRange(Rid shaped, long index);

Returns the source text range of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Vector2I
_ShapedGetRunTextstring
# _ShapedGetRunText
C#
public virtual string _ShapedGetRunText(Rid shaped, long index);

Returns the source text of the index text run (in visual order).

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns string
_ShapedGetSpanCountlong
# _ShapedGetSpanCount
C#
public virtual long _ShapedGetSpanCount(Rid shaped);

Returns number of text spans added using TextServerExtension._ShapedTextAddString or TextServerExtension._ShapedTextAddObject.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedGetSpanEmbeddedObjectVariant
# _ShapedGetSpanEmbeddedObject
C#
public virtual Variant _ShapedGetSpanEmbeddedObject(Rid shaped, long index);

Returns text embedded object key.

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Variant
_ShapedGetSpanMetaVariant
# _ShapedGetSpanMeta
C#
public virtual Variant _ShapedGetSpanMeta(Rid shaped, long index);

Returns text span metadata.

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Variant
_ShapedGetSpanObjectVariant
# _ShapedGetSpanObject
C#
public virtual Variant _ShapedGetSpanObject(Rid shaped, long index);

Returns the text span embedded object key.

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns Variant
_ShapedGetSpanTextstring
# _ShapedGetSpanText
C#
public virtual string _ShapedGetSpanText(Rid shaped, long index);

Returns the text span source text.

Parameters
NameTypeDefault
shapedRid—
indexlong—
Returns string
_ShapedGetTextstring
# _ShapedGetText
C#
public virtual string _ShapedGetText(Rid shaped);

Returns the text buffer source text, including object replacement characters.

Parameters
NameTypeDefault
shapedRid—
Returns string
_ShapedSetSpanUpdateFontvoid
# _ShapedSetSpanUpdateFont
C#
public virtual void _ShapedSetSpanUpdateFont(Rid shaped, long index, Reckfell.Collections.Array<Rid> fonts, long size, Reckfell.Collections.Dictionary opentypeFeatures);

Changes text span font, font size, and OpenType features, without changing the text.

Parameters
NameTypeDefault
shapedRid—
indexlong—
fontsReckfell.Collections.Array<Rid>—
sizelong—
opentypeFeaturesReckfell.Collections.Dictionary—
_ShapedTextAddObjectbool
# _ShapedTextAddObject
C#
public virtual bool _ShapedTextAddObject(Rid shaped, Variant key, Vector2 size, InlineAlignment inlineAlign, long length, double baseline);

Adds inline object to the text buffer, key must be unique. In the text, object is represented as length object replacement characters.

Parameters
NameTypeDefault
shapedRid—
keyVariant—
sizeVector2—
inlineAlignInlineAlignment—
lengthlong—
baselinedouble—
Returns bool
_ShapedTextAddStringbool
# _ShapedTextAddString
C#
public virtual bool _ShapedTextAddString(Rid shaped, string text, Reckfell.Collections.Array<Rid> fonts, long size, Reckfell.Collections.Dictionary opentypeFeatures, string language, Variant meta);

Adds text span and font to draw it to the text buffer.

Parameters
NameTypeDefault
shapedRid—
textstring—
fontsReckfell.Collections.Array<Rid>—
sizelong—
opentypeFeaturesReckfell.Collections.Dictionary—
languagestring—
metaVariant—
Returns bool
_ShapedTextClearvoid
# _ShapedTextClear
C#
public virtual void _ShapedTextClear(Rid shaped);

Clears text buffer (removes text and inline objects).

Parameters
NameTypeDefault
shapedRid—
_ShapedTextClosestCharacterPoslong
# _ShapedTextClosestCharacterPos
C#
public virtual long _ShapedTextClosestCharacterPos(Rid shaped, long pos);

Returns composite character position closest to the pos.

Parameters
NameTypeDefault
shapedRid—
poslong—
Returns long
_ShapedTextDrawvoid
# _ShapedTextDraw
C#
public virtual void _ShapedTextDraw(Rid shaped, Rid canvas, Vector2 pos, double clipL, double clipR, Color color, float oversampling);

Draw shaped text into a canvas item at a given position, with color. pos specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

Parameters
NameTypeDefault
shapedRid—
canvasRid—
posVector2—
clipLdouble—
clipRdouble—
colorColor—
oversamplingfloat—
_ShapedTextDrawOutlinevoid
# _ShapedTextDrawOutline
C#
public virtual void _ShapedTextDrawOutline(Rid shaped, Rid canvas, Vector2 pos, double clipL, double clipR, long outlineSize, Color color, float oversampling);

Draw the outline of the shaped text into a canvas item at a given position, with color. pos specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

Parameters
NameTypeDefault
shapedRid—
canvasRid—
posVector2—
clipLdouble—
clipRdouble—
outlineSizelong—
colorColor—
oversamplingfloat—
_ShapedTextDuplicateRid
# _ShapedTextDuplicate
C#
public virtual Rid _ShapedTextDuplicate(Rid shaped);

Duplicates shaped text buffer.

Parameters
NameTypeDefault
shapedRid—
Returns Rid
_ShapedTextFitToWidthdouble
# _ShapedTextFitToWidth
C#
public virtual double _ShapedTextFitToWidth(Rid shaped, double width, TextServer.JustificationFlag justificationFlags);

Adjusts text width to fit to specified width, returns new text width.

Parameters
NameTypeDefault
shapedRid—
widthdouble—
justificationFlagsTextServer.JustificationFlag—
Returns double
_ShapedTextGetAscentdouble
# _ShapedTextGetAscent
C#
public virtual double _ShapedTextGetAscent(Rid shaped);

Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).

Parameters
NameTypeDefault
shapedRid—
Returns double
_ShapedTextGetCharacterBreaksint[]
# _ShapedTextGetCharacterBreaks
C#
public virtual int[] _ShapedTextGetCharacterBreaks(Rid shaped);

Returns array of the composite character boundaries.

Parameters
NameTypeDefault
shapedRid—
Returns int[]
_ShapedTextGetCustomEllipsislong
# _ShapedTextGetCustomEllipsis
C#
public virtual long _ShapedTextGetCustomEllipsis(Rid shaped);

Returns ellipsis character used for text clipping.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedTextGetCustomPunctuationstring
# _ShapedTextGetCustomPunctuation
C#
public virtual string _ShapedTextGetCustomPunctuation(Rid shaped);

Returns custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.

Parameters
NameTypeDefault
shapedRid—
Returns string
_ShapedTextGetDescentdouble
# _ShapedTextGetDescent
C#
public virtual double _ShapedTextGetDescent(Rid shaped);

Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).

Parameters
NameTypeDefault
shapedRid—
Returns double
_ShapedTextGetDirectionTextServer.Direction
# _ShapedTextGetDirection
C#
public virtual TextServer.Direction _ShapedTextGetDirection(Rid shaped);

Returns direction of the text.

Parameters
NameTypeDefault
shapedRid—
Returns TextServer.Direction
_ShapedTextGetDominantDirectionInRangelong
# _ShapedTextGetDominantDirectionInRange
C#
public virtual long _ShapedTextGetDominantDirectionInRange(Rid shaped, long start, long end);

Returns dominant direction of in the range of text.

Parameters
NameTypeDefault
shapedRid—
startlong—
endlong—
Returns long
_ShapedTextGetEllipsisGlyphCountlong
# _ShapedTextGetEllipsisGlyphCount
C#
public virtual long _ShapedTextGetEllipsisGlyphCount(Rid shaped);

Returns number of glyphs in the ellipsis.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedTextGetEllipsisPoslong
# _ShapedTextGetEllipsisPos
C#
public virtual long _ShapedTextGetEllipsisPos(Rid shaped);

Returns position of the ellipsis.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedTextGetGlyphCountlong
# _ShapedTextGetGlyphCount
C#
public virtual long _ShapedTextGetGlyphCount(Rid shaped);

Returns number of glyphs in the buffer.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedTextGetGraphemeBoundsVector2
# _ShapedTextGetGraphemeBounds
C#
public virtual Vector2 _ShapedTextGetGraphemeBounds(Rid shaped, long pos);

Returns composite character's bounds as offsets from the start of the line.

Parameters
NameTypeDefault
shapedRid—
poslong—
Returns Vector2
_ShapedTextGetInferredDirectionTextServer.Direction
# _ShapedTextGetInferredDirection
C#
public virtual TextServer.Direction _ShapedTextGetInferredDirection(Rid shaped);

Returns direction of the text, inferred by the BiDi algorithm.

Parameters
NameTypeDefault
shapedRid—
Returns TextServer.Direction
_ShapedTextGetLineBreaksint[]
# _ShapedTextGetLineBreaks
C#
public virtual int[] _ShapedTextGetLineBreaks(Rid shaped, double width, long start, TextServer.LineBreakFlag breakFlags);

Breaks text to the lines and returns character ranges for each line.

Parameters
NameTypeDefault
shapedRid—
widthdouble—
startlong—
breakFlagsTextServer.LineBreakFlag—
Returns int[]
_ShapedTextGetLineBreaksAdvint[]
# _ShapedTextGetLineBreaksAdv
C#
public virtual int[] _ShapedTextGetLineBreaksAdv(Rid shaped, float[] width, long start, bool once, TextServer.LineBreakFlag breakFlags);

Breaks text to the lines and columns. Returns character ranges for each segment.

Parameters
NameTypeDefault
shapedRid—
widthfloat[]—
startlong—
oncebool—
breakFlagsTextServer.LineBreakFlag—
Returns int[]
_ShapedTextGetObjectGlyphlong
# _ShapedTextGetObjectGlyph
C#
public virtual long _ShapedTextGetObjectGlyph(Rid shaped, Variant key);

Returns the glyph index of the inline object.

Parameters
NameTypeDefault
shapedRid—
keyVariant—
Returns long
_ShapedTextGetObjectRangeVector2I
# _ShapedTextGetObjectRange
C#
public virtual Vector2I _ShapedTextGetObjectRange(Rid shaped, Variant key);

Returns the character range of the inline object.

Parameters
NameTypeDefault
shapedRid—
keyVariant—
Returns Vector2I
_ShapedTextGetObjectRectRect2
# _ShapedTextGetObjectRect
C#
public virtual Rect2 _ShapedTextGetObjectRect(Rid shaped, Variant key);

Returns bounding rectangle of the inline object.

Parameters
NameTypeDefault
shapedRid—
keyVariant—
Returns Rect2
_ShapedTextGetObjectsReckfell.Collections.Array
# _ShapedTextGetObjects
C#
public virtual Reckfell.Collections.Array _ShapedTextGetObjects(Rid shaped);

Returns array of inline objects.

Parameters
NameTypeDefault
shapedRid—
Returns Reckfell.Collections.Array
_ShapedTextGetOrientationTextServer.Orientation
# _ShapedTextGetOrientation
C#
public virtual TextServer.Orientation _ShapedTextGetOrientation(Rid shaped);

Returns text orientation.

Parameters
NameTypeDefault
shapedRid—
Returns TextServer.Orientation
_ShapedTextGetParentRid
# _ShapedTextGetParent
C#
public virtual Rid _ShapedTextGetParent(Rid shaped);

Returns the parent buffer from which the substring originates.

Parameters
NameTypeDefault
shapedRid—
Returns Rid
_ShapedTextGetPreserveControlbool
# _ShapedTextGetPreserveControl
C#
public virtual bool _ShapedTextGetPreserveControl(Rid shaped);

Returns true if text buffer is configured to display control characters.

Parameters
NameTypeDefault
shapedRid—
Returns bool
_ShapedTextGetPreserveInvalidbool
# _ShapedTextGetPreserveInvalid
C#
public virtual bool _ShapedTextGetPreserveInvalid(Rid shaped);

Returns true if text buffer is configured to display hexadecimal codes in place of invalid characters.

Parameters
NameTypeDefault
shapedRid—
Returns bool
_ShapedTextGetRangeVector2I
# _ShapedTextGetRange
C#
public virtual Vector2I _ShapedTextGetRange(Rid shaped);

Returns substring buffer character range in the parent buffer.

Parameters
NameTypeDefault
shapedRid—
Returns Vector2I
_ShapedTextGetSelectionVector2[]
# _ShapedTextGetSelection
C#
public virtual Vector2[] _ShapedTextGetSelection(Rid shaped, long start, long end);

Returns selection rectangles for the specified character range.

Parameters
NameTypeDefault
shapedRid—
startlong—
endlong—
Returns Vector2[]
_ShapedTextGetSizeVector2
# _ShapedTextGetSize
C#
public virtual Vector2 _ShapedTextGetSize(Rid shaped);

Returns size of the text.

Parameters
NameTypeDefault
shapedRid—
Returns Vector2
_ShapedTextGetSpacinglong
# _ShapedTextGetSpacing
C#
public virtual long _ShapedTextGetSpacing(Rid shaped, TextServer.SpacingType spacing);

Returns extra spacing added between glyphs or lines in pixels.

Parameters
NameTypeDefault
shapedRid—
spacingTextServer.SpacingType—
Returns long
_ShapedTextGetTrimPoslong
# _ShapedTextGetTrimPos
C#
public virtual long _ShapedTextGetTrimPos(Rid shaped);

Returns the position of the overrun trim.

Parameters
NameTypeDefault
shapedRid—
Returns long
_ShapedTextGetUnderlinePositiondouble
# _ShapedTextGetUnderlinePosition
C#
public virtual double _ShapedTextGetUnderlinePosition(Rid shaped);

Returns pixel offset of the underline below the baseline.

Parameters
NameTypeDefault
shapedRid—
Returns double
_ShapedTextGetUnderlineThicknessdouble
# _ShapedTextGetUnderlineThickness
C#
public virtual double _ShapedTextGetUnderlineThickness(Rid shaped);

Returns thickness of the underline.

Parameters
NameTypeDefault
shapedRid—
Returns double
_ShapedTextGetWidthdouble
# _ShapedTextGetWidth
C#
public virtual double _ShapedTextGetWidth(Rid shaped);

Returns width (for horizontal layout) or height (for vertical) of the text.

Parameters
NameTypeDefault
shapedRid—
Returns double
_ShapedTextGetWordBreaksint[]
# _ShapedTextGetWordBreaks
C#
public virtual int[] _ShapedTextGetWordBreaks(Rid shaped, TextServer.GraphemeFlag graphemeFlags, TextServer.GraphemeFlag skipGraphemeFlags);

Breaks text into words and returns array of character ranges. Use grapheme_flags to set what characters are used for breaking.

Parameters
NameTypeDefault
shapedRid—
graphemeFlagsTextServer.GraphemeFlag—
skipGraphemeFlagsTextServer.GraphemeFlag—
Returns int[]
_ShapedTextHasObjectbool
# _ShapedTextHasObject
C#
public virtual bool _ShapedTextHasObject(Rid shaped, Variant key);

Returns true if an object with key is embedded in this shaped text buffer.

Parameters
NameTypeDefault
shapedRid—
keyVariant—
Returns bool
_ShapedTextHitTestGraphemelong
# _ShapedTextHitTestGrapheme
C#
public virtual long _ShapedTextHitTestGrapheme(Rid shaped, double coord);

Returns grapheme index at the specified pixel offset at the baseline, or -1 if none is found.

Parameters
NameTypeDefault
shapedRid—
coorddouble—
Returns long
_ShapedTextHitTestPositionlong
# _ShapedTextHitTestPosition
C#
public virtual long _ShapedTextHitTestPosition(Rid shaped, double coord);

Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position.

Parameters
NameTypeDefault
shapedRid—
coorddouble—
Returns long
_ShapedTextIsReadybool
# _ShapedTextIsReady
C#
public virtual bool _ShapedTextIsReady(Rid shaped);

Returns true if buffer is successfully shaped.

Parameters
NameTypeDefault
shapedRid—
Returns bool
_ShapedTextNextCharacterPoslong
# _ShapedTextNextCharacterPos
C#
public virtual long _ShapedTextNextCharacterPos(Rid shaped, long pos);

Returns composite character end position closest to the pos.

Parameters
NameTypeDefault
shapedRid—
poslong—
Returns long
_ShapedTextNextGraphemePoslong
# _ShapedTextNextGraphemePos
C#
public virtual long _ShapedTextNextGraphemePos(Rid shaped, long pos);

Returns grapheme end position closest to the pos.

Parameters
NameTypeDefault
shapedRid—
poslong—
Returns long
_ShapedTextOverrunTrimToWidthvoid
# _ShapedTextOverrunTrimToWidth
C#
public virtual void _ShapedTextOverrunTrimToWidth(Rid shaped, double width, TextServer.TextOverrunFlag trimFlags);

Trims text if it exceeds the given width.

Parameters
NameTypeDefault
shapedRid—
widthdouble—
trimFlagsTextServer.TextOverrunFlag—
_ShapedTextPrevCharacterPoslong
# _ShapedTextPrevCharacterPos
C#
public virtual long _ShapedTextPrevCharacterPos(Rid shaped, long pos);

Returns composite character start position closest to the pos.

Parameters
NameTypeDefault
shapedRid—
poslong—
Returns long
_ShapedTextPrevGraphemePoslong
# _ShapedTextPrevGraphemePos
C#
public virtual long _ShapedTextPrevGraphemePos(Rid shaped, long pos);

Returns grapheme start position closest to the pos.

Parameters
NameTypeDefault
shapedRid—
poslong—
Returns long
_ShapedTextResizeObjectbool
# _ShapedTextResizeObject
C#
public virtual bool _ShapedTextResizeObject(Rid shaped, Variant key, Vector2 size, InlineAlignment inlineAlign, double baseline);

Sets new size and alignment of embedded object.

Parameters
NameTypeDefault
shapedRid—
keyVariant—
sizeVector2—
inlineAlignInlineAlignment—
baselinedouble—
Returns bool
_ShapedTextSetBidiOverridevoid
# _ShapedTextSetBidiOverride
C#
public virtual void _ShapedTextSetBidiOverride(Rid shaped, Reckfell.Collections.Array @override);

Overrides BiDi for the structured text.

Parameters
NameTypeDefault
shapedRid—
overrideReckfell.Collections.Array—
_ShapedTextSetCustomEllipsisvoid
# _ShapedTextSetCustomEllipsis
C#
public virtual void _ShapedTextSetCustomEllipsis(Rid shaped, long @char);

Sets ellipsis character used for text clipping.

Parameters
NameTypeDefault
shapedRid—
charlong—
_ShapedTextSetCustomPunctuationvoid
# _ShapedTextSetCustomPunctuation
C#
public virtual void _ShapedTextSetCustomPunctuation(Rid shaped, string punct);

Sets custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.

Parameters
NameTypeDefault
shapedRid—
punctstring—
_ShapedTextSetDirectionvoid
# _ShapedTextSetDirection
C#
public virtual void _ShapedTextSetDirection(Rid shaped, TextServer.Direction direction);

Sets desired text direction. If set to TextServer.Direction.Auto, direction will be detected based on the buffer contents and current locale.

Parameters
NameTypeDefault
shapedRid—
directionTextServer.Direction—
_ShapedTextSetOrientationvoid
# _ShapedTextSetOrientation
C#
public virtual void _ShapedTextSetOrientation(Rid shaped, TextServer.Orientation orientation);

Sets desired text orientation.

Parameters
NameTypeDefault
shapedRid—
orientationTextServer.Orientation—
_ShapedTextSetPreserveControlvoid
# _ShapedTextSetPreserveControl
C#
public virtual void _ShapedTextSetPreserveControl(Rid shaped, bool enabled);

If set to true text buffer will display control characters.

Parameters
NameTypeDefault
shapedRid—
enabledbool—
_ShapedTextSetPreserveInvalidvoid
# _ShapedTextSetPreserveInvalid
C#
public virtual void _ShapedTextSetPreserveInvalid(Rid shaped, bool enabled);

If set to true text buffer will display invalid characters as hexadecimal codes, otherwise nothing is displayed.

Parameters
NameTypeDefault
shapedRid—
enabledbool—
_ShapedTextSetSpacingvoid
# _ShapedTextSetSpacing
C#
public virtual void _ShapedTextSetSpacing(Rid shaped, TextServer.SpacingType spacing, long value);

Sets extra spacing added between glyphs or lines in pixels.

Parameters
NameTypeDefault
shapedRid—
spacingTextServer.SpacingType—
valuelong—
_ShapedTextShapebool
# _ShapedTextShape
C#
public virtual bool _ShapedTextShape(Rid shaped);

Shapes buffer if it's not shaped. Returns true if the string is shaped successfully.

Parameters
NameTypeDefault
shapedRid—
Returns bool
_ShapedTextSubstrRid
# _ShapedTextSubstr
C#
public virtual Rid _ShapedTextSubstr(Rid shaped, long start, long length);

Returns text buffer for the substring of the text in the shaped text buffer (including inline objects).

Parameters
NameTypeDefault
shapedRid—
startlong—
lengthlong—
Returns Rid
_ShapedTextTabAligndouble
# _ShapedTextTabAlign
C#
public virtual double _ShapedTextTabAlign(Rid shaped, float[] tabStops);

Aligns shaped text to the given tab-stops.

Parameters
NameTypeDefault
shapedRid—
tabStopsfloat[]—
Returns double
_ShapedTextUpdateBreaksbool
# _ShapedTextUpdateBreaks
C#
public virtual bool _ShapedTextUpdateBreaks(Rid shaped);

Updates break points in the shaped text. This method is called by default implementation of text breaking functions.

Parameters
NameTypeDefault
shapedRid—
Returns bool
_ShapedTextUpdateJustificationOpsbool
# _ShapedTextUpdateJustificationOps
C#
public virtual bool _ShapedTextUpdateJustificationOps(Rid shaped);

Updates justification points in the shaped text. This method is called by default implementation of text justification functions.

Parameters
NameTypeDefault
shapedRid—
Returns bool
_SpoofCheckbool
# _SpoofCheck
C#
public virtual bool _SpoofCheck(string @string);

Returns true if string is likely to be an attempt at confusing the reader.

Parameters
NameTypeDefault
stringstring—
Returns bool
_StringGetCharacterBreaksint[]
# _StringGetCharacterBreaks
C#
public virtual int[] _StringGetCharacterBreaks(string @string, string language);

Returns array of the composite character boundaries.

Parameters
NameTypeDefault
stringstring—
languagestring—
Returns int[]
_StringGetWordBreaksint[]
# _StringGetWordBreaks
C#
public virtual int[] _StringGetWordBreaks(string @string, string language, long charsPerLine);

Returns an array of the word break boundaries. Elements in the returned array are the offsets of the start and end of words. Therefore the length of the array is always even.

Parameters
NameTypeDefault
stringstring—
languagestring—
charsPerLinelong—
Returns int[]
_StringToLowerstring
# _StringToLower
C#
public virtual string _StringToLower(string @string, string language);

Returns the string converted to lowercase.

Parameters
NameTypeDefault
stringstring—
languagestring—
Returns string
_StringToTitlestring
# _StringToTitle
C#
public virtual string _StringToTitle(string @string, string language);

Returns the string converted to Title Case.

Parameters
NameTypeDefault
stringstring—
languagestring—
Returns string
_StringToUpperstring
# _StringToUpper
C#
public virtual string _StringToUpper(string @string, string language);

Returns the string converted to UPPERCASE.

Parameters
NameTypeDefault
stringstring—
languagestring—
Returns string
_StripDiacriticsstring
# _StripDiacritics
C#
public virtual string _StripDiacritics(string @string);

Strips diacritics from the string.

Parameters
NameTypeDefault
stringstring—
Returns string
_TagToNamestring
# _TagToName
C#
public virtual string _TagToName(long tag);

Converts the given OpenType tag to the readable name of a feature, variation, script, or language.

Parameters
NameTypeDefault
taglong—
Returns string
_UnreferenceOversamplingLevelvoid
# _UnreferenceOversamplingLevel
C#
public virtual void _UnreferenceOversamplingLevel(double oversampling);

Decreases the reference count of the specified oversampling level, and frees the font cache for oversampling level when the reference count reaches zero. This method is called by Viewport, and should not be used directly.

Parameters
NameTypeDefault
oversamplingdouble—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.