简体   繁体   English

Qt:跨平台桌面应用程序的安全字体

[英]Qt: Safe Fonts for Cross Platform Desktop App

Just a thought: is there any resource somewhere with a list "safe-fonts" for a cross platform desktop Qt app that needs to run on windows, Mac and Linux (Ubuntu 10.* for instance). 只是一个想法:对于需要在Windows,Mac和Linux(例如Ubuntu 10. *)上运行的跨平台桌面Qt应用程序,是否存在任何具有“safe-fonts”列表的资源。

and while we're on the subject, is there any way to "package" a font with the executable as part of the resources and have it run seamlessly in all three platforms? 当我们讨论这个主题时,有没有办法用可执行文件“打包”字体作为资源的一部分,并让它在所有三个平台上无缝运行?

I've never tried it but I think you can use addApplicationFont to load a font from a file. 我从来没有尝试过,但我认为你可以使用addApplicationFont从文件加载字体。 The file can be part of your app's resource. 该文件可以是您应用资源的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM