Thierry Crozat
aa6c07f03e
AGS: Plugin API: few adjustments to recently added methods
...
From upstream ddf9aee9c360a60edcc2f3107fbac41f8efbe93c
2022-12-15 22:40:17 +01:00
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
Thierry Crozat
b13b408972
AGS: renamed IAGSFontRenderer2 to IAGSFontRendererInternal
...
From upstream 6fc7c295728bf4d6815596f12a8587c80dbe4a5e
2022-10-10 00:16:16 +01:00
Paul Gilbert
f93e757aff
AGS: Fix global constructor/destructor warnings
2022-05-29 15:44:45 -07:00
Paul Gilbert
b1649597d7
AGS: Replaced Math/std Min/Max with ScummVM macros
...
Inspired by 6dee5ee6f271c600e30879d892295ea6069e8cc9
2022-05-05 22:41:10 -07:00
Paul Gilbert
da1178d905
AGS: Implemented proper HasAlphaChannel for all gui controls
...
From upstream 83306ee321e127368a41068f32bd4899ae00223e
2022-05-05 22:41:06 -07:00
Paul Gilbert
68e5184afa
AGS: Replaced some (v)sprintfs with sNprintf counterparts
...
From upstream a34bd392249f87a152dc470d90c67a7d193a28d8
2022-04-27 20:51:30 -07:00
Paul Gilbert
5cc7daedfe
AGS: Use outline fonts too when getting outlined text width / height
...
From upstream 1f3960014a313fc7b47dd26274ffd87b96bbbb87
2022-04-22 20:34:19 -07:00
Paul Gilbert
1dd1946aff
AGS: Attempt to clarify meaning of the Font's import size
...
From upstream 71adfaa57e83b36315fc36feddaa72dd46dd11c5
2022-04-12 22:27:53 -07:00
Paul Gilbert
e379c04198
AGS: Remove deprecated method
2022-03-29 22:16:06 -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
86f3f8933b
AGS: Use real font height for speech & dialog option bitmap sizes
...
From upstream 22af623cadce89ac27777cf2178649a71fc2a345
2022-03-23 20:50:27 -07:00
Paul Gilbert
d378ce6d89
AGS: Use formal font height to set default linespacing, for now
...
From upstream aedbd80b6985981e5310c0928ad651143452ddcc
2022-03-23 20:40:34 -07:00
Paul Gilbert
c0c76de84a
AGS: An ugly workaround for legacy label linespacing
...
From upstream 9847f5b34abd7f3e5d3d1ca496ef2a991087e81e
2022-03-23 20:22:26 -07:00
Paul Gilbert
0211fa25e6
AGS: Moved linespacing precalc to post_init_font()
...
From upstream f848107265d2662819636790d24c13292fe2ec82
2022-03-23 20:17:33 -07:00
Paul Gilbert
ca4c91031b
AGS: Configurable font init mode, for backward compatibility
...
From upstream 9a11a1d4334aef99b8b516a13d5a5bcc0284fde7
2022-03-23 20:09:46 -07:00
Paul Gilbert
3e6c42ab8d
AGS: get_font_height() returns compatible height
...
From upstream 61f726f71b7aee4d7e2ec09d5252061488b9aa81
2022-03-22 22:30:14 -07:00
Paul Gilbert
ba47a913bf
AGS: Add missing code from 43425f738dc6beb7d0758e256a840c5f37a4d38a
2022-03-22 22:30:14 -07:00
Paul Gilbert
d42b639142
AGS: Always precalculate and save font linespacing (as outlined)
...
From upstream 8ba3a77e38a6dc8ace6d6393042730d73292a1a7
2022-03-22 22:30:14 -07:00
Paul Gilbert
977925d105
AGS: Some fixes of namespace Common to be Shared
2022-03-22 22:30:14 -07:00
Paul Gilbert
df29806aec
AGS: Replaced the remaining wgettextheight() with get_font_height()
...
From upstream d9c4a0306a6718cb03ccd6e84c1e63d093d9a64a
2022-03-22 22:30:13 -07:00
Paul Gilbert
dc3ce9f70a
AGS: Renamed few font functions for consistent naming style
...
From upstream 9c355da410b734edc79212009a5e1be0b502c3b0
2022-03-22 22:30:13 -07: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
Paul Gilbert
fd0e16ffc3
AGS: implemented stencil cache per Font for automatic outlining
...
From upstream e32c4bf46b5f74b904ac491bb6017ceb8f8e2bbf
2022-03-14 21:04:08 -07:00
D G Turner
6d7663b1b1
AGS: Fix Redundant Declaration Warnings
...
These are emitted by GCC when -Wredundant-decls is passed.
2022-03-09 15:28:19 +00: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
d8335ed435
AGS: Partially revert previous commit: had engine logic moved to fonts
...
From upstream a4bafa3597a98a0df1cb5f5e921b2e6651c28a89
2021-09-20 17:20:58 -07:00
Paul Gilbert
96ad02b3b9
AGS: Use real font height in game calculations, compat linespacing
...
From upstream 3a9b8f199e09b9919a201c1d2fa486a79761b339
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
122acc39b5
AGS: Fix font outlines not drawing correctly
2021-08-25 21:31:40 -07:00
Max Horn
34523aba7e
JANITORIAL: Fix some typos
2021-08-04 15:43:15 +02:00
Paul Gilbert
f1711431f6
AGS: Unicode-aware line splitting and right-to-left text mode
...
From upstream 00fee7e61e5746fe3c8722028f4f497b1949559e
2021-07-10 14:33:35 -07:00
Paul Gilbert
454cc0fff9
AGS: Properly move Lines global into Globals
2021-07-08 20:37:51 -07:00
Paul Gilbert
08cd34ecbc
AGS: Misleading set outline in fonts.cpp
...
From upstream 4a86b7280b8804ff6b5696b60e4005236ff5d769
2021-06-13 21:09:04 -07:00
Paul Gilbert
701396361c
AGS: Import of fresh codebase
2021-06-13 21:08:44 -07:00
Thierry Crozat
65e70b8202
AGS: Remove useless C-style casts
2021-03-06 21:21:22 +00:00
Paul Gilbert
3f62f198ac
AGS: Move Lines global to Globals fontLines
2021-03-01 21:12:32 -08:00
Paul Gilbert
67d0560a52
AGS: Move fonts.cpp globals to Globals
2021-03-01 20:52:53 -08:00
Paul Gilbert
1a8ae27b58
AGS: Move game & spriteset into Globals
2021-02-26 21:28:53 -08:00
Paul Gilbert
75183a5a03
AGS: gcc compilation fixes
2021-02-06 16:37:31 -08:00
Paul Gilbert
69b6cfab29
AGS: Move std/ folder into lib/
2021-02-06 16:37:31 -08:00
Paul Gilbert
12dc2c220f
AGS: Added shared/font/ folder
2021-02-06 16:37:31 -08:00
Paul Gilbert
f4544dff7a
AGS: Added shared/ac/ folder
2021-02-06 16:37:31 -08:00