Benjamin Stigsen
9c280bc7af
TextReplace changes ( #1172 )
- Added NULL return if the replacement string (`by`) is empty
- Reordered sanity checks since there's no need to initialize variables if the strings are invalid.
před 5 roky
SasLuca
8444c3f705
Fixed offset check in GenImageFontAtlas ( #1171 )
* Fixed offset check in GenImageFontAtlas
* Fixed code formatting to follow raylib notation rules
před 5 roky
raysan5
e8a8d544c5
Review formating and signegness issues
před 5 roky
raysan5
d28e73849b
Review TRACELOG() messages
před 5 roky
raysan5
b5842434c2
Corrected missing semicolon
před 5 roky
raysan5
bc2c6251f8
[text] Review TRACELOG() messages, categorized
před 5 roky
raysan5
7ae7a87f8a
Remove trail spaces
před 5 roky
Random
e07281f8bd
Fixed DrawTextRecEx() selection when wordwrap is ON (again) ( #1149 )
před 5 roky
raysan5
4af4483f5f
Added security check in case init fails #1135
před 5 roky
Ray
7fa12844ed
[text] TextToUpper(): Added note on diacritics
před 5 roky
Ray
c3386300d3
Remove comment
před 5 roky
Ray
1be68d8cfe
Tweak on variable init
před 5 roky
Ray
5ff0776235
Remove trail spaces and some tweaks
před 5 roky
Ray
b029fb6d31
REDESIGNED: LoadFontEx()
Using new file I/O ABI
před 5 roky
Ray
c5d5d19443
Remove trail spaces
před 5 roky
Ray
a77273d8d8
Make sure current text buffer is empty #1109
před 5 roky
Ray
d62a2f793f
Improved GetFPS() calculation for average
před 5 roky
Ray
39e73ccc4d
[text] TextLength() security check
před 5 roky
Ray
484c6b360f
Reviewed Cppcheck issues #1098
před 5 roky
raysan5
34fafb733f
Corrected issue with toupper() usage
před 5 roky
Ray
f4ca5b378a
Review missing include
před 5 roky
Ray
86bdf60887
Corrected issue with TextToUpper() and TextToLower()
This issue was breaking multiple things...
před 5 roky
Ray
b5fe41f41a
Review libc dependencies and remove when possible
Just for clarification, no plans to remove libc dependency, just did some code analysis to see how much raylib depend on stardard C library. My conclusions:
- stdlib.h: primary dependency is for malloc() and free()
- stdio.h: primary dependency is for FILE access, maybe it could go through a custom ABI?
- string.h: just around 8 functions required
- math.h: just around 8 functions required
- others: 1-2 functions required for some other headers
před 5 roky
Ray
c3f06b7470
Remove all trail spaces
před 5 roky
Ray
cde26c743c
Replace TraceLog() function by TRACELOG macro
Added SUPPORT_TRACELOG_DEBUG config
před 5 roky
Ray
5ec87c4c6f
ADDED: TextCopy() #1083
před 5 roky
Ray
7ae426c377
Redesigned TextToInteger()
před 5 roky
Ray
49b723e76d
Correct issue with define
před 5 roky
raysan5
9c52a4932d
Corrected issue with types
před 5 roky
raysan5
bec467705e
Review custom allocators
před 5 roky
Ray
1f82b0d847
Comment tweak
před 5 roky
Ray
b0ce16b460
LoadFontData(): generate empty image for space
This could be required on texture packing ;)
před 5 roky
raysan5
b5b3bbb30b
Review variable name
před 5 roky
raysan5
21c30f43d4
Update year to 2020
před 5 roky
raysan5
08adb4b8c3
Check and testing timming #865
před 5 roky
Ray
3ffe34f9bb
ADDED: DrawTextCodepoint()
- Renamed GetGlyphIndex() parameter
- Review DrawTextEx() implementation
- Review DrawTextRecEx() implementation
před 5 roky
raysan5
d5aab98ac9
Review PR #1015
Just simplified code a bit
před 5 roky
brankoku
1f66f0d9a2
[text] `TextFormat()` caching ( #1015 )
před 5 roky
João Coelho
75b0264f35
fix various problems, thanks CppCheck :) ( #1005 )
* explained a bit more the core_window_letterbox example
* fixed a few 'ups' moments that could lead to mild head pain and time loss
před 5 roky
Ray
d73abe73e5
REDESIGN: TextToUtf8()
ADDED: CodepointToUtf8()
před 5 roky
Ray
f6df47dfe5
ADDED: TextToUtf8() -WIP-
RENAMED: TextCountCodepoints() -> GetCodepointsCount()
před 5 roky
Ray
06910eedfd
Minor comment tweak
před 5 roky
Ray
ca92f43c27
Review some defines
před 5 roky
Ray
ab52f98480
Update text.c
před 5 roky
Ray
b75511248d
Remove trailing spaces
před 5 roky
Ray
e40c26dea5
REVIEWED: GetCodepoints() issue
- Improved LoadBMFont()
před 5 roky
Ray
7baa2975ec
REDESIGNED: IsFileExtension()
Now it accepts a ';' separated list of extensions, useful to check multiple extensions
před 5 roky
Ray
e0cb892d2d
ADDED: GetCodepoints()
Get the unicode equivalent characters (as int array) from a UTF-8 text array... maybe this function is renamed to be clearer to users...
před 5 roky
Ray
e67c842faa
Tweak on atlas size computing
Some generated fonts were not fitting the image...
před 5 roky
Ray
2f42b0ce85
REVIEW: TextSplit()
Just adding a security check
před 5 roky