Demizdor
509d9411a1
Fixed DrawTextRecEx() selection when wordwrap is ON
hace 6 años
Ray
528e164ac5
Corrected issue with wrong text measuring
hace 6 años
Demizdor
86f9ea6e7a
Fixed selection in DrawTextRecEx()
hace 6 años
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.
hace 6 años
Demizdor
f3a5a6871d
Initial unicode implementation for UTF8 encoded text
hace 6 años
Ray
b8ada4b877
Review creation years
hace 6 años
ChillerDragon
f21761fbbb
Happy new year 2019
hace 6 años
Ray
36fa0207f2
Some spacing review
hace 6 años
Skabunkel
a90c9c5ade
Removed unnecessary
hace 6 años
Skabunkel
fc11b360af
... tabs again... _facepalm_
hace 6 años
Skabunkel
03f7483537
Missed one
hace 6 años
Skabunkel
f2d5cddfc8
Fixed segmentation fult created by quick fix
hace 6 años
Skabunkel
374b4d3faf
Tabs to spaces
hace 6 años
Skabunkel
795c5e949d
#764 - Quick fix that clears alot of memory, there seems to be more hiding somewhere else.
hace 6 años
Ray
374811c440
Change ternary operator formatting
hace 6 años
Ray
a886f5e743
Remove TABS
hace 6 años
Demizdor
40a76cf021
Fixed height bug in DrawTextRecEx()
hace 6 años
Ray
641895b5ba
Remove end-line spaces
hace 6 años
Jens Pitkanen
f9963d4ed4
Fix config.h flags
hace 6 años
Ray
6dbec47488
Redesigned TextSplit() function
hace 6 años
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
hace 6 años
Ray
7615512af1
ADDED: TextToInteger()
Custom implementation that returns -1 if it fails (no negative values supported)
hace 6 años
Ray
5755c5e310
Review DrawTextRecEx() formatting
hace 6 años
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.
hace 6 años
Demizdor
6f66425946
Added DrawTextRecEx()
hace 6 años
Ray
e91c84e33a
Remove comment
hace 6 años
raysan5
1038e79b36
Corrected issue with text measure on Latin-1 chars
Considering chars inputs come in UTF8 form!
hace 6 años
raysan5
0619571149
ADDED: DrawTextRec() and example
hace 6 años
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.
hace 6 años
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.
hace 6 años
Ray
87ad244ee0
Exposed LoadFontFromImage()
hace 6 años
Ray
f822650a3b
Support externally provided compilation flags
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
hace 6 años
Ray
7361ed24e2
Added support for .otf fonts
stb_truetype supports some .otf fonts, just exposed that functionality.
hace 6 años
Ray
a8ac6e2ef9
Increase text management buffers size
hace 6 años
Ray
fc1c9505ba
Remove end-line spaces
hace 6 años
Ray
298203a41a
ADDED: Some functions...
text: IsEqualText() -WIP-
audio: SaveWAV()
audio: ExportWaveAsCode()
textures: ExportImageAsCode()
hace 6 años
Ray
72431c6c36
Code tweaks
hace 6 años
Ray
550dd40cb3
ADDED: SplitText() function
hace 6 años
Ray
3b674cd281
Some security checks on font loading
hace 6 años
Ray
764766bfb2
Some formatting tweaks
hace 6 años
noshbar
ec6b21bd91
Fixes memory leak in text.c
GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
hace 6 años
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)
hace 6 años
Ray
5b09630d45
Update mini_al to v0.8.8
Some minor tweaks around
hace 6 años
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...).
hace 6 años
Ray
d0608b031a
Corrected issue with types
hace 6 años
Ray
b042fe12e6
Reviewed spacings on latest PR
hace 6 años
Kim Kulling
ecf8bff4aa
Fix compiler warnings, first part
hace 6 años
Ray
292499bdeb
Reviewed LoadFontData() and GenImageFontAtlas()
hace 7 años
raysan5
103bc7dfc6
Corrected issue with GetFontDefault()
Note for me: Replace All is NOT your friend...
hace 7 años
raysan5
d881c73257
Renamed GetDefaultFont() to GetFontDefault()
Library consistency rename... yes, I know, it breaks the API...
hace 7 años