Ray
1eb8ff5e54
`LoadFontDefault()`: Initialize glyphs and recs to zero #4319
10 months ago
Ray
f5ef357810
Update rtext.c
10 months ago
Ray
4c9282b090
ADDED: `isGpuReady` flag, allow font loading with no GPU acceleration
10 months ago
listeria
cc88e0b780
rtext: always multiply by sign in TextToFloat() ( #4273 )
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
11 months ago
Ray
3abe728712
Minor tweaks
1 year ago
Ray
0979eafa84
WARNING: REMOVED: Default font fallback
1 year ago
Peter0x44
dfabbd8ba8
[rtext] Don't return default font if LoadFontEx fails ( #4077 )
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.
1 year ago
Jeffery Myers
e96bab7ce6
[Build] Fix warnings when building in VS 2022 ( #4095 )
* 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>
1 year ago
Alice Nyaa
b0d49579c1
fixed LoadCodepoints returning a freed ptr when count is 0 ( #4089 )
1 year ago
Ray
8cbde7f84c
tweaks
1 year ago
IoIxD
39f12859dc
rtext: added functions for camel case and snake case (reopened due to 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>
1 year ago
Ray
e37d19ab1e
REVIEWED: `ExportFontAsCode()`, avoid `const` #4013
1 year ago
DarkAssassin23
2804e75869
[rtext] Added cast to ExportFontAsCode output to fix C++ compiler errors ( #4013 )
1 year ago
Ray
9d67f4734b
REVIEWED: LoadBMFont(), issue on not glyph data initialized
1 year ago
Ray
763129e96b
Reviewed some warnings
1 year ago
Ray
b03c8ba945
WARNING: BREAKING: REDESIGN: `SetTextLineSpacing()`
Redesigned function to only consider separation between the end of vertical size of one line and the beginning of next line
1 year ago
Ray
e85f245ad4
REVIEWED: Remove final punctuation in code comments
1 year ago
Ray
29ce13b777
Code gardening
- Review formatting
- Improve readability for some functions result return
- Minimize early returns
- Align LoadFileData() to UnloadFileData()
1 year ago
Ray
51486a0606
Update rtext.c
1 year ago
Ray
fea3395fc1
Review formatting
1 year ago
Ray
e42e3188f5
Remove some unneeded line breaks
1 year ago
Ray
401c5a8638
Minor tweaks to avoid some CodeQL warnings
1 year ago
Ray
bb741f53a8
Update rtext.c
1 year ago
Mingjie Shen
6280771dad
[rtext] Change strcpy to strncpy to fix buffer overflow ( #3795 )
1 year ago
Ray
e9291fa4c7
Update rtext.c
1 year ago
Ray
868d515fbc
Update rtext.c
1 year ago
Ray
eed56a45d6
REVIEWED: `LoadFontDataBDF()` name and formating
1 year ago
Stanley Fuller
0932cd3059
[rtext] Add BDF font support ( #3735 )
* Add BDF font support
* Include font ascent in glyph y-offset when loading BDF font
1 year ago
Marrony Neris
c0b081fac0
Fix MeasureTextEx() height calculation ( #3770 )
1 year ago
Idir Carlos Aliane
cb97a8063d
[rtext.c] fixing some comments to align comments style ( #3756 )
1 year ago
Tim Romero
2c124c96df
[rtext] Adjust font atlas area calculation so padding area is not underestimated at small font sizes. ( #3719 )
1 year ago
Ray
3f1e59a7cf
Update copyright to 2024
1 year ago
ubkp
5b5a2d035d
Fix TextReplace warning for const ( #3687 )
1 year ago
maverikou
7cfdf33ff0
TextReplace const correctness ( #3678 )
* TextReplace const correctness
* cleanup
1 year ago
Dongkun Lee
9de79861ea
BM Font Extender ( #3536 )
* loadbmfont
* bmfontextender
* bm font
* Modify LoadBM Font
* Delete loadbmfontex.diff
* REVIEWED: `LoadBMFont()` PR
* Update rtext.c
* Update rtext.c
---------
Co-authored-by: Dongkun Lee <hope81dklee@outlook.com>
Co-authored-by: Ray <raysan5@gmail.com>
1 year ago
Benjamin Schmid Ties
6083d2b9f3
fixed coding style in function TextToFloat ( #3627 )
* function to convert string to float
* fix code to match coding conventions
1 year ago
Ray
731b210f51
REVIEWED: WARNING: `LoadFontData()` avoid fallback glyphs
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.
1 year ago
Ray
a016b4ded2
REVIEWED: `LoadFontData()`, load image only if glyph has been found in font
1 year ago
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
1 year ago
Ray
e4547eb422
Remove trail spaces
1 year ago
Ray
99ede0f747
Added some notes for alternative implementations #3362
1 year ago
Ray
876e6b3a0d
REVIEWED: `TextFormat()`, added "..." for truncation #3366
It seems more standard than [TRUN]
1 year ago
Ray
61af8e7631
REVIEWED: #3399 , Fix #3366
1 year ago
Murlocohol
28fb58f0ea
[rtext] TextFormat() warn user if buffer overflow occured. ( #3399 )
* [rtext] TextFormat now alerts user to truncation.
* Update rtext.c
* Update rcore.c
* Update rtext.c
1 year ago
Ray
e75f85ce58
REVIEWED: `TextToPascal()` issue when first char is uppercase
1 year ago
Ray
10e4aa32f8
Update rtext.c
1 year ago
Ray
9cce5a93ff
Fix #3293
1 year ago
Ray
75e5cd86d7
Use internal default allocators, instead of user-exposed ones
1 year ago
Ray
0f447f1fb6
REVIEWED: Data size type consistency between functions #3168
1 year ago
Ray
ec6d3bb688
RENAMED: LoadFont*() parameter names for consistency and coherence
1 year ago