如何覆盖WEC 7图像中的字体包含? [英] How to override font inclusion in WEC 7 image?

查看:71
本文介绍了如何覆盖WEC 7图像中的字体包含?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的构建中有一些目录似乎将额外的字体插入到我们实际上不需要的图像中。我们的软件具有显示可用字体的遗留实现,只需查看windows字体文件夹并显示即可。
因此,我们正在考虑的一个选项是在创建之前从图像中删除字体。

We have a few catalog in our build that seems to pull-in extra fonts into the image that we don't actually need. Our software has legacy implementation of displaying the available fonts by simply looking into the windows font folder and display it. So one of the option we are looking at is to remove the font from the image before it is created.

我已经研究过像这样的解决方案 - >
https://guruce.com/blogpost/filteringdatfiles

I have looked into solutions likes this -> https://guruce.com/blogpost/filteringdatfiles

但它似乎不适用于CE 7。

But it seems not to work in CE 7.

有什么想法吗?我看到了一些与preMakeImage.bat或preRoMImage.bat相关的脚本,但它也没有效果。是否有任何干净的教程正确过滤掉字体?

Any thoughts? I saw some scripts that is related to preMakeImage.bat or preRoMImage.bat, but it has no effect as well. Is there any clean tutorials do properly filter the fonts out?

谢谢

推荐答案

那又怎样完全不起作用?

So what exactly doesn't work?

唯一不起作用的是构建系统似乎不再调用某些批处理文件,但这会被自定义构建操作所取代。如果转到VS中的OS Design属性,则可以在各种构建阶段调用任何批处理文件。
在您的情况下,您可能希望从pre-makeimg阶段调用过滤批处理文件。

The only thing that doesn't work is that the build system doesn't appear to call some batch files anymore, but this is replaced with custom build actions. If you go to your OS Design properties in VS, you can call any batch file in various build phases. In your case, you probably want to call your filtering batch file from the pre-makeimg phase.

如果您有具体问题,请在此处询问。通用"不起作用"我们很难为您提供建议。

If you have specific questions ask them here. A generic "doesn't work" is mostly difficult for us to advice you on.


这篇关于如何覆盖WEC 7图像中的字体包含?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