Roland van Laar
346d4b08c4
DIRECTOR: FONTS: Fix memory leak
...
Don't map the same fromFont twice.
CloneRanger mapped one fromFont twice, resulting in a memory leak on
descruction since the pointer to the first fontMap was lost.
2022-10-16 22:06:27 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
eientei
b7ac932ec8
DIRECTOR: Handle 0 byte Fmap in Cast::loadFontMapV4
2021-10-21 11:50:55 +02:00
djsrv
be5a5894d9
DIRECTOR: Keep all character mappings
2021-07-15 16:31:47 -04:00
djsrv
e1d375a6d1
DIRECTOR: Register fonts to original ID if possible
2021-07-12 00:38:05 -04:00
djsrv
6408f6023a
DIRECTOR: Rename FontInfo to FontMapEntry
2021-07-12 00:38:05 -04:00
djsrv
77b963b808
DIRECTOR: Add BUILDBOT to FXmp warnings
2021-07-06 21:30:30 -04:00
djsrv
01c2e2004f
DIRECTOR: Skip Lingo-style comments in FXmp
2021-07-06 21:30:30 -04:00
djsrv
ce3a1ac2cd
DIRECTOR: Create platformFromID function
2021-07-06 21:30:30 -04:00
djsrv
9e2bb1ae3f
DIRECTOR: Remove mapFont
...
This is no longer used.
2021-07-06 16:47:20 -04:00
djsrv
a2848f5dba
DIRECTOR: Handle FXmp mappings in loadFontMapV4
...
The previous way I handled the FXmp mappings overcomplicated MacText.
It also resulted in behavior different from the original Director. With
the previous implementation, if a Win movie with Arial text was opened
with the platform set to Mac, the textFont of field 1 would return
Arial, while it would return the mapped font name Helvetica in the
original. This implementation's behavior should match the original.
2021-07-06 16:47:20 -04:00
djsrv
e9d9b9f569
DIRECTOR: Revert FXmp handling
...
This reverts commit 4dabee7e8b .
This reverts commit 3fda461d5f .
This reverts commit 831c014f9e .
This reverts commit b3b55e59e9 .
2021-07-06 16:47:20 -04:00
djsrv
4dabee7e8b
DIRECTOR: Clean up char/font mapping registration
2021-07-05 22:54:18 -04:00
djsrv
831c014f9e
DIRECTOR: Make FXmp available to MacText
2021-07-05 22:53:35 -04:00
djsrv
39ffd5b784
DIRECTOR: Implement Fmap
2021-07-05 14:34:33 -04:00
djsrv
8e2c8ee2d4
DIRECTOR: Map fonts in FontStyle::read
...
The previous place I was mapping the font IDs didn't catch everything,
breaking text with more than one style.
2021-07-04 10:07:27 -04:00
djsrv
a611f674c5
DIRECTOR: Improve loadFontMap logging
2021-07-04 10:07:27 -04:00
djsrv
9c208bc60f
DIRECTOR: Don't backtrack if at end of stream
2021-07-04 03:02:03 -04:00
djsrv
4aaf2d3dbb
DIRECTOR: Parse FXmp chunk
2021-07-04 00:27:51 -04:00
djsrv
d4882d2daa
DIRECTOR: Move loadFontMap to fonts.cpp
...
There is going to be quite a bit of code to handle font mapping, so I've
created a new file for it.
2021-07-04 00:25:38 -04:00