Eugene Sandulenko
a7f73321d5
GRAPHICS: Fix clash with Amiga #define
2020-04-29 00:01:30 +02:00
Eugene Sandulenko
b83494215d
GRAPHICS: Correctly initialize BDF fonts when scaling and reading from cache
2020-04-28 10:52:05 +02:00
Thierry Crozat
c421a25b8e
GRAPHICS: Fix mismatching malloc/delete[]
2020-04-27 23:06:15 +01:00
Eugene Sandulenko
3199a5e107
GRAPHICS: Properly initialize struct members
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
b9a6b99575
GRAPHICS: Added more sanity checks to BDF font loading
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
b90cf5db81
GRAPHICS: Added sanity check to BDF font scaler
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
2785bdd8c1
GRAPHICS: Fixed potential memory leak in BDF
2020-04-27 13:57:35 +02:00
Eugene Sandulenko
80f1132e22
GRAPHICS: FONTS: Fix Mac outline font generation
2020-03-22 18:08:30 +01:00
Eugene Sandulenko
930cf4df03
GRAPHICS: Generate Mac outline fonts
2020-03-22 17:41:21 +01:00
Eugene Sandulenko
6774d7aced
GRAPHICS: MACGUI: Initial code for generating outlined fonts
2020-03-22 01:39:29 +01:00
Le Philousophe
8e156fe37d
GRAPHICS: Fix compilation on old FreeType2 versions
...
Old FreeType2 had FT_Bitmap_New which got renamed later in FT_Bitmap_Init
2020-03-14 16:56:25 +01:00
Le Philousophe
3f7726ea66
GRAPHICS: Fix compilation for Amiga and PSP
...
Amiga failed because int isn't the same than int32
PSP failed because of an old FreeType version so try to take this
into account
2020-03-14 14:23:34 +01:00
Le Philousophe
ee1aa81063
GRAPHICS: Mimic CreateFont Windows API
...
Implement a kind of font mapper which takes a list of font files, font
face name, size, slant and weight and finds the best matching face.
Fakes italic and bold if there it isn't available.
This commit adds support for TTC files which contains multiple faces
(used by CJK Windows fonts).
2020-03-14 12:19:21 +01: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
Eugene Sandulenko
da8bfeca5e
GRAPHICS: FONTS: Improved visuals for generated bold fonts
2020-01-07 22:46:24 +01:00
Eugene Sandulenko
858f8791ec
GRAPHICS: FONTS: Fix memory override
2020-01-07 22:09:59 +01:00
Eugene Sandulenko
a98d3832d9
GRAPHICS: FONTS: Fix warnings
2020-01-07 22:00:23 +01:00
Eugene Sandulenko
fc00b78a48
GRAPHICS: FONTS: Implement generation of bold fonts
2020-01-07 21:57:12 +01:00
Eugene Sandulenko
b5a95d4783
GRAPHICS: FONTS: Made scaling form MacFONT as a step
2020-01-07 21:57:12 +01:00
Eugene Sandulenko
90c305c904
GRAPHICS: FONTS: Use better algorithm for MacFONT scaling added debug output
2020-01-07 21:57:12 +01:00
Eugene Sandulenko
f7970c30a4
GRAPHICS: FONTS: Fix BDF font scaling
2020-01-07 21:57:12 +01:00
Eugene Sandulenko
40cb3b8f92
GRAPHICS: FONT: Really fix mismatched new/delete
2019-12-26 17:31:42 +01:00
Eugene Sandulenko
043acc1ccc
GRAPHICS: FONTS: Fix mismatched new/delete.
2019-12-26 17:25:31 +01:00
D G Turner
be56e9afed
GRAPHICS: Fix Missing Default Switch Cases
...
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-17 10:11:25 +00:00
Cameron Cawley
8c2b09d919
COMMON: Replace NEResourceType and PEResourceType with a shared enum
2019-05-01 23:52:56 +03:00
Bastien Bouclet
6a231e4b60
GRAPHICS: Look for fonts.dat in extrapath
...
When running from the source tree, it is convenient to have extrapath
set to dists/engine-data, where fonts.dat is located.
2019-05-01 05:50:08 +02:00
Thanasis Antoniou
672d216d11
GUI: Fix loading new (not already cached) localized fonts
2019-03-12 00:42:58 +02:00
Cameron Cawley
fa60ae728e
GRAPHICS: Add a function to load TrueType fonts from fonts.dat
2018-12-25 12:47:42 +01:00
Cameron Cawley
7a437e909c
COMMON: Move new_strdup to common/str.cpp
2018-08-18 16:30:05 +02:00
Colin Snover
f7e05a6ace
GRAPHICS: Fix incorrect maximum length passed to strlcpy
2018-08-18 16:30:05 +02:00
Colin Snover
c544d8050c
GRAPHICS: Remove use of nonstandard strdup API & fix mismatched malloc/delete
2018-08-18 16:30:05 +02:00
Adrian Frühwirth
3747d852ee
JANITORIAL: Fix whitespace
2018-04-15 16:31:31 +02:00
Willem Jan Palenstijn
3ac39075c8
GRAPHICS: Fix potentially uninitialized pointers in BDF loader
2017-11-14 09:12:15 +01:00
Bastien Bouclet
65d0984364
GRAPHICS: Fix freeing invalid pointers in the BDF font destructor
...
Fixes a crash on exit when using a non default GUI font.
Possibly fixes #10318 .
2017-11-14 06:41:06 +01:00
Colin Snover
4706a8486e
GRAPHICS: Remove dead code in BDF loadCharacter code
2017-09-10 22:17:17 -05:00
Eugene Sandulenko
bfb757c3c0
GRAPHICS: Load Mac font heights too (still unused)
2017-08-01 10:42:21 +02:00
Eugene Sandulenko
940b2a20f1
Revert "COMMON: Change way the Singleton instances are instantiated"
...
This reverts commit eefa72afa1
.
With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat
eefa72afa1
COMMON: Change way the Singleton instances are instantiated
...
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Eugene Sandulenko
b4a31646ff
GRAPHICS: Added missing include
2017-01-30 10:10:07 +01:00
Eugene Sandulenko
7808005841
JANITORIAL: Cleanup
2017-01-27 10:22:23 +01:00
Eugene Sandulenko
d99036a480
GRAPHICS: More fixes to MacFont scaling. Now it does work
2017-01-26 18:45:24 +01:00
Eugene Sandulenko
f7ada97cf8
GRAPHICS: Fixes to MacFont scaling
2017-01-26 18:08:03 +01:00
Eugene Sandulenko
e2b1cd5c80
GRAPHICS: Implemented test for MacFont scaling
2017-01-25 12:44:24 +01:00
Eugene Sandulenko
b84ab35363
GRAPHICS: Plug MacFont scaler in
2017-01-24 23:33:59 +01:00
Eugene Sandulenko
41e93fca16
GRAPHICS: Further work on MacFont scaling
2017-01-24 23:21:29 +01:00
Eugene Sandulenko
7396965005
GRAPHICS: Fix number of memory leaks and wanrings
2017-01-23 20:27:00 +01:00
Eugene Sandulenko
8a476715f6
GRAPHICS: More work on MacFont scaling
2017-01-21 23:46:21 +01:00
Eugene Sandulenko
76cfde0722
GRAPHICS: Further work on MacFont font scaling
2017-01-20 09:01:01 +01:00