Le Philousophe
7be89a3abc
GRAPHICS: Fix BDF font rendering when x is negative
2026-04-26 11:55:32 +02:00
Orgad Shaneh
444e73d30b
GRAPHICS: Fix compiler warning on release build
...
graphics/fonts/bdf.cpp: In static member function 'static Graphics::BdfFont* Graphics::BdfFont::scaleFont(const Graphics::BdfFont*, int)':
graphics/fonts/bdf.cpp:835:61: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
835 | byte *advances = new byte[data.numCharacters];
| ^
In file included from common/scummsys.h:160,
from common/system.h:25,
from graphics/fonts/bdf.h:25,
from graphics/fonts/bdf.cpp:22:
C:/msys64/mingw64/include/c++/15.1.0/new:140:26: note: in a call to allocation function 'void* operator new [](std::size_t)' declared here
140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
| ^~~~~~~~
2025-05-16 07:51:51 +03:00
Le Philousophe
226de788c8
GRAPHICS: Make API use the Path class
2023-12-24 13:19:25 +01:00
Matthew Duggan
0b4aa788ff
GRAPHICS: Correct cleanup loop on BDF load failure
...
Identified by xcode analysis, the cleanup code would have crashed before as it
was using the wrong loop variable.
2023-12-10 10:04:30 +11:00
D G Turner
c674de750d
GRAPHICS: Remove Unused Variables Causing GCC Warnings from BDF Font Code
2023-07-09 03:53:44 +01:00
elasota
44eb2540cb
GRAPHICS: Improve BDF scaling quality.
...
Instead of doing bbox-to-bbox scales, fill pixels based on distance to a reference coordinate, which ensures the same rounding behavior at each scanline.
2023-07-08 22:07:48 +03:00
Eugene Sandulenko
8c5c3f6ecc
GRAPHICS: Lower graylevel for scaled BDF fonts
...
This fixes higher resolution OpenGL GUI
2023-06-27 13:56:16 +02:00
Eugene Sandulenko
bbfd43264a
GRAPHICS: Drop offsets when scaling BDF fonts
2023-06-26 15:05:32 +02:00
Harishankar Kumar
4e6886c2a2
GRAPHICS: Fix BDF font scaling
2023-06-26 15:01:16 +02:00
Eugene Sandulenko
ae89982ded
GRAPHICS: Handle null advances and boxes in BdfFonts::scaleFont
2023-06-23 12:03:16 +02:00
NischayDiwan
aaa32cf118
GRAPHICS: Fix scaling for BDF fonts
...
- The primary change is to fix or improve the scaling of BDF fonts
- Now uses the same approach as in MacFonts scaling that is creating another surface and refactor it with a grayscalemap
- Bugs - there are still some problems when testing in capital letters
2023-04-16 21:13:50 +02:00
Eugene Sandulenko
9bb24b21f3
GRAPHICS: Use better rounding for BDF font scaling
2023-03-18 20:18:11 +01:00
Eugene Sandulenko
4ef840d93d
GRAPHICS: Const correctness
2023-02-25 15:29:30 +01:00
Eugene Sandulenko
58ca66a5d6
GRAPHICS: Added option for debug output to BDF font scaling
2023-02-25 15:29:30 +01:00
Le Philousophe
bc343edb42
GRAPHICS: Fix BDF font loading
...
When the character is out of range, just go to the next character.
2023-01-29 13:18:54 +01:00
Le Philousophe
3aa220fdb4
GRAPHICS: Don't use unsafe strcat and strcpy
2022-10-23 22:46:19 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Thierry Crozat
a3f3d71c57
GRAPHICS: Expose ascent value in font class
2021-03-23 20:25:23 +00:00
Eugene Sandulenko
b83494215d
GRAPHICS: Correctly initialize BDF fonts when scaling and reading from cache
2020-04-28 10:52:05 +02:00
Thierry Crozat
c421a25b8e
GRAPHICS: Fix mismatching malloc/delete[]
2020-04-27 23:06:15 +01:00
Eugene Sandulenko
b9a6b99575
GRAPHICS: Added more sanity checks to BDF font loading
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
b90cf5db81
GRAPHICS: Added sanity check to BDF font scaler
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
2785bdd8c1
GRAPHICS: Fixed potential memory leak in BDF
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
f7970c30a4
GRAPHICS: FONTS: Fix BDF font scaling
2020-01-07 21:57:12 +01:00
Thanasis Antoniou
672d216d11
GUI: Fix loading new (not already cached) localized fonts
2019-03-12 00:42:58 +02:00
Cameron Cawley
7a437e909c
COMMON: Move new_strdup to common/str.cpp
2018-08-18 16:30:05 +02:00
Colin Snover
f7e05a6ace
GRAPHICS: Fix incorrect maximum length passed to strlcpy
2018-08-18 16:30:05 +02:00
Colin Snover
c544d8050c
GRAPHICS: Remove use of nonstandard strdup API & fix mismatched malloc/delete
2018-08-18 16:30:05 +02:00
Willem Jan Palenstijn
3ac39075c8
GRAPHICS: Fix potentially uninitialized pointers in BDF loader
2017-11-14 09:12:15 +01:00
Bastien Bouclet
65d0984364
GRAPHICS: Fix freeing invalid pointers in the BDF font destructor
...
Fixes a crash on exit when using a non default GUI font.
Possibly fixes #10318 .
2017-11-14 06:41:06 +01:00
Colin Snover
4706a8486e
GRAPHICS: Remove dead code in BDF loadCharacter code
2017-09-10 22:17:17 -05:00
Paul Gilbert
3185ca4957
GRAPHICS: Fix compiler warning in BdfFont
2016-10-31 19:39:00 -04:00
Alexandre Detiste
f8388db32b
JANITORIAL: Typos
...
I've not fixed this one, maybe it's on purpose:
RELASE -> RELEASE
engines/mads/staticres.cpp:const char *const kGameReleaseTitleStr =
"GAME RELASE VERSION INFO";
2016-10-31 09:56:43 +01:00
Eugene Sandulenko
01cf3d2ebd
GRAPHICS: Remove debug leftover
2016-10-18 11:50:12 +02:00
Eugene Sandulenko
04f0fa36a6
GRAPHICS: Fixed BDF font scaling
2016-10-15 12:25:21 +02:00
Eugene Sandulenko
5aac0e9d39
GRAPHICS: Further work on BDF font scaling
2016-10-14 19:21:18 +02:00
Eugene Sandulenko
ce89406b9a
GRAPHICS: Fix BDF font referencing on font generation
2016-10-12 23:27:50 +02:00
Eugene Sandulenko
2cb0e45c63
GRAPHICS: Further work on BDF font scaling
2016-10-12 19:17:29 +02:00
Eugene Sandulenko
719bc03487
GRAPHICS: Added stub for BDF font scaler
2016-10-11 18:27:06 +02:00
Eugene Sandulenko
d7a452a6f6
GRAPHICS: Use PIXEL_SIZE as BDF font size
2016-10-10 14:00:41 +02:00
Eugene Sandulenko
ee476e9cf0
GRAPHICS: Parse slant from BDF fonts
2016-10-07 10:49:17 +02:00
Eugene Sandulenko
59a7993951
GRAPHICS: Fix BDF font parsing
2016-10-06 23:49:39 +02:00
Eugene Sandulenko
9730e42fac
GRAPHICS: Parse font size from BDF fonts
2016-10-06 07:44:18 +02:00
Eugene Sandulenko
0d4d5459f2
GRAPHICS: Use Family name instead of font name when reading from BDF fonts
2016-10-06 07:33:46 +02:00
Eugene Sandulenko
15e4997720
GRAPHICS: Load Face Name from BDF files
...
Also adjust the devtools and built-in fonts accordingly.
2016-10-05 23:24:53 +02:00
Johannes Schickel
53332e8066
GRAPHICS: Make GPL headers consistent in themselves.
2014-02-18 02:39:34 +01:00
Johannes Schickel
afa3f50b8a
GRAPHICS: Let Font take uint32 as character codes.
...
This is required to support UTF-32 strings but does not make them work
automatically!
2013-11-23 21:34:54 +01:00
Narek Mailian
ece8b7fb65
GRAPHICS: Fix fonts/bdf.cpp to allow for 32bpp to be used
2013-08-08 08:27:11 +02:00
Filippos Karapetis
103ae27d3a
GRAPHICS: Silence a false positive warning in MSVC
2012-01-07 22:45:59 +02:00
Johannes Schickel
d2a210feb5
GRAPHICS: Properly return 0 for late BDF cache loading fails.
2012-01-06 15:53:22 +01:00