Qtopia Core FontsQtopia Core uses the FreeType 2 font engine to produce font output. The formats supported depends on the locally installed version of the FreeType library. In addition, Qtopia Core supports the Qt Prerendered Font formats (QPF and QPF2): light-weight non-scalable font formats specific to Qtopia Core. QPF2 is the native format of Qtopia Core. QPF is the legacy format used by Qt/Embedded 2.x and 3.x. Several of the formats may be rendered using anti-aliasing for improved readability. When Qtopia Core applications run, they look for fonts in Qtopia Core's lib/fonts/ directory. Qtopia Core will automatically detect prerendered fonts and TrueType fonts. For compatibility, Qtopia Core will also read the legacy lib/fonts/fontdir file. Support for other font formats can be added, contact info@trolltech.com for more information.
All supported fonts use the Unicode character encoding. Most fonts available today do, but they usually don't contain all the Unicode characters. A complete 16-point Unicode font uses over 1 MB of memory. FreeType FormatsThe FreeType 2 library (and therefore Qtopia Core) can support the following font formats:
It is possible to add modules to the FreeType 2 font engine to support other types of font files. For more information, see the font engine's own website: http://freetype.sourceforge.net/freetype2/index.html. Glyphs rendered using FreeType are shared efficiently between applications, reducing memory requirements and speeding up text rendering. Qt Prerendered Font (QPF2)The Qt Prerendered Font (QPF2) is an architecture-independent, light-weight and non-scalable font format specific to Qtopia Core. Trolltech provides the cross-platform makeqpf tool, included in the tools directory of both Qt and Qtopia Core, which allows generation of QPF2 files from system fonts. QPF2 supports anti-aliasing and complex writing systems, using information from the corresponding TrueType font, if present on the system. The format is designed to be mapped directly to memory. The same format is used to share glyphs from non-prerendered fonts between applications. Legacy Qt Prerendered Font (QPF)Trolltech provides support for the legacy QPF format for compatibility reasons. QPF is based on the internal font engine data structure of Qt/Embedded (Qtopia Core's predecessor) versions 2 and 3. Note that the file name describes the font, for example helvetica_120_50.qpf is 12 point Helvetica while helvetica_120_50i.qpf is 12 point Helvetica italic. The Legacy fontdir FileFor compatibility reasons Qtopia Core supports the fontdir file, if present. The file defines additional fonts available to the application, and has the following format: name file renderer italic weight size flags
|
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
Le Qt Developer Network au hasardLivre blanc de l'outillage de Qt QuickLe Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.
CommunautéRessources
Liens utilesContact
Qt dans le magazine |
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.3 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com