Demizdor
509d9411a1
Fixed DrawTextRecEx() selection when wordwrap is ON
6 years ago
Ray
528e164ac5
Corrected issue with wrong text measuring
6 years ago
Demizdor
86f9ea6e7a
Fixed selection in DrawTextRecEx()
6 years ago
Ray
e67ebabb02
Support custom memory management macros
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.
6 years ago
Demizdor
f3a5a6871d
Initial unicode implementation for UTF8 encoded text
6 years ago
Ray
b8ada4b877
Review creation years
6 years ago
ChillerDragon
f21761fbbb
Happy new year 2019
6 years ago
Ray
36fa0207f2
Some spacing review
6 years ago
Skabunkel
a90c9c5ade
Removed unnecessary
6 years ago
Skabunkel
fc11b360af
... tabs again... _facepalm_
6 years ago
Skabunkel
03f7483537
Missed one
6 years ago
Skabunkel
f2d5cddfc8
Fixed segmentation fult created by quick fix
6 years ago
Skabunkel
374b4d3faf
Tabs to spaces
6 years ago
Skabunkel
795c5e949d
#764 - Quick fix that clears alot of memory, there seems to be more hiding somewhere else.
6 years ago
Ray
374811c440
Change ternary operator formatting
6 years ago
Ray
a886f5e743
Remove TABS
6 years ago
Demizdor
40a76cf021
Fixed height bug in DrawTextRecEx()
6 years ago
Ray
641895b5ba
Remove end-line spaces
6 years ago
Jens Pitkanen
f9963d4ed4
Fix config.h flags
6 years ago
Ray
6dbec47488
Redesigned TextSplit() function
6 years ago
Jak Barnes
1e15616b69
Fixed as issue where strrchr in LoadBMFont would only look for forward slashes, instead of backslashes causing strlen to fail on a null string
6 years ago
Ray
7615512af1
ADDED: TextToInteger()
Custom implementation that returns -1 if it fails (no negative values supported)
6 years ago
Ray
5755c5e310
Review DrawTextRecEx() formatting
6 years ago
Rob Loach
90d5bb79e5
Fix font cannot be narrowed to type 'int'
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.
6 years ago
Demizdor
6f66425946
Added DrawTextRecEx()
6 years ago
Ray
e91c84e33a
Remove comment
6 years ago
raysan5
1038e79b36
Corrected issue with text measure on Latin-1 chars
Considering chars inputs come in UTF8 form!
6 years ago
raysan5
0619571149
ADDED: DrawTextRec() and example
6 years ago
raysan5
01338b0a14
WARNING: BREAKING CHANGE
Added a bunch of useful text management functions.
Consequently, some already available functions like `FormatText()` and `SubText()` has been renamed for consistency. Created temporal fallbacks for old names.
raylib version bumped to 2.3.
6 years ago
raysan5
96207a8a02
REVIEWED: LoadFontEx()
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
6 years ago
Ray
87ad244ee0
Exposed LoadFontFromImage()
6 years ago
Ray
f822650a3b
Support externally provided compilation flags
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
6 years ago
Ray
7361ed24e2
Added support for .otf fonts
stb_truetype supports some .otf fonts, just exposed that functionality.
6 years ago
Ray
a8ac6e2ef9
Increase text management buffers size
6 years ago
Ray
fc1c9505ba
Remove end-line spaces
6 years ago
Ray
298203a41a
ADDED: Some functions...
text: IsEqualText() -WIP-
audio: SaveWAV()
audio: ExportWaveAsCode()
textures: ExportImageAsCode()
6 years ago
Ray
72431c6c36
Code tweaks
6 years ago
Ray
550dd40cb3
ADDED: SplitText() function
6 years ago
Ray
3b674cd281
Some security checks on font loading
6 years ago
Ray
764766bfb2
Some formatting tweaks
6 years ago
noshbar
ec6b21bd91
Fixes memory leak in text.c
GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
6 years ago
Ray
ec5c9686b3
Improved data export capabilities!
REVIEWED: ExportImage()
REVIEWED: ExportMesh()
ADDED: ExportWave()
REMOVED: Internal funcs: SavePNG(), SaveBMP()
NOTE: These changes break the API (parameters order)
6 years ago
Ray
5b09630d45
Update mini_al to v0.8.8
Some minor tweaks around
6 years ago
Ray
dfb8837c46
Support aliased font texture generation
Useful for bitmaps pixelated fonts where anti-aliasing is not desired!
Change also enables additional font generation mechanisms in a future (cleartype, hinting...).
6 years ago
Ray
d0608b031a
Corrected issue with types
6 years ago
Ray
b042fe12e6
Reviewed spacings on latest PR
6 years ago
Kim Kulling
ecf8bff4aa
Fix compiler warnings, first part
6 years ago
Ray
292499bdeb
Reviewed LoadFontData() and GenImageFontAtlas()
7 years ago
raysan5
103bc7dfc6
Corrected issue with GetFontDefault()
Note for me: Replace All is NOT your friend...
7 years ago
raysan5
d881c73257
Renamed GetDefaultFont() to GetFontDefault()
Library consistency rename... yes, I know, it breaks the API...
7 years ago