Benjamin Stigsen
2d6303e9fe
Allow for empty replacement string ( #1178 )
5 年之前
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.
5 年之前
SasLuca
8444c3f705
Fixed offset check in GenImageFontAtlas ( #1171 )
* Fixed offset check in GenImageFontAtlas
* Fixed code formatting to follow raylib notation rules
5 年之前
raysan5
e8a8d544c5
Review formating and signegness issues
5 年之前
raysan5
d28e73849b
Review TRACELOG() messages
5 年之前
raysan5
b5842434c2
Corrected missing semicolon
5 年之前
raysan5
bc2c6251f8
[text] Review TRACELOG() messages, categorized
5 年之前
raysan5
7ae7a87f8a
Remove trail spaces
5 年之前
Random
e07281f8bd
Fixed DrawTextRecEx() selection when wordwrap is ON (again) ( #1149 )
5 年之前
raysan5
4af4483f5f
Added security check in case init fails #1135
5 年之前
Ray
7fa12844ed
[text] TextToUpper(): Added note on diacritics
5 年之前
Ray
c3386300d3
Remove comment
5 年之前
Ray
1be68d8cfe
Tweak on variable init
5 年之前
Ray
5ff0776235
Remove trail spaces and some tweaks
5 年之前
Ray
b029fb6d31
REDESIGNED: LoadFontEx()
Using new file I/O ABI
5 年之前
Ray
c5d5d19443
Remove trail spaces
5 年之前
Ray
a77273d8d8
Make sure current text buffer is empty #1109
5 年之前
Ray
d62a2f793f
Improved GetFPS() calculation for average
5 年之前
Ray
39e73ccc4d
[text] TextLength() security check
5 年之前
Ray
484c6b360f
Reviewed Cppcheck issues #1098
5 年之前
raysan5
34fafb733f
Corrected issue with toupper() usage
5 年之前
Ray
f4ca5b378a
Review missing include
5 年之前
Ray
86bdf60887
Corrected issue with TextToUpper() and TextToLower()
This issue was breaking multiple things...
5 年之前
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
5 年之前
Ray
c3f06b7470
Remove all trail spaces
5 年之前
Ray
cde26c743c
Replace TraceLog() function by TRACELOG macro
Added SUPPORT_TRACELOG_DEBUG config
5 年之前
Ray
5ec87c4c6f
ADDED: TextCopy() #1083
5 年之前
Ray
7ae426c377
Redesigned TextToInteger()
5 年之前
Ray
49b723e76d
Correct issue with define
5 年之前
raysan5
9c52a4932d
Corrected issue with types
5 年之前
raysan5
bec467705e
Review custom allocators
5 年之前
Ray
1f82b0d847
Comment tweak
5 年之前
Ray
b0ce16b460
LoadFontData(): generate empty image for space
This could be required on texture packing ;)
5 年之前
raysan5
b5b3bbb30b
Review variable name
5 年之前
raysan5
21c30f43d4
Update year to 2020
5 年之前
raysan5
08adb4b8c3
Check and testing timming #865
5 年之前
Ray
3ffe34f9bb
ADDED: DrawTextCodepoint()
- Renamed GetGlyphIndex() parameter
- Review DrawTextEx() implementation
- Review DrawTextRecEx() implementation
5 年之前
raysan5
d5aab98ac9
Review PR #1015
Just simplified code a bit
5 年之前
brankoku
1f66f0d9a2
[text] `TextFormat()` caching ( #1015 )
5 年之前
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
5 年之前
Ray
d73abe73e5
REDESIGN: TextToUtf8()
ADDED: CodepointToUtf8()
5 年之前
Ray
f6df47dfe5
ADDED: TextToUtf8() -WIP-
RENAMED: TextCountCodepoints() -> GetCodepointsCount()
5 年之前
Ray
06910eedfd
Minor comment tweak
5 年之前
Ray
ca92f43c27
Review some defines
5 年之前
Ray
ab52f98480
Update text.c
5 年之前
Ray
b75511248d
Remove trailing spaces
5 年之前
Ray
e40c26dea5
REVIEWED: GetCodepoints() issue
- Improved LoadBMFont()
5 年之前
Ray
7baa2975ec
REDESIGNED: IsFileExtension()
Now it accepts a ';' separated list of extensions, useful to check multiple extensions
5 年之前
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...
5 年之前
Ray
e67c842faa
Tweak on atlas size computing
Some generated fonts were not fitting the image...
5 年之前