Commit Graph
28 Commits
Author SHA1 Message Date
Thierry Crozat 19514bc2ad AGS: Common: properly restore font metrics when setting an old font renderer
From upstream f07e8e20ddf715511012aa20861b9e8cecf7aa4f
2022-10-10 23:42:34 +01:00
Thierry Crozat 98f4b82f36 AGS: added IAGSFontRenderer2 and NotifyFontUpdated
From upstream e42b1371a8258ddd47c79af04a6f78fab2a136f4
2022-10-10 23:42:34 +01:00
D G Turner dbaa9439da AGS: Remove Various Unused Variables Causing Compiler Warnings 2022-05-07 20:41:45 +01:00
Paul Gilbert 7b0bfee7cc AGS: Renamed and moved INIread/write functions for proper org&style
From upstream 18398a7d695e81575218380e1bba28010c239fdc
2022-04-27 20:25:31 -07:00
Paul Gilbert f2399dc15c AGS: Fixing various "unused variable/arg" warnings
From upstream 4b3c27c1a2b39d6c6b089adee111c6889d19ad0e
2022-04-25 19:17:26 -07:00
Paul Gilbert 5027f54a02 AGS: Added util methods for measuring preloaded TTF fonts
From upstream 89ae16e236073b6e3a06274e336ce853d906eed7
2022-03-27 19:14:53 -07:00
Paul Gilbert 0acbe50dd3 AGS: Added a flag for AGS mode that selects a font by a nominal size
From upstream 48644d35bd912bcb06aebbae2e2a1c9dc24e48d0
2022-03-27 19:14:53 -07:00
Paul Gilbert 84a54f5e8e AGS: Remade OPT_FONTLOADLOGIC into individual font's flags
From upstream 54c5303c5e0ed98609397d9e5df4114f128fb4a2
2022-03-27 13:37:14 -07:00
Paul Gilbert 5b10b7437c AGS: Added "ascender fixup" flag to the font init mode
SHA-1: 1273e64c1b82ffbcbbc90261952b6192bef9c966
2022-03-27 13:37:14 -07:00
Paul Gilbert f4935dbf39 AGS: Force readjust TTF fonts if the OPT_ANTIALIASFONTS changes
From upstream 115119eeb009fc7f2c5820b47bb866acad6498ec
2022-03-27 13:37:13 -07:00
Paul Gilbert f34cf7ce67 AGS: Apply TTF ascender hack only by the engine's request
From upstream 14679a430bf29acb6e511bb3799a5f99d9929463
2022-03-27 13:37:13 -07:00
Paul Gilbert 7132742e04 AGS: Reintroduce upstream's full alfont implementation 2022-03-27 13:37:12 -07:00
Paul Gilbert b61a661907 AGS: Removed redundant asset_size param from AssetManager::OpenAsset
From upstream 9d8456d4202be698b0a3117679745a8200c1ab9b
2022-03-20 22:11:54 -07:00
D G Turner b548bcfa28 AGS: Fix Undefined Macro Compiler Warnings
These are emitted by GCC when -Wundef is passed.

The AGS_PLATFORM_DEFINES_PSP_VARS may have previously caused those variables
to be present since undefined macros are assumed to be 0, thus the test would
have passed.
2022-03-16 09:13:02 +00:00
Paul Gilbert 448bb2d77e AGS: Moved "LucasFan" font hack to game_init, enable for all systems
From upstream 5d84ea958f9d2ba5582e69f211dbcb006ed4e187
2022-03-14 21:46:58 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert b63427641d AGS: Moved font's linespacing hack into the game_init
From upstream f8ad7b96b46c33156ee1d6c7c4b64b5029c7b93b
2021-09-21 18:45:18 -07:00
Paul Gilbert d865acf606 AGS: introduced font outline style and thickness parameters
From upstream 43425f738dc6beb7d0758e256a840c5f37a4d38a
2021-09-20 17:20:59 -07:00
Paul Gilbert 9d9080ffda AGS: Also return real TTF height in TTFFontRenderer::GetTextHeight()
From upstream 5115943fce180fe3e0bd9fe3678faa2d01b6d474
2021-09-20 17:20:58 -07:00
Paul Gilbert 8058862f7d AGS: Precalculate and save font's height on load
From upstream 47001a398a1bc4ad022645ad21e1c891a3757167

Note: Since we don't implement alfont in full, the
referenced methods are stubbed in our alfont.cpp
2021-09-20 17:20:58 -07:00
Paul Gilbert 36f5fe939e AGS: Revert load ttf font as outline for ttf font
This reverts commit d561d865e4.
2021-09-14 19:33:20 -07:00
antoniou79 d561d865e4 AGS: Only load ttf font as outline for ttf font
Possible fix for https://bugs.scummvm.org/ticket/12923
2021-09-14 19:01:43 -07:00
Paul Gilbert 6dea8fd43d AGS: Fix crash in Time Gentelmen Please 2021-09-14 18:54:14 -07:00
Paul Gilbert 122acc39b5 AGS: Fix font outlines not drawing correctly 2021-08-25 21:31:40 -07:00
Thierry Crozat d8b46ff8c3 AGS: Remove incorrect TODO
The ShouldAntiAliasText check is now done in ALFONT_FONT::getFont()
so we do not need a separate alfont_textout_aa function.
2021-06-14 20:21:10 +01:00
Paul Gilbert 1ce212d506 AGS: removed unused function
From upstream fc6006ca3375ed19f23c8ef1c0b060af7be273d9
2021-06-13 21:09:14 -07:00
Paul Gilbert b104d78888 AGS: Enabling disabled blocks, and making ScummVM needed changes 2021-06-13 21:08:50 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00