Ray
292499bdeb
Reviewed LoadFontData() and GenImageFontAtlas()
před 7 roky
raysan5
103bc7dfc6
Corrected issue with GetFontDefault()
Note for me: Replace All is NOT your friend...
před 7 roky
raysan5
d881c73257
Renamed GetDefaultFont() to GetFontDefault()
Library consistency rename... yes, I know, it breaks the API...
před 7 roky
Ray
afe81d94ce
Re-added: LoadFontEx()
před 7 roky
Ray
0e135118fd
Improved GenImageFontAtlas()
před 7 roky
Ray
75ba5aca55
Improved font generation and SDF
Added: data to CharInfo struct
Added: LoadFontData()
Added: GenImageFontAtlas()
Removed: LoadFontEx()
Removed: LoadTTF() [internal]
Some code tweaks
před 7 roky
raysan5
559b9b8cc3
Corrected possible memory leak
před 7 roky
raysan5
25d5e907ec
Some code review (mainly comments)
před 7 roky
Ray
2aae62cea2
Header tweak and comments
před 7 roky
Ray San
ec33e7d705
BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support
- Jumped version to raylib 2.0-dev (too many breaking changes...)
před 7 roky
Ray San
6324697ffd
Rectangle parameters changed to float
- Some examples tweaks
- Reviewed ImageFormat()
- Use float for text fontSize
před 7 roky
Ahmad Fatoum
1841afad11
Refactor all #define SUPPORT_* into a config.h
That way, a user needs only to touch a single file to configure what
features raylib is built with.
Include guards are left out intentionally, because config.h should only
be included in source files, not headers.
Later on, config.h can also define the raylib version (#461 ).
před 7 roky
Ahmad Fatoum
80bf636f81
Don't exceed signed int range when shifting left
Fixes UB in #489 , found by UBSan.
před 7 roky
Ahmad Fatoum
76aca9b0d1
Fix possible buffer overflow in LoadBMFont
Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
před 7 roky
raysan5
4492a70a4b
Support UTF8 basic characters on ImageTextEx()
Supported UTF8 range equivalent to [128..255] (80h..FFh)
Exposed and renamed text function GetGlyphIndex()
Renamed spriteFont parameter name to simply font
Small security check on transmission mission ending screen
před 7 roky
Ray
8af5f9dfe0
Avoid rendering SPACE character!
před 7 roky
Ray
1ce8c80de9
Corrected several issues...
před 7 roky
Ray San
00c34a035c
Updated copyright year
před 8 roky
user
54587d7fdb
proper if-clauses for disabling functionality in text.c
před 8 roky
Ray
a6f9cc5629
Remove rres support
Let the user choose if using rres external library
před 8 roky
Ray San
3d755d617a
Some code tweaks...
před 8 roky
Ray
cbe0dcedfe
Corrected issue with ttf font y-offset
před 8 roky
raysan5
12cb3afd9e
Added function DrawRectangleGradientEx()
Moved function DrawRectangleT() from text module to shapes
Added some comments
před 8 roky
raysan5
88839b093c
Added function DrawRectangleT()
Usefult to draw rectangles using default font texture
před 8 roky
raysan5
9f09f6f550
Rename enum LogType names...
...to avoid possible conflicting symbols
před 8 roky
Ray
4c27412eff
Corrected issue #281
před 8 roky
raysan5
b0f8ea27e3
Renamed function for lib consistency
LoadSpriteFontTTF() --> LoadSpriteFontEx()
před 8 roky
Ray
ecfe31bf1d
Make TraceLog() public to the API
enum LogType could require some revision...
před 8 roky
Ray
1f56e8e5d0
Minor code tweaks
před 8 roky
Ray
080a79f0b0
Added IsFileExtension()
Replaced old GetExtension() function
Make IsFileExtension() public to the API
před 8 roky
Ray
2f65975c5e
Remove RBMF fileformat support
před 8 roky
Ray
b7a8a40e71
Work on configuration flags
před 8 roky
Ray
2ac7b684b5
text: configuration flags
před 8 roky
Ray
59652c75b4
Review some comments
před 8 roky
raysan5
d1c9afd1d8
Work on timming functions...
It seems Sleep() behaves weird on my computer, disabled by default
returning to the busy wait loop... also re-implemented DrawFPS() to
avoid frame blitting...
před 8 roky
Ray
05cff44d0a
Improved modules description -IN PROGRESS-
Working in modules configuration flags...
před 8 roky
raysan5
afcd748fdf
Reviewed fread() usage around the code
před 8 roky
Ray
734776b923
Commented code for review
před 8 roky
raysan5
1a879ba08e
Refactor SpriteFont struct
Now it uses CharInfo data, this way, it's better aligned with the future
RRES file format data layout for sprite font characters.
před 8 roky
Ray
c85dfd4bc6
Remove unecessary spaces...
před 8 roky
Ray
b681e8c277
Implemented Wait()
Now program is halted (OS signal call) for required amount of time every
frame, so CPU usage drops to zero, instead of using a busy wait loop.
před 8 roky
raysan5
61f6b0f707
Removed GetNextPOT(), review TraceLog()
před 8 roky
raysan5
e7464d5fc3
Review some formatting and naming
- Renamed WritePNG() to SavePNG() for consistency with other file
loading functions
- Renamed WriteBitmap() to SaveBMP() for consistency with other file
loading functions
- Redesigned SaveBMP() to use stb_image_write
před 9 roky
raysan5
852f3d4fd0
Review comments and formatting
před 9 roky
Ray
377dcb025f
Corrected some warnings
před 9 roky
raysan5
481ce3d39d
Corrected bug with alpha mask on font
Mask was wrongly applied to 8-bit font image, it generated dark borders
on the font. Grayscale image has to be considered as the alpha mask for
a completely white image to use it correctly.
před 9 roky
raysan5
6d1b712a96
Reviewed modules comments
před 9 roky
Ray
38df2cad25
Improved text measurement
Still not working correctly, font offsets are not considered
correctly...
před 9 roky
raysan5
aa945055fa
Corrected issue on chars drawing
Support by default unordered charsets
před 9 roky
raysan5
6d3b11ef91
Support unordered charset, neither fixed first char
Still requires some testing...
před 9 roky