summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
AgeCommit message (Collapse)Author
2022-09-22WARNING: Several changes on UTF-8/Codepoints APIRay
- ADDED: `GetCodepointPrevious()` - RENAMED: `GetCodepoint()` -> `GetCodepointNext()`, actually, reimplemented - `GetCodepoint()` has been kept for the moment, for compatibility and also because implementation is different - RENAMED: `TextCodepointsToUTF8()` to `LoadUTF8()`, simpler name and more aligned with raylib conventions (functions loading memory start with Load*()), parameters should be descriptive of functionailty. - ADDED: `UnloadUTF8()`, aligned with `LoadUTF8()` to avoid allocators issues.
2022-08-18REVIEWED: Avoid crash on bad data providedRay
2022-08-13Fix Codepoint position truncation (#2636)Dan Bechard
This truncation causes text that spans the zero coord boundary to round differently left or zero vs. right of zero, in turn causing letters to appear squished together. If you actually need the position to be an integer, you should instead `floorf()` the float, rather than doing an integer truncation, but I don't see any reason to convert it to an integer in the first place. Everything else in the equation is a float.
2022-08-02Remove trailing spacesRay
2022-07-29REVIEWED: `GenImageFontAtlas()` #2556Ray
Just reviewed font atlas size estimation, now it considers `fontSize` instead of `chars[i].image.height`, increasing considerably the atlas size estimation.
2022-06-24fix: precision loss, discard unused (#2541)veclavtalica
2022-06-17Changed ExportFontAsCode to use given font's padding. (#2525)The Tophat Demon
2022-05-29Correct typoRay
2022-05-29Review log messagesRay
2022-05-07Corrected typoRay
2022-05-01Reviewed some commentsRay
2022-03-29Update rtext.cRay
2022-03-01Increase atlas size guesstimate; print warnings if atlas size is too small ↵megagrump
(#2365)
2022-02-20REVIEWED: Some functions input parametes that should be `const`raysan5
2022-02-18Removed trailing spacesraysan5
2022-02-13Update rtext.cRay
2022-01-26Add DrawTextCodepoints (#2308)Siddharth Roy
* Add DrawTextCodepoints * Fixed top comment
2022-01-03ADDED: `ExportFontAsCode()`Ray
2021-12-31Update year to 2022raysan5
2021-12-28Detected some pixel-errors due to rounding issues on positionraysan5
2021-12-09REVIEWED: GetCodepoint() #2201Ray
2021-12-04Support custom modules inclusionRay
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
2021-11-09Review variables initializationRay
- All variables are initialized on declaration, some arrays were not properly initialized - Static array buffers require memset() for re-initialization on every function call
2021-11-09Protect TextIsEqual from NULLs (#2121)Luke Krasnoff
2021-11-01Minor type tweakraysan5
2021-10-13Reviewed some TODORay
2021-10-12REVIEWED: LoadFontFromImage()Ray
Avoid crash on wrong sprite font
2021-10-03Minor format tweaksRay
2021-09-23Reviewed some TODO commentsRay
2021-09-22WARNING: MODULES RENAMING!!!Ray
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required. The renamed modules are: - `core` -> `rcore` - `shapes` -> `rshapes` - `textures` -> `rtextures` - `text` -> `rtext` - `models` -> `rmodels` - `camera` -> `rcamera` - `gestures` -> `rgestures` - `core` -> `rcore` All the build systems has been adapted to this change.