FontInfo QML Type
주어진 글꼴 쿼리가 어떻게 처리되는지에 대한 정보를 제공합니다. 더 보기...
| Import Statement: | import QtQuick |
| Since: | Qt 6.9 |
속성
- bold : bool
- family : string
- fixedPitch : bool
- font : font
- italic : bool
- pixelSize : int
- pointSize : real
- style : enum
- styleName : real
- variableAxes : list
- weight : int
상세 설명
FontInfo는 Qt의 글꼴 선택 시스템에 의해 글꼴 쿼리와 일치하는 실제 글꼴에 대한 정보를 제공합니다.
이는 C++의 QFontInfo 클래스에 해당합니다.
FontInfo {
id: fontInfo
font.family: "Arial"
}
Text {
text: fontInfo.family === "Arial"
? "System has 'Arial' font"
: "System does not have 'Arial' font"
}FontMetrics 및 TextMetrics도 참조하십시오 .
속성 설명
bold : bool [read-only]
weight()가 Font.Normal보다 큰 값을 반환하면 이 속성은 true를 반환하고, 그렇지 않으면 false를 반환합니다.
weight 및 QFontInfo::bold()도 참조하십시오 .
family : string [read-only]
이 속성은 일치된 글꼴의 글꼴 제품군을 나타냅니다.
QFontInfo::family()도 참조하십시오 .
fixedPitch : bool [read-only]
이 속성은 매칭된 글꼴의 고정 피치 값을 저장합니다.
QFontInfo::fixedPitch()도 참조하십시오 .
font : font
이 속성은 ` FontInfo`에 의해 결정될 글꼴을 저장합니다.
italic : bool [read-only]
이 속성은 일치하는 글꼴의 이탤릭체 값을 저장합니다.
QFontInfo::italic()도 참조하십시오 .
pixelSize : int [read-only]
이 속성은 일치하는 글꼴의 픽셀 크기를 저장합니다.
QFontInfo::pixelSize()도 참조하십시오 .
pointSize : real [read-only]
이 속성은 일치하는 글꼴의 포인트 크기를 저장합니다.
QFontInfo::pointSizeF()도 참조하십시오 .
style : enum [read-only]
이 속성은 일치하는 글꼴의 스타일을 저장합니다.
| 상수 | 설명 |
|---|---|
Font.StyleNormal | 이탤릭 기울기가 없는 일반 글리프를 포함합니다. |
Font.StyleItalic | 이탤릭체 텍스트를 표현하는 데 사용하도록 디자인된 글리프를 포함합니다. |
Font.StyleOblique | 이탤릭체 모양의 글리프를 포함하며, 일반적으로 특별히 디자인된 것이 아니라 글꼴 패밀리의 일반 글리프에 기울기를 적용하여 생성된 것입니다. |
QFontInfo::style()도 참조하십시오 .
styleName : real [read-only]
이 속성은 매스드 폰트의 스타일 이름(또는 “서브 패밀리”)을 나타냅니다.
QFontInfo::styleName()도 참조하십시오 .
variableAxes : list [read-only]
이 속성은 일치하는 글꼴에서 지원하는 축(axes) 변수를 포함합니다. 이 목록은 ` QFontVariableAxis ` 객체들로 구성되어 있으며, 이 객체들은 ` tag`, ` name`, ` minimumValue`, ` maximumValue`, ` defaultValue` 속성을 가집니다.
QFontInfo::variableAxes() 및 QFontVariableAxis도 참조하십시오 .
weight : int [read-only]
이 속성은 매칭된 글꼴의 두께를 나타냅니다.
bold 및 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.