多平台环境中的字体

编程入门 行业动态 更新时间:2024-10-15 16:16:55
本文介绍了多平台环境中的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 在多平台分布式系统中处理字体的最佳方法是什么?如果我想在所有系统中使用通用字体来显示给用户,那么做到这一点的最好方法是什么。从我一直在阅读的每一个平台,看起来有相同的家庭(即衬线,无衬线),但名称不同的字体。 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.

更多推荐

多平台环境中的字体

本文发布于:2023-11-17 14:47:50,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字体   环境   平台

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!