Commit Graph
92 Commits
Author SHA1 Message Date
Eugene Sandulenko fb7095f5a4 COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
lb_ii b8cf678a29 WINTERMUTE: Use BIDI_PAR_RTL / BIDI_PAR_LTR directions 2021-06-18 23:03:36 +03:00
lb_ii c433a2c999 WINTERMUTE: Merge internal methods displayTrans and displayTransOffset 2021-06-16 23:42:54 +03:00
lb_ii d4d42ad8fe WINTERMUTE: Display BiDi strings if _textRTL is set 2021-06-13 00:25:53 +03:00
Vladimir Serbinenko 3fc822e55c COMMON: introduce substr for U32String (#2585)
It's safer than direct array manipulation. Replace current uses
of subsetting with substr.
2020-11-01 22:53:03 +01:00
lolbot-iichan 55d443d824 WINTERMUTE: Patch text line height for FoxTail 1.2.896 2020-05-12 10:33:58 +02:00
Eugene Sandulenko 4e7f9ee808 WINTERMUTE: Do not include standard headers 2020-03-25 10:32:37 +01:00
Bastien Bouclet 80166c0fea WINTERMUTE: Add override keywords 2020-02-09 12:55:00 +01:00
Eugene Sandulenko de6bde08a7 WINTERMUTE: Added override keywords 2020-01-31 15:46:23 +01:00
lolbot-iichan fa5909a9cc WINTERMUTE: Rename custo* variables as custom* 2020-01-11 18:05:39 +02:00
lolbot-iichan 259a7e89e6 WINTERMUTE: Add FoxTail color token for bitmap fonts
Some FoxTail versions have bitmap fonts with white letters and COLOR properties.
Alpha value of subframe can be used to recolor white letters to desired color.
2020-01-11 18:05:39 +02:00
lolbot-iichan 767913d2d5 WINTERMUTE: Add FoxTail text spacing hack
FoxTail fork of WME seems to have hard-coded modifications for getting inter-line and inter-character spaces smaller.
2020-01-11 18:05:39 +02:00
D G Turner d7a22f72a1 WINTERMUTE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-14 23:28:07 +00:00
lolbot-iichan 747ace78fc COMMON & WINTERMUTE: Use non-1252 for 125X games (PR 1698)
* WINTERMUTE: Add detection for "The Driller Incident"

"The Driller Incident" is a small freeware game for Wintermute,
avaliable in English and Russian: http://questzone.ru/enzi/files/1645

* WINTERMUTE: Add detection table for "One Helluva Day" demo

"One Helluva Day" is a point-and-click adventure demo in English / Czech
/ Russian.
Free download:
https://store.steampowered.com/app/603680/One_helluva_day/

* WINTERMUTE: Support CHARSET property for TT fonts

"// we don't need this anymore" was a mistake =)

Surely, most Wintermute games are either designed for 1252 language
(DE_DEU, EN_ANY, ES_ESP, FR_FRA, IT_ITA, PT_BRA), or don't use TrueType
fonts (5ma, deadcity, grotter1, grotter2, thekite, tib), or use
CHARSET=1 with UTF strings (dirtysplit, reversion1, reversion2, twc),
which meen this conversion is not needed for those games.

However, there are some games that explicitly states CHARSET=10 (driller
(RU_RUS), oknytt (RU_RUS), onehelluvaday (UNK_LANG when playing as
Russian)) and there are some games with CHARSET=1 with non-1252 in mind
(bookofgron (RU_RUS excepts 1251), carolreed4 (RU_RUS excepts 1251),
kulivocko (CZ_CZE excepts 1250)).

This fixes text in some games: bookofgron, carolreed4, driller, kulivocko,
oknytt, onehelluvaday.

* WINTERMUTE: Break savegame compatibility

sizeof(BaseFontTT) was changed, so let's break savegame compatibility

* COMMON: Add conversion tables for win1253 and win1257

* COMMON: Add string conversion from U32String back to Common::String

convertUtf32ToUtf8 code is based on Wintermute::ConvertUTF32toUTF8
convertFromU32String use convertUtf32ToUtf8 for UTF8 or lookup through
conversion table for single-byte encodings

* WINTERMUTE: Use Common::convert functions for non-UTF charsets

* WINTERMUTE: Fix whitespaces at detection tables

