多平台环境中的字体 [英] Fonts in a multi-platform environment
问题描述
有人可以指出我正确的文档方向吗?
谢谢
fontconfig 是一个跨平台的库,通过直接命名( Times Roman )或普通别名(如 serif - 这是大多数现代Linux软件,如GNOME& KDE桌面,用于查找字体,并与 Pango 用于文本布局和 FreeType 用于字体栅格化。
What is the best way to deal with fonts in a multi-platform distributed system? If I want to use a common font across all systems to show to the user, what's the best way to do this. From the little I've been reading each platform looks to have fonts that are of the same family (ie serif, sans-serif) but with different names. CSS looks to have the functionality baked in where it will make the best selection it can of font on the users machine. Is there similar functionality either in system libraries or external libraries for Windows & Linux. I'm using C++ mainly?
Can someone point me in the right direction for documentation as well?
Thanks
fontconfig is a cross-platform library for finding fonts by either direct name (Times Roman) or common aliases like serif - it's what most modern Linux software, like the GNOME & KDE desktops, use to find fonts, and is used in conjunction with libraries like Pango for text layout and FreeType for font rasterizing.
这篇关于多平台环境中的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!