Closed chrisridd closed 2 years ago
FWIW removing the "psnames" module from ftconfig.h
seems to be enough to get rid of ft_standard_glyph_names
and ft_adobe_glyph_list
. As far as I can tell this doesn't break anything either; vqt_fontheader()
still returns the Postscript font name as before.
I've only tested with Freetype 2.11.1 and with -O2, but it saves 64064 bytes. I've raised PR #29
As discussed in #29, not worth the change but thanks for taking time to collect the binary sizes!
The
fvdi_gnu.prg
binary is getting quite large particularly when built with recent versions of Freetype.Is this a problem at all? Running in Aranym on my fast machine makes it difficult to spot any performance issues, but maybe running on real Atari hardware or Firebee hardware shows issues.
A simple change from compiling with
-O2
to-Os
(optimise for size) gives some significant savings under gcc 10:Moving from Freetype 2.5.2 to 2.11.1 only costs 6KB? That's pretty nice.
Looking at an unstripped binary with
nm
shows we could save an additional 60KB if we could get rid (somehow!) of some big lists of glyph names, which don't seem to be useful for fVDI as I don't think there's a VDI interface using glyph names:There are some flags to gcc that help the linker discard unused functions (compile with
-ffunction-sections
, and link with--gc-sections
) but they seem ELF-specific and do not work with the m68k-atari-mint toolchain. No easy win here.Is this worth pursuing?