多平台环境中的字体 [英] Fonts in a multi-platform environment

查看:159
本文介绍了多平台环境中的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在多平台分布式系统中处理字体的最佳方法是什么?如果我想在所有系统中使用通用字体来显示给用户,那么做到这一点的最好方法是什么。从我一直在阅读的每一个平台,看起来有相同的家庭(即衬线,无衬线),但名称不同的字体。 CSS看起来具有烘焙的功能,它将在用户机器上最好地选择字体。 Windows系统库或外部库中是否有类似的功能? Linux操作系统。我主要使用C ++吗?

有人可以指出我正确的文档方向吗?

谢谢 解决方案

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屋!

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