Windows 上类似 Mac 的文本渲染?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7280146/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:59:12  来源:igfitidea点击:

Mac-like text rendering on Windows?

windowstextrenderingmacos

提问by tstormk

I'm trying to figure out how to render text on Windows with the same display as Mac rendered text, e.g: http://igadgetlife.com/wp-content/uploads/2009/09/11.png(That picture is not perfect, but it showcases the neat anti aliasing that Mac has)

我试图弄清楚如何在 Windows 上使用与 Mac 渲染文本相同的显示来渲染文本,例如:http: //igadgetlife.com/wp-content/uploads/2009/09/11.png(那张图片不是完美,但它展示了 Mac 具有的简洁的抗锯齿功能)

I've looked at GDI++/Freetype, and it seems too unstable and it has a lack of documentation. If anyone has any suggestions, that'd be great. The reason I am asking is because I am trying to make a writing program where text readability and text display are two important factors.

我看过 GDI++/Freetype,它似乎太不稳定并且缺乏文档。如果有人有任何建议,那就太好了。我问的原因是因为我正在尝试制作一个写作程序,其中文本可读性和文本显示是两个重要因素。

Thanks

谢谢

回答by Jagtesh Chadha

The solution lies in using gdippto override the default font-rendering engine in Windows. Just download the latest package from their Google project pageand double click to install it.

解决方案在于使用gdipp来覆盖 Windows 中的默认字体渲染引擎。只需从他们的Google 项目页面下载最新的软件包并双击安装即可。

It will automatically get installed as a service. If you don't notice any change in the way fonts render, open Run-> Type services.msc-> Right click gdipp-> Click Start.

它将自动安装为服务。如果您没有注意到字体呈现方式有任何变化,请打开Run-> Type services.msc-> 右键单击gdipp-> 单击Start

You may need to restart your computer once for all programs to start respecting gdipp's rendering engine.

您可能需要重新启动计算机一次才能让所有程序开始尊重 gdipp 的渲染引擎。

EDIT: Alternatively, look at MacType. It's a user-space application that won't require being run as a service. It works with Chrome as well.

编辑:或者,看看MacType。这是一个不需要作为服务运行的用户空间应用程序。它也适用于 Chrome。