?? fontdir.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit - The Qt/Embedded fontdir file</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }--></style></head><body bgcolor="#ffffff"><p><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b> <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><h1 align="center"> The Qt/Embedded fontdir file</h1><br clear="all"><p>In order for Qt/Embedded to run a file called fontdir needs to exist.It should be in either $QTDIR/lib/fonts/ if QTDIR is defined when theQt/Embedded program is run, or /usr/local/qt-embedded/lib/fonts/ if not.<p>The format is as follows (also documented in qfontmanager_qws.cpp):<p><name> <file> <renderer> <italic> <weight> <size> <flags><p>name is the name that Qt/Embedded will use for the font in font dialoguesand from the point of view of QFont - e.g. Times<p>file is the path to the file, for example times.ttf or /lib/fonts/times.ttf (the two are equivalent if QTDIR is defined to /for example)<p>renderer is the name of the font renderer for the font - for Truetypeand Type 1 font files this should be FT, for Freetype, and for .bdffiles it should be BDF<p>italic is either y to indicate this is an italic font or n to indicatethat it is not<p>weight is a value between 0 and 100 - 50 is normal text, 75 is boldtext<p>size is either 0 for a scalable font (i.e. any Truetype/Type 1 fonts)or 10 times the point size of the font for BDFs (e.g. 120 for a 12 pointfont)<p>flags consist of a series of characters -s indicates this font should be anti-aliasedu is the unicode range when saving to a .qpf file (default is Latin1,i.e. 0-255)a is the ascii range when saving to a .qpf file (default is again Latin1)<p>Note that QPF files need not feature in the fontdir file, and indeedyou can have an empty fontdir file and only use QPF files (in which caseyou don't need to link in either of the font rendering libraries). Theseshould be stored in the same directory as fontdir and are loaded automaticallywhen available. They can be generated with the -savefonts option whenrunning a Qt/Embedded program.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -