diff options
| author | jussi | 2025-06-11 22:44:39 +0300 |
|---|---|---|
| committer | jussi | 2025-06-11 22:44:39 +0300 |
| commit | 15deeccc4bcbe5b68f002f8cc91ee4ed8ced68fb (patch) | |
| tree | 3e4fc6739a32d947909e54eb4301cd26bc4828d7 /API.md | |
| parent | a38e76873b5ca3080c8046ae4759866d8cccc4e5 (diff) | |
| download | reilua-enhanced-15deeccc4bcbe5b68f002f8cc91ee4ed8ced68fb.tar.gz reilua-enhanced-15deeccc4bcbe5b68f002f8cc91ee4ed8ced68fb.tar.bz2 reilua-enhanced-15deeccc4bcbe5b68f002f8cc91ee4ed8ced68fb.zip | |
MeasureTextBoxed and DrawTextBoxedEx to DrawTextBoxed.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -8041,20 +8041,11 @@ Draw multiple character (codepoint) --- -> mouseCharId, textOffset = RL.DrawTextBoxed(Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, bool limitHeight, int|nil tabSize ) +> mouseCharId, textOffset = RL.DrawTextBoxed( Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, bool limitHeight, Vector2|nil textOffset, int|nil tabSize ) -Draw text using font inside rectangle limits. -Support for tint change with "\a#FFFFFFFF" - -- Success return int, Vector2 - ---- - -> mouseCharId, textOffset = RL.DrawTextBoxedEx( Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, bool limitHeight, Vector2 textOffset, int|nil tabSize ) - -Draw text using font inside rectangle limits. Return character id from mouse position (default 0). +Draw text inside rectangle limits. Return character id from mouse position (default 0). textOffset can be used to set start position inside rectangle. Usefull to pass from previous -DrawTextBoxedEx for continuous text. +DrawTextBoxed for continuous text. Support for tint change with "\a#FFFFFFFF" - Success return int, Vector2 @@ -8095,6 +8086,14 @@ Measure string size for Font --- +> size, textOffset = RL.MeasureTextBoxed( Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, bool limitHeight, Vector2 textOffset, int|nil tabSize ) + +Measure text inside rectangle limits. + +- Success return Vector2, Vector2 + +--- + > index = RL.GetGlyphIndex( Font font, int codepoint ) Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found |
