FontInfo QML Type
Proporciona información sobre cómo se resuelve una consulta de fuente determinada. Más...
| Import Statement: | import QtQuick |
| Since: | Qt 6.9 |
Propiedades
- bold : bool
- family : string
- fixedPitch : bool
- font : font
- italic : bool
- pixelSize : int
- pointSize : real
- style : enum
- styleName : real
- variableAxes : list
- weight : int
Descripción detallada
FontInfo proporciona información acerca de la fuente real que se corresponde con una consulta de fuentes por el sistema de selección de fuentes de Qt.
Corresponde a la clase QFontInfo en C++.
FontInfo {
id: fontInfo
font.family: "Arial"
}
Text {
text: fontInfo.family === "Arial"
? "System has 'Arial' font"
: "System does not have 'Arial' font"
}Véase también FontMetrics y TextMetrics.
Documentación de Propiedades
bold : bool [read-only]
Esta propiedad es verdadera si weight() devolvería un valor mayor que Font.Normal; en caso contrario devuelve false.
Véase también weight y QFontInfo::bold().
family : string [read-only]
Esta propiedad contiene la familia de la fuente coincidente.
Véase también QFontInfo::family().
fixedPitch : bool [read-only]
Esta propiedad contiene el valor de paso fijo de la fuente coincidente.
Véase también QFontInfo::fixedPitch().
font : font
Esta propiedad contiene la fuente que será resuelta por el FontInfo.
italic : bool [read-only]
Esta propiedad contiene el valor de cursiva de la fuente coincidente.
Véase también QFontInfo::italic().
pixelSize : int [read-only]
Esta propiedad contiene el tamaño en píxeles de la fuente coincidente.
Véase también QFontInfo::pixelSize().
pointSize : real [read-only]
Esta propiedad contiene el tamaño en puntos de la fuente coincidente.
Véase también QFontInfo::pointSizeF().
style : enum [read-only]
Esta propiedad contiene el estilo de la fuente coincidente.
| Constante | Descripción |
|---|---|
Font.StyleNormal | Contiene glifos normales sin inclinación cursiva. |
Font.StyleItalic | Contiene glifos diseñados para representar texto en cursiva. |
Font.StyleOblique | Contiene glifos con apariencia cursiva, normalmente no diseñados especialmente, sino producidos aplicando una inclinación a los glifos normales de la familia tipográfica. |
Véase también QFontInfo::style().
styleName : real [read-only]
Esta propiedad contiene el nombre del estilo (o "subfamilia") de la fuente matemática.
Véase también QFontInfo::styleName().
variableAxes : list [read-only]
Esta propiedad contiene los ejes variables soportados por la fuente coincidente. La lista consiste en objetos QFontVariableAxis, que tienen las propiedades tag, name, minimumValue, maximumValue, y defaultValue.
Véase también QFontInfo::variableAxes() y QFontVariableAxis.
weight : int [read-only]
Esta propiedad contiene el peso de la fuente coincidente.
Véase también bold y QFontInfo::weight().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.