Commit Graph

101 Commits

Author SHA1 Message Date
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
Eugene Sandulenko
bfb757c3c0 GRAPHICS: Load Mac font heights too (still unused) 2017-08-01 10:42:21 +02:00
Eugene Sandulenko
940b2a20f1 Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1.

With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat
eefa72afa1 COMMON: Change way the Singleton instances are instantiated
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Eugene Sandulenko
b4a31646ff GRAPHICS: Added missing include 2017-01-30 10:10:07 +01:00
Eugene Sandulenko
7808005841 JANITORIAL: Cleanup 2017-01-27 10:22:23 +01:00
Eugene Sandulenko
d99036a480 GRAPHICS: More fixes to MacFont scaling. Now it does work 2017-01-26 18:45:24 +01:00
Eugene Sandulenko
f7ada97cf8 GRAPHICS: Fixes to MacFont scaling 2017-01-26 18:08:03 +01:00
Eugene Sandulenko
e2b1cd5c80 GRAPHICS: Implemented test for MacFont scaling 2017-01-25 12:44:24 +01:00
Eugene Sandulenko
b84ab35363 GRAPHICS: Plug MacFont scaler in 2017-01-24 23:33:59 +01:00
Eugene Sandulenko
41e93fca16 GRAPHICS: Further work on MacFont scaling 2017-01-24 23:21:29 +01:00
Eugene Sandulenko
7396965005 GRAPHICS: Fix number of memory leaks and wanrings 2017-01-23 20:27:00 +01:00
Eugene Sandulenko
8a476715f6 GRAPHICS: More work on MacFont scaling 2017-01-21 23:46:21 +01:00
Eugene Sandulenko
76cfde0722 GRAPHICS: Further work on MacFont font scaling 2017-01-20 09:01:01 +01:00
Eugene Sandulenko
286a74adeb GRAPHICS: Fix copy/paste errors with MacFont size processing 2017-01-20 08:51:52 +01:00
Eugene Sandulenko
d2e31b1869 GRAPHICS: Initial code for scaling MacFonts 2017-01-19 21:22:30 +01:00
Eugene Sandulenko
6fa46810f5 GRAPHICS: Encapsulate all MacFONTFont class variables into a single struct 2017-01-19 11:11:05 +01:00
Eugene Sandulenko
4ede54e6b0 GRAPHICS: Rename MacFont to MacFONTFont to avoid clashed 2017-01-17 20:30:32 +01:00
Eugene Sandulenko
1fea15ac7b GRAPHICS: Implementing kerning calculation for MacFonts 2017-01-17 18:44:27 +01:00
Eugene Sandulenko
be07b004e0 GRAPHICS: Split out MacFontFamily class out of MacFont 2017-01-17 18:14:02 +01:00
D G Turner
a8d975f032 GRAPHICS: Fix Zero Length Format String Compiler Warnings. 2017-01-17 11:00:18 +00:00
Eugene Sandulenko
4236d93aae GRAPHICS: Fix FOND loading 2017-01-17 10:56:33 +01:00
Eugene Sandulenko
b0e06b414d GRAPHICS: Added debug output to FOND loading 2017-01-17 10:56:33 +01:00
Eugene Sandulenko
13422c3151 GRAPHICS: More work on FOND loading 2017-01-17 00:33:34 +01:00
Eugene Sandulenko
aef95a6964 GRAPHICS: First part for reading FOND Mac resources 2017-01-16 22:54:16 +01:00
Eugene Sandulenko
5d18151b55 GRAPHICS: Initial code for reading FONT Mac resources 2017-01-16 19:21:50 +01: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
b5d4c302d0 GRAPHICS: Fix built-in font parameters 2016-10-12 22:12:40 +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
Filippos Karapetis
5151ec0fe0 GRAPHICS: Silence an MSVC warning 2016-01-08 02:01:27 +02:00
Bastien Bouclet
2d86f6da9c GRAPHICS: Introduce a size mode for TrueType fonts
Allows to match Windows font size selection by converting font heights
to point sizes using the TrueType tables.
2015-12-21 18:41:14 +01:00
Matthew Hoops
75acef7566 GRAPHICS: Force a cast to int to avoid gcc warnings 2015-04-11 16:12:47 -04:00
Torbjörn Andersson
6f7b0311af GRAPHICS: Fix GCC signed/unsigned warnings. 2015-03-02 08:38:33 +01:00
Johannes Schickel
248ea3c1ab GRAPHICS: Allow negative xOffset in TTF.
This should improve the visual looks of many fonts. However, it might result
in the first line of the glyph to be drawn left of the position specified in
drawChar.
2014-09-03 22:55:48 +02:00
Johannes Schickel
d55cd8f3b4 GRAPHICS: Allow to query the bounding box of chars/strings drawn with Font API. 2014-09-03 22:55:48 +02:00
Johannes Schickel
5b03ba04d7 GRAPHICS: Allow client code to specify TTF render mode.
This allows clients to use the default FreeType2 render mode instead of light.
We really only use light as default because that's what looks best with the
font we use in our GUI right now (which is the same reason why formerly light
was always used in non-monochrome mode).
2014-06-09 01:04:47 +02:00