* WINTERMUTE: Add TODO comments
2019-06-30 16:45:46 +03:00
Cameron Cawley d3bb3cddfd WINTERMUTE: Attempt to load fallback fonts from fonts.dat 2018-12-25 12:47:42 +01: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
Eugene Sandulenko 385f8358ab WINTERMUTE: Switch to use of moved to OSystem TransparentSurface 2014-06-15 15:43:18 +03:00
Einar Johan Trøan Sømåen 3377784b35 WINTERMUTE: Add a warning when loading TTF-fonts without FreeType2-support. 2014-04-17 11:15:24 +02:00
Einar Johan Trøan Sømåen cda0598047 WINTERMUTE: Use the correct field for dpi when loading FreeSans from scummmodern.zip 2014-02-21 16:35:47 +01:00
Johannes Schickel fc5ef58fff WINTERMUTE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Strangerke 81f0a5dc42 WINTERMUTE: Janitorial - Remove trailing spaces 2014-02-16 18:41:25 +01:00
Johannes Schickel 24d2e246b4 WINTERMUTE: Use game format for fallback font rendering.
BDF fonts got 32bit drawing support in ece8b7fb65
Thus it is not necessary to draw onto a 16bit surface.
2014-02-12 18:31:06 +01:00
Johannes Schickel a6fff7a805 WINTERMUTE: Switch WideString to U32String. 2013-11-23 21:34:54 +01:00
Einar Johan Trøan Sømåen eceaf7f8cb WINTERMUTE: Add bold-font support for FreeSans.ttf (and only FreeSans for now).
This is mostly a quick fix to solve the rather common case of wanting
to use bold Arial. This will not handle the user adding the actual Arial.ttf
file to the folder yet, but atleast it solves the common case of having
to fallback to FreeSans.
2013-11-15 15:27:50 +01:00
Einar Johan Trøan Sømåen 237d3d86ec WINTERMUTE: Transfer Char* explicitly when saving/loading. 2013-11-05 13:54:25 +01:00
Einar Johan Trøan Sømåen d07409def7 WINTERMUTE: Transfer Sint32s explicitly when saving/loading. 2013-11-05 13:48:11 +01:00
Einar Johan Trøan Sømåen 7892188bcf WINTERMUTE: Transfer Uint32s explicitly when saving/loading. 2013-11-05 13:31:13 +01:00
Einar Johan Trøan Sømåen d6b9d7de8f WINTERMUTE: Remove BasePlatform::setRect (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 6b4adab654 WINTERMUTE: Transfer booleans explicitly when saving/loading. 2013-10-28 19:19:12 +01:00
Willem Jan Palenstijn a979072410 WINTERMUTE: Clean up byte/char casts in loading/parsing 2013-10-01 23:20:43 +02:00
Willem Jan Palenstijn 1c3202794a WINTERMUTE: Fix typo in comment 2013-09-29 22:49:07 +02:00
Willem Jan Palenstijn 2242917dda WINTERMUTE: Do antialiased TT font rendering 2013-09-29 22:27:56 +02:00
Einar Johan Trøan Sømåen 1c091ca1ff WINTERMUTE: Swap dpi and font-height to be the right-way around. 2013-09-08 23:25:23 +02:00
Einar Johan Trøan Sømåen e824ebaa44 WINTERMUTE: Change pixel-format to RGBA. 2013-08-20 16:52:29 +02:00
Johannes Schickel 1ce54c217a WINTERMUTE: Fix end of namespace comments. 2013-08-04 00:51:09 +02:00
Einar Johan Trøan Sømåen 0695739239 WINTERMUTE: Use the theme-path to find scummodern.zip 2013-04-22 16:14:11 +02:00
Einar Johan Trøan Sømåen 51e17d9f86 WINTERMUTE: Further reduce the amount of int->int32-confusion. 2013-04-20 18:11:47 +02:00
Einar Johan Trøan Sømåen 9184bb5c24 WINTERMUTE: Add overrides to Font-classes. 2013-04-19 18:15:25 +02:00
Einar Johan Trøan Sømåen a2fb3dfe9e WINTERMUTE: Replace a few more ints by int32s. 2013-04-19 18:13:42 +02:00
Einar Johan Trøan Sømåen 72d0affe01 WINTERMUTE: Rename transfer(void *) to transferPtr(void *) to avoid overload-misses. 2013-04-19 17:17:53 +02:00
Max Horn 2a10f6a97f WINTERMUTE: Do not us char literals to index an array
This silences a clang warning
2013-04-18 23:50:20 +02:00
Willem Jan Palenstijn 250967a63f WINTERMUTE: Fix warnings and improve const-correctness 2013-04-15 20:44:41 +02:00
Einar Johan Trøan Sømåen 980dc4a456 WINTERMUTE: Replace all NULLs with nullptr. 2013-01-26 18:07:07 +01:00
Einar Johan Trøan Sømåen 6476ba33d2 WINTERMUTE: Fix double delete of TTFs. 2013-01-23 01:40:13 +01:00
Einar Johan Trøan Sømåen 57bc6374f4 WINTERMUTE: Use FreeSans from ScummModern.zip if the requested font is unavailable.
Right now this is the ONLY replacement in place, but Arial is also the default font for WME, so it should cover most cases.
2013-01-23 00:34:04 +01:00
Johannes Schickel 4a7ddc6956 WINTERMUTE: Fix const away cast warning. 2013-01-09 08:18:05 +01:00
Einar Johan Trøan Sømåen d54df32483 WINTERMUTE: Fix a warning from buildbot. 2012-12-02 08:38:20 +01:00
Einar Johan Trøan Sømåen 4efd40e41e WINTERMUTE: Make the TTF-cache actually use LRU. 2012-12-02 07:25:12 +01:00
Einar Johan Trøan Sømåen 228785eda2 WINTERMUTE: Convert ' correctly from CP1252 2012-10-23 03:05:17 +02:00