如何在WinForms应用程序中使用DOS字体 [英] How to use DOS font in WinForms application

查看:933
本文介绍了如何在WinForms应用程序中使用DOS字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要使用什么字体?

Lucida控制台不是我在.NET控制台应用程序中使用的字体。所以Lucida Console并不是我想要的。

解决方案

为什么Lucida Console不是答案?因为它是。在英文操作系统中,控制台只有两种字体:TTUT的Lucida控制台,以及位图的终端(不能直接使用此字体,如果要使用,则必须加载vgaoem.fon)。

b
$ b

您可以阅读更多此处。可用于位于注册表中的控制台的ttf字体列表:HKLM \ Software \ Microsoft \ Windows NT \ CurrentVersion \Console\TrueTypeFont。您可以在知识库文章中阅读有关此类字体的要求。



如果你看看这个注册表项,你会发现默认情况下只有一个ttf字体可用 - Lucida控制台。


I want to use in my WinForms application a font used in .net console application.

What font do I need to use?

Lucida Console is not the font that is being used in .NET Console application as I see it. So Lucida Console is not the one I want.

解决方案

Why Lucida Console is not the answer? Because it is. In english os, there is only two fonts for console: Lucida Console which is TTF, and Terminal which is bitmap (You cannot use this font directly, you must load vgaoem.fon if you want to use it).

You can read more here. List of ttf fonts available for console located in registry: HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont. You can read about requirement for such fonts in the KB article.

And if you look into this registry key, you will see that by default there is only one ttf font available - Lucida Console.

这篇关于如何在WinForms应用程序中使用DOS字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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