Font handler for 7zip
A free file archiver for extremely high compression
Brought to you by:
ipavlov
I wrote a font handler for 7zip.
It can extract fonts from a font collection (.ttc)
or extract font tables from a TrueType or OpenType font.
Copy FontHandler.cpp (in the attached file) to CPP\7zip\Archive\
and add the file name to the following files after "FlvHandler.cpp":
CPP\7zip\7zip_gcc.mak
CPP\7zip\Bundles\Format7zF\ Arc.mak
CPP\7zip\Bundles\Format7zF\Arc_gcc.mak
CPP\7zip\Bundles\Format7zF\Format7z.dsp
I do not include third-party code to 7-zip now.
But you can compile DLL version (plugin) of your code.
So if users will place your compiled DLL to
Formatsfolder, it will work with original 7-Zip.you can get compile example here:
Tried to test that and compile it as codec. Had include <ctype.h> for `isalnum'. While in Linux it went well and compiled and linked, in Windows it gave whole bunch of undefined references. Here is whole dump.
So to make it work it requires some building script or I miss something.
If you want to make a Windows DLL, you also have to compile and link the source files like CopyCoder.cpp that contain the symbols not found by the linker. I have not done this. Rather, I just added FontHandler.cpp to the makefiles of 7-zip.
I used FontHandler.cpp ./CPP/7zip/Compress/CodecExports.cpp ./CPP/7zip/Compress/DllExportsCompress.cpp. This is what I always needed for it. It was enough to compile and link under Linux after all.
I have added '', and it maybe is less of undefined references but still half of the Mendeleev's table.
Tried it in Linux and it compiled and linked but 7z says 'E_FAIL : Unspecified error':
What to debug to find a cause?
I cannot help you because I do not have Linux and I do not know how to make a plugin for 7zip.