raylib/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hanaxar 02a8a49961
Calculate exact image size in GenImageFontAtlas (#2963)
* Calculate exact image size in GenImageFontAtlas

Calculate exact image size with a method based on total glyph width and glyph row count
Current method seemed a little bit overkill with square root, log and power functions and only approximates image size which can be wonky with some weird fonts like cursive fonts.
Proposed method calculates image size directly with a simpler method and results exact image size needed.

* Update rtext.c

* Update rtext.c

Changed do-while to while loop, and also added an extra step to calculate maximum glyph width and excluding it from image width for extra safety.
2023-03-22 10:59:28 +01:00
..
external Add const qualifier to char * path argument in qoaplay_open() (#2972) 2023-03-19 20:34:22 +01:00
build.zig zig build: do not use deprecated functions (#2913) 2023-02-06 10:28:24 +01:00
CMakeLists.txt fix(build): Fix DLL build on Windows (#2951) 2023-03-06 21:10:18 +01:00
config.h Update config.h 2023-03-15 17:51:23 +01:00
Makefile Update Makefile comment to indicate arm64 as a supported Linux desktop platform (#2965) 2023-03-18 17:37:04 +01:00
minshell.html Fixed some grammar mistakes and typos. (#2914) 2023-02-09 13:17:47 +01:00
raudio.c Add const qualifier to char * path argument in qoaplay_open() (#2972) 2023-03-19 20:34:22 +01:00
raylib.dll.rc Update year to 2023 2023-01-01 16:07:51 +01:00
raylib.dll.rc.data Some tweaks 2023-03-12 20:14:32 +01:00
raylib.h Updated version to avoid confusion with 4.5 release 2023-03-20 18:03:37 +01:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc Update year to 2023 2023-01-01 16:07:51 +01:00
raylib.rc.data Some tweaks 2023-03-12 20:14:32 +01:00
raymath.h Clean trailing spaces 2023-02-05 16:30:23 +01:00
rcamera.h REVIEWED: UpdateCameraPro() to use Vector3 2023-03-12 19:40:43 +01:00
rcore.c ADDED: Security check for emscripten_run_script() #2954 2023-03-12 13:48:11 +01:00
rgestures.h Fixed some grammar mistakes and typos. (#2914) 2023-02-09 13:17:47 +01:00
rglfw.c Fix missing symbol when rglfw.c on BSD platforms (#2968) 2023-03-19 09:43:51 +01:00
rlgl.h Update rlgl.h 2023-03-14 13:06:17 +01:00
rmodels.c Fix typo in rmodels.c (#2976) 2023-03-20 16:43:22 +01:00
rshapes.c Fixed some grammar mistakes and typos. (#2914) 2023-02-09 13:17:47 +01:00
rtext.c Calculate exact image size in GenImageFontAtlas (#2963) 2023-03-22 10:59:28 +01:00
rtextures.c Remove trailing spaces 2023-03-13 12:08:23 +01:00
shell.html Fixed some grammar mistakes and typos. (#2914) 2023-02-09 13:17:47 +01:00
utils.c REVIEWED: TraceLog(), avoid possible buffer overflow 2023-03-15 13:03:55 +01:00
utils.h Update year to 2023 2023-01-01 16:07:51 +01:00