Commit Graph
44 Commits
Author SHA1 Message Date
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
Johannes Schickel 243de5950f GRAPHICS: Slight cleanup in BDF code. 2012-01-06 15:52:55 +01:00
Johannes Schickel 08b6f28d54 GRAPHICS: Rework BDF font code. 2012-01-06 15:38:29 +01:00
Chris Warren-Smith 59739a7a0e BADA: Initial BADA port implementation 2011-08-21 16:37:06 +10:00
Christoph Mallon 23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Johannes Schickel a79f529f4c GRAPHICS: Fix possible memory leak in BdfFont code. 2011-07-01 21:55:21 +02:00
Johannes Schickel fa5f8dc703 GRAPHICS: Rename NewFont to BdfFont. 2011-07-01 21:53:01 +02:00
Johannes Schickel 9e3366d66e GRAPHICS: Format NewFont code with astyle. 2011-07-01 21:20:01 +02:00
Johannes Schickel 8201df7bb6 GRAPHICS: Move NewFont code to a separate file. 2011-07-01 21:10:25 +02:00