简体   繁体   English

为什么我的 WPF 应用程序字体在我的 PC 上看起来不同?

[英]Why does my WPF application font look different on my PC?

My WPF application's font suddenly looks different on my PC.我的 WPF 应用程序的字体在我的 PC 上突然看起来不同了。 I am not sure if this occur after a windows update.我不确定在 Windows 更新后是否会发生这种情况。 I am using Windows 10 Version 1803, .Net 4.5 in one application and .Net 4.6.1 in the other.我在一个应用程序中使用 Windows 10 版本 1803、.Net 4.5,在另一个应用程序中使用 .Net 4.6.1。 This is happening on my 2 WPF applications.这发生在我的 2 个 WPF 应用程序上。

Here is a picture of my WPF application on other PCs (Acceptable): https://ibb.co/444D8X5这是我在其他 PC 上的 WPF 应用程序的图片(可接受): https : //ibb.co/444D8X5

Here is a picture of same WPF application on my PC (Unacceptable): https://ibb.co/mvVHT9s这是我 PC 上相同 WPF 应用程序的图片(不可接受): https : //ibb.co/mvVHT9s

Any clue why this is happening?任何线索为什么会发生这种情况? Looks like the characters moved a couple pixels down.看起来字符向下移动了几个像素。 Thanks in advance.提前致谢。

So the reason your font doesn't appear at runtime is because it is not actually installed on your machine.所以你的字体没有在运行时出现的原因是它实际上没有安装在你的机器上。 Windows doesn't know where to find it so it goes to a default font. Windows 不知道在哪里可以找到它,因此它转到默认字体。 You should embed the font within the application.您应该在应用程序中嵌入字体。

See this post看到这个帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么动态生成时上下文菜单看起来有所不同 - Why does my context menu look different when generated dynamically 为什么我的WPF对话框出现在任务管理器->应用程序中? - Why does my WPF dialog appear in my task manager -> application? 我的 WPF 应用程序无法在另一台 PC 上启动,而没有 MySql 的应用程序可以运行,可能是什么问题? - My WPF application does not start on another PC, while an application with no MySql works, what could be the problem? 带有 sql server 的 C# wpf 应用程序只能在我的电脑上运行 - C # wpf application with sql server works only on my pc 当我在Visual Studio中运行程序时,为什么我的窗口形式看起来不同? - Why does my window form look different when I run the program in Visual Studio? "为什么当我碰到鼠标滚轮时我的 WPF 应用程序会崩溃?" - Why does my WPF application crash when I bump my mousewheel? 无法在我的WPF应用程序中读取True Type字体文件! - Cannot read True Type Font FIle in my WPF APplication! 为什么WPF应用程序中的对象数目增加了? - Why is the number objects in my WPF application increasing? 为什么数据未绑定到我的 WPF 应用程序中的标签 - Why data is not bound to label in my WPF application 为什么我的 wpf 应用程序在 web 浏览器中启动? - why is my wpf application starting in web browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM