Eugene Sandulenko
ab68b92df5
GRAPHICS: FONTS: Load DPI information from WinFonts
2025-03-02 00:25:33 +01:00
sluicebox
b4f8be5174
GRAPHICS: Fix memory leak in WinFont when reloading
...
Occurs during Hugo 1 introduction
2024-09-18 12:41:01 -07:00
Le Philousophe
226de788c8
GRAPHICS: Make API use the Path class
2023-12-24 13:19:25 +01:00
Harishankar Kumar
9b6d9b0c27
GRAPHICS: Fix WinFont scaling memory leak when scaling fonts.
...
Memory leak happened because the scaled generated fonts were not
being cached or saved anywhere, thus they were not being destructed
and freed. Added logic to cache generated font in _winFontRegistry
itself.
Leaks observed in `trektech-win` of director engine in first few frames itself.
2023-07-08 22:13:28 +03:00
Harishankar Kumar
96008586c6
GRAPHICS: Add scaling for winfont
...
Allow scaling of window font, ie FON, FNT. Internally this uses
same implementation as BDFScaling and MacFontScaling. Uses function
scaleSingleGlyph to scale each glyph.
Fonts in `mcluhan-win` used some of these fonts where the sizes
were different than parsed.
2023-06-27 13:00:29 +03:00
Cameron Cawley
28d7b361ea
COMMON: Move more file format code into common/formats
2022-12-11 22:33:23 +01:00
sluicebox
74d94f14f1
GRAPHICS: Fix WinFontDirEntry parsing regression
...
Fixes HUGO1 crash on startup
Incorrect offset introduced in 8cb2e1bb07
https://learn.microsoft.com/en-us/windows/win32/menurc/fontdirentry
2022-11-22 00:30:36 -08:00
Pragyansh Chaturvedi
5c17fe70b8
JANITORIAL: Fix conventions and reimplement MacFontManager::rectifyId()
2022-07-17 13:04:14 +02:00
Pragyansh Chaturvedi
c4f6aa89b9
GRAPHICS: Implement assigning of windows font, check for wrong fontId while loading stxt, read name from FON files DIRECTOR
2022-07-17 13:04:14 +02:00
Pragyansh Chaturvedi
8cb2e1bb07
GRAPHICS: Add rectifyId to check for changed font IDs
2022-07-17 13:04:14 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Thierry Crozat
3e1c61cdb8
GRAPHICS: Support loading a Windows font from an existing stream
2021-09-24 23:42:18 +01:00
Thierry Crozat
a3f3d71c57
GRAPHICS: Expose ascent value in font class
2021-03-23 20:25:23 +00:00
Cameron Cawley
a692905eb2
COMMON: Add a function to simplify loading Windows executables
2020-01-11 17:34:12 +02:00
Cameron Cawley
e49282577f
GRAPHICS: Simplify loading Windows fonts
2020-01-11 17:34:12 +02:00
Cameron Cawley
948c555ea6
ALL: Create all instances of NEResources and PEResources using new instead of on the stack
...
Also adapted WinCursorGroup and MacMenu to reflect this.
2020-01-11 17:34:12 +02:00
Cameron Cawley
8c2b09d919
COMMON: Replace NEResourceType and PEResourceType with a shared enum
2019-05-01 23:52:56 +03:00
Johannes Schickel
53332e8066
GRAPHICS: Make GPL headers consistent in themselves.
2014-02-18 02:39:34 +01:00
Johannes Schickel
afa3f50b8a
GRAPHICS: Let Font take uint32 as character codes.
...
This is required to support UTF-32 strings but does not make them work
automatically!
2013-11-23 21:34:54 +01:00
Julien
7a882600c6
GRAPHICS: Allocate Common::PEResources on the heap in WinFont::loadFromPE()
2011-06-23 15:11:36 +08:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
3fd919060c
GRPAHICS: Do not access Surface::bytesPerPixel anymore.
2011-04-17 20:58:08 +02:00
Matthew Hoops
4dba6962f5
GRAPHICS: Fix a missing 'f'
...
Thanks, fuzzie
2011-03-07 11:40:54 -05:00
Matthew Hoops
550cff84f8
GRAPHICS: Add support for PE FON files
...
This hopefully will work out of the box, but requires testing
2011-02-23 14:43:18 -05:00
Matthew Hoops
a2a0b13de2
COMMON: Begin to merge some NE/PE code
...
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Matthew Hoops
4e56df4dbd
GRAPHICS: Begin to parse Win1 fonts based on our sole Hugo1 sample (still WIP)
...
svn-id: r55227
2011-01-13 16:06:35 +00:00
Matthew Hoops
095384b90f
GRAPHICS: Use the pixel height instead of the ascent as the WinFont height
...
svn-id: r55224
2011-01-13 14:45:14 +00:00
Matthew Hoops
bee912ff54
GRAPHICS: Add support for Windows FON/FNT fonts
...
As required by Hugo and Mohawk.
svn-id: r55120
2011-01-04 20:39:27 +00:00