| Age | Commit message (Collapse) | Author |
|
|
|
slashes, instead of backslashes causing strlen to fail on a null string
|
|
Custom implementation that returns -1 if it fails (no negative values supported)
|
|
|
|
Added DrawTextRecEx()
|
|
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.
|
|
|
|
|
|
Considering chars inputs come in UTF8 form!
|
|
|
|
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.
|
|
Changed parameters order for consistency with LoadFontData() and other functions when an array is passed by parameter and array size is the following parameter.
|
|
|
|
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
|
|
stb_truetype supports some .otf fonts, just exposed that functionality.
|
|
|
|
|
|
text: IsEqualText() -WIP-
audio: SaveWAV()
audio: ExportWaveAsCode()
textures: ExportImageAsCode()
|
|
|
|
|
|
|
|
|
|
GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
|
|
REVIEWED: ExportImage()
REVIEWED: ExportMesh()
ADDED: ExportWave()
REMOVED: Internal funcs: SavePNG(), SaveBMP()
NOTE: These changes break the API (parameters order)
|
|
Some minor tweaks around
|
|
Useful for bitmaps pixelated fonts where anti-aliasing is not desired!
Change also enables additional font generation mechanisms in a future (cleartype, hinting...).
|
|
|
|
|
|
|
|
|
|
Note for me: Replace All is NOT your friend...
|
|
Library consistency rename... yes, I know, it breaks the API...
|
|
|
|
|
|
Added: data to CharInfo struct
Added: LoadFontData()
Added: GenImageFontAtlas()
Removed: LoadFontEx()
Removed: LoadTTF() [internal]
Some code tweaks
|
|
|
|
|
|
|
|
- Preparing MP3 files support
- Jumped version to raylib 2.0-dev (too many breaking changes...)
|
|
- Some examples tweaks
- Reviewed ImageFormat()
- Use float for text fontSize
|
|
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).
|
|
Fixes UB in #489, found by UBSan.
|
|
Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
|
|
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
|
|
|
|
|
|
|
|
|
|
Let the user choose if using rres external library
|
|
|