summaryrefslogtreecommitdiffhomepage
path: root/src/text.c
AgeCommit message (Collapse)Author
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.
2021-09-10Review font loading log infoRay
2021-09-01REVIEWED: Naming: length vs sizeRay
2021-09-01WARNING: BREAKING: RENAMED: Font struct variablesRay
RENAMED: GetCodepointsCount() -> GetCodepointCount() RENAMED: GetTouchPointsCount() -> GetTouchPointCount()
2021-08-16Remove trailing spacesRay
2021-08-11WARNING: BREAKING: Renamed `CharInfo` to `GlyphInfo` and more...raysan5
This commit introduces some breaking changes for library consistency, hopefully not too dramatic... Here the full list: - RENAMED: struct `CharInfo` to `GlyphInfo`, actually that's the correct naming for the data contained. It contains the character glyph metrics and the glyph image; in the past it also contained rectangle within the font atlas but that data has been moved to `Font` struct directly, so, `GlyphInfo` is a more correct name. - RENAMED: `CodepointToUtf8()` to `CodepointToUTF8()`, capitalization of UTF-8 is the correct form, it would also require de hyphen but it can be omitted in this case. - RENAMED: `TextToUtf8()` to `TextCodepointsToUTF8` for consistency and more detail on the functionality. - ADDED: `GetGlyphInfo()` to get glyph info for a specific codepoint - ADDED: `GetGlyphAtlasRec()` to get glyph rectangle within the generated font atlas - Some additional tweaks for consistency
2021-08-11REVIEWED: DrawTextPro()raysan5
WARNING: DrawTextPro() requires including `rlgl.h`, before it was only dependant on `textures` module.
2021-08-11TODO: DrawTextPro() rotation not working?raysan5
2021-08-11ADDED: DrawTextPro() with text rotation supportraysan5
2021-08-11WARNING: REMOVED: DrawTextRec() and DrawTextRecEx()raysan5
- DrawTextRec() and DrawTextRecEx() have been moved to example, those functions could be very specific depending on user needs so it's better to give the user the full source in case of special requirements instead of allowing a function with +10 input parameters.
2021-07-31REVIEWED: Improved font loading inforaysan5
2021-06-30Remove trailing spacesraysan5
2021-06-26Minor tweaksraysan5
2021-06-26WARNING: REMOVED: Some deprecated function names mappingraysan5
Some functions/values have been deprecated for long time but some mapping was kept for convenience. Some of those mappings have been removed...
2021-06-24Update text.cRay
2021-06-23WARNING: BREAKING: Functions renamed!Ray
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer. ADDED: UnloadCodepoints() to safely free loaded codepoints RENAMED: GetNextCodepoint() -> GetCodepoint()
2021-06-22Formatting reviewRay
2021-06-22Fix DrawTextRec (#1843)Diesirae
* fix text wrapping * fix indent * fix indent * fix indent * fix DrawTextRec
2021-06-13Remove trail spacesRay
2021-06-10Review code formattingRay
2021-06-10Reviewed functions descriptionRay
Replaced: Returns -> Get
2021-06-05Minor format tweaksraysan5
2021-05-30Some code tweaksRay
2021-05-22Some code tweaks for consistencyRay
2021-05-03Security check in case of not valid fontRay
2021-04-16Minor tweaksRay
2021-03-24Change the color of the FPS display if the FPS is low (orange for <30, red ↵Jeffery Myers
for < 15). (#1676) Co-authored-by: Jeffery Myers <[email protected]>
2021-03-24Reviewed DrawFPS() commentRay
2021-03-14Added some comments on libc dependenciesRay
2021-03-14WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistencyRay
Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-03REVIEWED: TextFormat() #1626Ray
2021-03-03WARNING: BREAKING: RENAMED: enums valuesRay
RENAMED: TextureFilterMode values RENAMED: TextureWrapMode values
2021-03-02REVIEWED: GetFileExtension() to include the dot #1523Ray
2021-01-12Reorder functionRay
2021-01-02Update year to 2021raysan5
2020-12-23Remove trailing spacesraysan5
2020-12-19Corrected DrawTextRecEx() bugRay
2020-12-19Support font chars padding on drawing #1432Ray
Previous implementation did not consider any padding while drawing the characters on screen (despite being available on the font atlas), so, only minimum character area was drawn. If some text effect shader was required (shadow, glow, outline...), there was no space in the drawn quad to draw that pixels effect. This commit corrects that issue.
2020-12-18WARNING: RENAMED several functions for consistency #1440Ray
This is a BREAKING CHANGE! To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory: - RENAMED: GetImageData() -> LoadImageColors() - RENAMED: GetImagePalette() -> LoadImagePalette() - RENAMED: GetWaveData() -> LoadWaveSamples() - ADDED: UnloadImageColors() - ADDED: UnloadImagePalette() - ADDED: UnloadWaveSamples()
2020-12-14Added additional charsPadding initialization #1432Ray
2020-11-28ADDED: UnloadFontData()raysan5
2020-11-15Commented new featureraysan5
2020-11-15[text] Consider characters padding -WIP- #1432raysan5
2020-11-03Remove trailing spacesRay
2020-09-16Add security checks when loading data from memoryraysan5
2020-09-14Review memory loading functions signesnessRay
2020-09-13ADDED: LoadFontFromMemory() (TTF only) #1327Ray
2020-09-13WARNING: REDESIGNED: LoadFontData()Ray
2020-08-29DrawTextEx(): Minor tweakraysan5
2020-08-15Review issue with .fnt -> .png path #1351Ray
When .fnt file is in the .exe path, image path was wrongly calculated