渲染期间的Windows Server 2008特殊字体 [英] Windows Server 2008 Special Fonts during rendering

查看:111
本文介绍了渲染期间的Windows Server 2008特殊字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我们在Server 2008上运行了一项服务,该服务启动了一个进程(C#应用程序),该进程进行了一些渲染.该过程运行成功,但是使用的是系统字体(我相信Arial),而不是应该加载的字体.如果我通过登录服务器手动运行此过程,则字体将成功加载并且该过程将正确呈现.

So we have a service running on Server 2008 which kicks off a process (C# app) which does some rendering. The process is running successfully but it is using the system fonts (Arial I believe) instead of fonts which are supposed to be loaded. If I run this process manually by logging into the server, the fonts load successfully and the process renders correctly.

我尝试使用CreateProcessWithLogonW运行此过程,但这仍然无法正常工作.我以为这与Server 2008中的非交互式会话有关,但我不知道如何解决它.

I have tried running this process by using CreateProcessWithLogonW but that still doesn't work. I am assuming this has to do with the non-interactive sessions in Server 2008 but I can't figure out how to solve it.

推荐答案

我最终使用

I ended up solving this by using PSExec using the -i and -h options. From what I understand, it runs CreateProcessWithLogonW or something similar under the scenes. This correctly created a new session with a user account outside of session0. The only thing I had to do was make sure that the EULA for PSExec was accepted for the user I was attempting to run the process with. I also ran the "Interactive Services Detection" service just in case the EULA popped up in session0. After that I turned off "Interactive Services Detection" as I no longer needed it (not really sure that I needed to do this last step).

这篇关于渲染期间的Windows Server 2008特殊字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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