About vault data files of MainType occupy too much space

Hi, here is a problem I encountered that needs to be solved immediately:
Vault data files cannot be compressed or deleted (otherwise, the MainType cannot be used). As a result, vault data files occupy more space and the system disk space becomes smaller. In addition, in the process of use, it was found that after all fonts were deleted by MainType (including the fonts in the file system and MainType library, except those that have been installed to the operating system), the disk space occupied by these fonts should be released according to normal logic, but it is not.
And these font data stored in vault data files will no longer be accessible through MainType, resulting in wasted disk space. Unless MainType is reinstalled, or backup “data” and “vault” folders (to recover the initial data after the vault data files are deleted) after the MainType is installed and configured for the first time.

Suggestion: Add the following commands to the “font management service configuration” program for MainType:

  1. Compress vault data, that is, release the space occupied by invalid data (fonts data that has been deleted but cannot be accessed on the MainType).
  2. Rebuild the vault data, that is, re-initialize the vault data (keep only the data about the MainType configuration) and discard all the data about the user fonts. If you can use this operation, it means that you has made a backup of the font data.

The following is the Chinese description of the above content:
嗨,你好,下面是我遇到的一个即需解决的问题:
vault数据文件无法压缩,也不能被删除(否则MainType将无法使用),导致vault数据文件占用空间越来越大,导致系统盘空间越来越小。另外,在使用过程中发现,通过MainType全部删除所有字体(包括文件系统和MainType库中的,已安装到操作系统的字体除外)后,按正常逻辑来说,这些字体占用的磁盘空间应该被释放,但事实却没有。
并且这些存储在vault数据文件中的字体数据将无法再通过MainType访问,这就造成的磁盘空间的浪费,除非重新安装MainType或在首次安装MainType并配置后备份“data”和“vault”文件夹的数据——用于在删除vault数据文件后恢复这些数据。

建议:为MainType的“font management service configuration”程序增加以下操作命令:

  1. 压缩vault数据,即释放无效数据(已经全部删除但无法在MainType访问的字体数据)占用的空间。
  2. 重建vault数据,即重新初始化vault数据(仅保留关于MainType配置的数据),丢弃所有有关用户字体的数据。能够用上这个操作,说明用户已经做好了字体数据的备份。

You are correct, right now the Vault database will only expand. It would be great to have a way to compress it.

7-Zip gives good compression. You can do it manually, then delete the folder.
Compressed Vault.png

Deleting the folder will cause MainType to not work, as shown in the following figure.
In addition, the more fonts MainType manages, especially in the case of font classification and sorting. For example, in the process of sorting nearly 30,000 fonts, I deleted a large number of fonts from MainType for many times and re-added them, resulting in the space occupied by vault file data as high as 26GB. The actual font data is much less than the original data that is a serious space wastage problem.
The problem is shown in the following figure. The first figure shows the MainType failure after renaming the “data” and “vault” folders, the second figure shows the MainType failure after renaming only the “vault” folder, and the third figure shows the space usage after deleting all non-installed fonts.
Note: The third figure shows me reusing MainType after restoring the data in the original “data” and “vault” folders according to the method described in the problem, so the current space usage is 3.5GB instead of the 26GB mentioned above. If I don’t, that’s up to 30GB.
sshot-1.png
sshot-2.png
sshot-3.png
Here is the description in Chinese:
删除文件夹将导致MainType无法运行,如图所示。
此外,MainType管理的字体越多,尤其是在对字体进行分类整理的情况下,例如我在对近3万个字体整理过程中,由于多次从MainType删除大量的字体并重新加入,导致vault文件数据占用的空间已经高达26GB,而实际的字体数据则比原始数据还要少很多——这是一个严重的空间损耗问题。
问题如下图所示,第一图是重命名“data”和“vault”文件夹后导致MainType无法启动的结果,第二图是仅重命名“vault”文件夹后导致MainType无法启动的结果,第三图是删除所有非安装字体后的空间占用情况。
说明:第三图是我按问题描述的方法重新还原最原始的“data”和“vault”文件夹内的数据后重新使用MainType的情况,所以目前的空间占用为3.5GB,而非上面提到的26GB。如果我不这么做,那么占用的空间高达30GB。