StupidBeauty
Read times:1256Posted at:Sat Feb 18 21:21:26 2012
- no title specified

Qt4.8.0文档翻译:QFontDatabase类参考,QFontDatabase Class Reference

成员函数文档

int QFontDatabase::addApplicationFont ( const QString & fileName ) [static]

载入名为 fileName 的文件中的字体,并且将它置入程序中。會返回一個编号(ID),该编号可用于:稍后使 removeApplicationFont ()用来删除該字体;获取該字体中包含的字体族列表。

如果該字体无法载入,则此函数返回-1。

当前只支持TrueType 字体、TrueType 字体集和OpenType 字体。

注意:目前,在Unix/X11 平台上添加程序字体需要有 fontconfig 才行。

注意:在Symbian中,字体族的名字會被裁剪到20 個字符。

此函数是从Qt 4.2 开始引入的。

参考 addApplicationFontFromData () applicationFontFamilies () removeApplicationFont ()。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands