aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
AgeCommit message (Collapse)Author
2019-12-01ADDED: DrawTextCodepoint()Ray
- Renamed GetGlyphIndex() parameter - Review DrawTextEx() implementation - Review DrawTextRecEx() implementation
2019-11-24Review PR #1015raysan5
Just simplified code a bit
2019-11-24[text] `TextFormat()` caching (#1015)brankoku
2019-10-29fix various problems, thanks CppCheck :) (#1005)João Coelho
* explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-28REDESIGN: TextToUtf8()Ray
ADDED: CodepointToUtf8()
2019-10-27ADDED: TextToUtf8() -WIP-Ray
RENAMED: TextCountCodepoints() -> GetCodepointsCount()
2019-10-22Minor comment tweakRay
2019-10-22Review some definesRay
2019-10-21Update text.cRay
2019-10-17Remove trailing spacesRay
2019-10-17REVIEWED: GetCodepoints() issueRay
- Improved LoadBMFont()
2019-10-11REDESIGNED: IsFileExtension()Ray
Now it accepts a ';' separated list of extensions, useful to check multiple extensions
2019-10-11ADDED: GetCodepoints()Ray
Get the unicode equivalent characters (as int array) from a UTF-8 text array... maybe this function is renamed to be clearer to users...
2019-08-24Tweak on atlas size computingRay
Some generated fonts were not fitting the image...
2019-08-19REVIEW: TextSplit()Ray
Just adding a security check
2019-07-24BREAKING CHANGE: Read descriptionRay
Changes: - Font structure has been redesigned, CharInfo structure contained character rectangle within font texture, it has not much sense, considering that it was an information relative to the font atlas generated and not the character itself, so character rectangles have been moved out from CharInfo to Font. - CharInfo included a data parameters to contain character pixel data (usually grayscale), generated on TTF font generation. It was inconsistent with other fonts types, so, now CharInfo includes directly an Image of the glyph. - REDESIGNED: GenImageFontAtlas(), additional recs parameter added, loaded and filled inside the function to export atlas characters rectangles, instead of silently modify the input CharInfo data. - REVIEWED: ImageTextEx(), funtion retrieved the font atlas image from the GPU, that was slow and problematic in several platforms. Now it uses directly the CharInfo image. Support for unicode codepoints has also been added. - REDESIGNED: ImageDraw(), now it includes an additional parameter, the color tint, not only it could be useful for several situations but also function signature is more consistent with similar functions. - ADDED: ImageFromImage() to generate a new image from a piece of another image. - REVIEWED: GetNextCodepoint(), renamed parameters to be more clear. Also all examples and games that were affected by those changes have been reviewed.
2019-07-22Review text functions return valueRay
It needs to be freed
2019-06-19Define some globalsRay
2019-06-16RENAMED: LoadDefaultFont() -> LoadFontDefault()Ray
Renamed internal function for consistency with similar functions.
2019-06-16Some formatting tweaksRay
2019-05-10Fixed DrawTextRecEx() selection when wordwrap is ONDemizdor
2019-05-06Corrected issue with wrong text measuringRay
2019-04-24Fixed selection in DrawTextRecEx()Demizdor
2019-04-23Support custom memory management macrosRay
Users can define their custom memory management macros. NOTE: Most external libraries support custom macros in the same way, raylib should redefine those macros to raylib ones, to unify custom memory loading. That redefinition is only implemented as example for stb_image.h in [textures] module.
2019-04-21Initial unicode implementation for UTF8 encoded textDemizdor
2019-04-08Review creation yearsRay
2019-04-07Happy new year 2019ChillerDragon
2019-02-28Some spacing reviewRay
2019-02-28Removed unnecessarySkabunkel
2019-02-24... tabs again... _facepalm_Skabunkel
2019-02-24Missed oneSkabunkel
2019-02-24Fixed segmentation fult created by quick fixSkabunkel
2019-02-24Tabs to spacesSkabunkel
2019-02-24#764 - Quick fix that clears alot of memory, there seems to be more hiding ↵Skabunkel
somewhere else.
2019-02-22Change ternary operator formattingRay
2019-02-22Merge pull request #761 from Demizdor/masterRay
Fixed height bug in DrawTextRecEx()
2019-02-22Remove TABSRay
2019-02-22Fixed height bug in DrawTextRecEx()Demizdor
2019-02-21Remove end-line spacesRay
2019-02-14Fix config.h flagsJens Pitkanen
2019-02-11Redesigned TextSplit() functionRay
2019-02-10Fixed as issue where strrchr in LoadBMFont would only look for forward ↵Jak Barnes
slashes, instead of backslashes causing strlen to fail on a null string
2019-02-06ADDED: TextToInteger()Ray
Custom implementation that returns -1 if it fails (no negative values supported)
2019-02-04Review DrawTextRecEx() formattingRay
2019-02-03Merge pull request #734 from Demizdor/masterRay
Added DrawTextRecEx()
2019-01-23Fix font cannot be narrowed to type 'int'Rob Loach
Getting the following strict error.... ``` src/text.c:117:105: error: constant expression evaluates to 2398692640 which cannot be narrowed to type 'int' [-Wc++11-narrowing] ...0x00000000, 0x00000000, 0x00200020, 0x0001b000, 0x00000000, 0x00000000, 0x8ef92520, 0x00020a00... ^~~~~~~~~~ ``` Switching it to an unsigned int fixes it.
2019-01-23Added DrawTextRecEx()Demizdor
2019-01-21Remove commentRay
2019-01-05Corrected issue with text measure on Latin-1 charsraysan5
Considering chars inputs come in UTF8 form!
2018-12-29ADDED: DrawTextRec() and exampleraysan5