Commit Graph

29 Commits

Author SHA1 Message Date
Ray 35c777ef2c REVIEWED: Avoid crash on bad data provided 2022-08-18 15:11:23 +02:00
Dan Bechard 56072a631d Fix Codepoint position truncation (#2636)
This truncation causes text that spans the zero coord boundary to round differently left or zero vs. right of zero, in turn causing letters to appear squished together. If you actually need the position to be an integer, you should instead `floorf()` the float, rather than doing an integer truncation, but I don't see any reason to convert it to an integer in the first place. Everything else in the equation is a float.
2022-08-13 11:18:57 +02:00
Ray fd191a32ea Remove trailing spaces 2022-08-02 00:36:31 +02:00
Ray bb6b43b7cb REVIEWED: GenImageFontAtlas() #2556
Just reviewed font atlas size estimation, now it considers `fontSize` instead of `chars[i].image.height`, increasing considerably the atlas size estimation.
2022-07-29 12:01:18 +02:00
veclavtalica 63568721f9 fix: precision loss, discard unused (#2541) 2022-06-24 10:59:31 +02:00
The Tophat Demon a6e31cadbd Changed ExportFontAsCode to use given font's padding. (#2525) 2022-06-17 00:12:21 +02:00
Ray 8294e04749 Correct typo 2022-05-29 18:23:48 +02:00
Ray fe28aa7c9b Review log messages 2022-05-29 17:39:10 +02:00
Ray df3f64bfd2 Corrected typo 2022-05-07 18:04:34 +02:00
Ray 666aa44a84 Reviewed some comments 2022-05-01 11:14:28 +02:00
Ray 9c2d337e99 Update rtext.c 2022-03-29 18:11:33 +02:00
megagrump 7584ce6f48 Increase atlas size guesstimate; print warnings if atlas size is too small (#2365) 2022-03-01 11:26:48 +01:00
raysan5 937e7b3dd9 REVIEWED: Some functions input parametes that should be const 2022-02-20 20:35:28 +01:00
raysan5 d4382f4a52 Removed trailing spaces 2022-02-18 20:30:46 +01:00
Ray 4bc6e0d7de Update rtext.c 2022-02-13 10:47:19 +01:00
Siddharth Roy e5ee69a0f5 Add DrawTextCodepoints (#2308)
* Add DrawTextCodepoints

* Fixed top comment
2022-01-26 12:55:34 +01:00
Ray 2116a98745 ADDED: ExportFontAsCode() 2022-01-03 20:45:56 +01:00
raysan5 a940f41b4b Update year to 2022 2021-12-31 20:06:22 +01:00
raysan5 803ce9f44b Detected some pixel-errors due to rounding issues on position 2021-12-28 15:39:57 +01:00
Ray fd0e3a4fdd REVIEWED: GetCodepoint() #2201 2021-12-09 20:13:53 +01:00
Ray e637ad9d2a Support custom modules inclusion
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
2021-12-04 19:56:02 +01:00
Ray 21ec8c38ae Review variables initialization
- All variables are initialized on declaration, some arrays were not properly initialized
 - Static array buffers require memset() for re-initialization on every function call
2021-11-09 11:49:03 +01:00
Luke Krasnoff 8ec5b2dc2f Protect TextIsEqual from NULLs (#2121) 2021-11-09 11:37:55 +01:00
raysan5 bba035c20c Minor type tweak 2021-11-01 19:14:55 +01:00
Ray 83b3478fe4 Reviewed some TODO 2021-10-13 23:45:57 +02:00
Ray a1db0220a1 REVIEWED: LoadFontFromImage()
Avoid crash on wrong sprite font
2021-10-12 23:00:00 +02:00
Ray f869229b7f Minor format tweaks 2021-10-03 12:09:59 +02:00
Ray 00a763ea44 Reviewed some TODO comments 2021-09-23 00:18:47 +02:00
Ray 99ab4d6cb8 WARNING: MODULES RENAMING!!!
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required.

The renamed modules are:
 - `core` -> `rcore`
 - `shapes` -> `rshapes`
 - `textures` -> `rtextures`
 - `text` -> `rtext`
 - `models` -> `rmodels`
 - `camera` -> `rcamera`
 - `gestures` -> `rgestures`
 - `core` -> `rcore`

All the build systems has been adapted to this change.
2021-09-22 00:15:06 +02:00