summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
AgeCommit message (Collapse)Author
2024-07-08Minor tweaksRay
2024-06-25WARNING: REMOVED: Default font fallbackRay
2024-06-25[rtext] Don't return default font if LoadFontEx fails (#4077)Peter0x44
It is currently impossible to check a font loaded successfully with IsFontReady because LoadFontEx will always return a valid font. DrawTextEx has this check: if (font.texture.id == 0) font = GetFontDefault(); // Security check in case of not valid font So anyone relying on the default font as a fallback for fonts failing to load should still be covered.
2024-06-24[Build] Fix warnings when building in VS 2022 (#4095)Jeffery Myers
* Update raylib_api.* by CI * Fix warnings when building examples in MSVC 2022 * fix auto-format that sneaked in there. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-22fixed LoadCodepoints returning a freed ptr when count is 0 (#4089)Alice Nyaa
2024-06-09tweaksRay
2024-06-03rtext: added functions for camel case and snake case (reopened due to ↵IoIxD
formatting errors) (#4033) * rtext: added functions for camel case and snake case * Update raylib_api.* by CI * rtext: removed always false comparison --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-29REVIEWED: `ExportFontAsCode()`, avoid `const` #4013Ray
2024-05-29[rtext] Added cast to ExportFontAsCode output to fix C++ compiler errors (#4013)DarkAssassin23
2024-05-18REVIEWED: LoadBMFont(), issue on not glyph data initializedRay
2024-05-01Reviewed some warningsRay
2024-04-28WARNING: BREAKING: REDESIGN: `SetTextLineSpacing()`Ray
Redesigned function to only consider separation between the end of vertical size of one line and the beginning of next line
2024-04-20REVIEWED: Remove final punctuation in code commentsRay
2024-04-20Code gardeningRay
- Review formatting - Improve readability for some functions result return - Minimize early returns - Align LoadFileData() to UnloadFileData()
2024-04-19Update rtext.cRay
2024-02-29Review formattingRay
2024-02-18Remove some unneeded line breaksRay
2024-02-13Minor tweaks to avoid some CodeQL warningsRay
2024-02-13Update rtext.cRay
2024-02-13[rtext] Change strcpy to strncpy to fix buffer overflow (#3795)Mingjie Shen
2024-02-04Update rtext.cRay
2024-02-04Update rtext.cRay
2024-02-04REVIEWED: `LoadFontDataBDF()` name and formatingRay
2024-02-03[rtext] Add BDF font support (#3735)Stanley Fuller
* Add BDF font support * Include font ascent in glyph y-offset when loading BDF font
2024-02-01Fix MeasureTextEx() height calculation (#3770)Marrony Neris
2024-01-22[rtext.c] fixing some comments to align comments style (#3756)Idir Carlos Aliane
2024-01-10[rtext] Adjust font atlas area calculation so padding area is not ↵Tim Romero
underestimated at small font sizes. (#3719)
2024-01-02Update copyright to 2024Ray
2023-12-28Fix TextReplace warning for const (#3687)ubkp
2023-12-28TextReplace const correctness (#3678)maverikou
* TextReplace const correctness * cleanup
2023-12-15BM Font Extender (#3536)Dongkun Lee
* loadbmfont * bmfontextender * bm font * Modify LoadBM Font * Delete loadbmfontex.diff * REVIEWED: `LoadBMFont()` PR * Update rtext.c * Update rtext.c --------- Co-authored-by: Dongkun Lee <[email protected]> Co-authored-by: Ray <[email protected]>
2023-12-13fixed coding style in function TextToFloat (#3627)Benjamin Schmid Ties
* function to convert string to float * fix code to match coding conventions
2023-12-04REVIEWED: WARNING: `LoadFontData()` avoid fallback glyphsRay
This is a redesign on font loading, missing glyphs are skipped instead of falling back to font `.notdef` special character (usually "tofu" character). It is changed because not all fonts support a fallback glyph. One improvement could be allowing users to define a custom fallback character, for example `?` glyph.
2023-12-03REVIEWED: `LoadFontData()`, load image only if glyph has been found in fontRay
2023-11-01REVIEWED: Potential code issues reported by CodeQL #3476Ray
2023-10-26Remove trail spacesRay
2023-10-17Added some notes for alternative implementations #3362Ray
2023-10-11REVIEWED: `TextFormat()`, added "..." for truncation #3366Ray
It seems more standard than [TRUN]
2023-10-11REVIEWED: #3399, Fix #3366Ray
2023-10-11[rtext] TextFormat() warn user if buffer overflow occured. (#3399)Murlocohol
* [rtext] TextFormat now alerts user to truncation. * Update rtext.c * Update rcore.c * Update rtext.c
2023-09-11REVIEWED: `TextToPascal()` issue when first char is uppercaseRay
2023-09-08Update rtext.cRay
2023-09-05Fix #3293Ray
2023-09-02Use internal default allocators, instead of user-exposed onesRay
2023-09-02REVIEWED: Data size type consistency between functions #3168Ray
2023-09-01RENAMED: LoadFont*() parameter names for consistency and coherenceRay
2023-08-15Ignore unused return value of GetCodepointNext in GetCodepointCount (#3241)ashn
* Ignore unused return value of GetCodepointNext in GetCodepointCount Removes the last warning from non-external libraries when compiling with the default build configuration on x64 Linux. * Remove unnecessary void cast in GetCodepointCount
2023-08-10Review tabs and trail-spacesRay
2023-08-10fix typos in rmodels, rshapes, rtext modules (#3236)RadsammyT
2023-08-09Ignore unused function warnings from external headers when compiling with ↵ashn
GCC and Clang (#3235)