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 |
이 프로퍼티는 weight()가 Font.Normal보다 큰 값을 반환하면 참이고, 그렇지 않으면 거짓을 반환합니다.
weight 및 QFontInfo::bold()도 참조하세요 .
family : string |
이 속성은 일치하는 글꼴의 패밀리를 보유합니다.
QFontInfo::family()도 참조하세요 .
fixedPitch : bool |
이 속성은 일치하는 글꼴의 고정 피치 값을 보유합니다.
QFontInfo::fixedPitch()도 참조하세요 .
italic : bool |
이 속성은 일치하는 글꼴의 이탤릭체 값을 보유합니다.
QFontInfo::italic()도 참조하세요 .
pixelSize : int |
이 속성은 일치하는 글꼴의 픽셀 크기를 보유합니다.
QFontInfo::pixelSize()도 참조하세요 .
pointSize : real |
이 속성은 일치하는 글꼴의 포인트 크기를 보유합니다.
QFontInfo::pointSizeF()도 참조하세요 .
style : enum |
이 속성은 일치하는 글꼴의 스타일을 보유합니다.
Constant | 설명 |
---|---|
Font.StyleNormal | 이탤릭 기울기가 없는 일반 글리프를 포함합니다. |
Font.StyleItalic | 이탤릭체 텍스트를 표현하는 데 사용하도록 설계된 글리프를 포함합니다. |
Font.StyleOblique | 일반적으로 특별히 디자인되지 않고 글꼴 패밀리의 일반 글리프에 기울기를 적용하여 만든 이탤릭체 모양의 글리프를 포함합니다. |
QFontInfo::style()도 참조하세요 .
styleName : real |
이 속성은 매핑된 글꼴의 스타일 이름(또는 "하위 패밀리")을 보유합니다.
QFontInfo::styleName()도 참조 하세요.
variableAxes : list |
이 속성은 일치하는 글꼴이 지원하는 가변 축을 보유합니다. 목록은 tag
, name
, minimumValue
, maximumValue
, defaultValue
속성을 가진 QFontVariableAxis 객체로 구성됩니다.
QFontInfo::variableAxes() 및 QFontVariableAxis도 참조하세요 .
weight : int |
이 속성은 일치하는 글꼴의 가중치를 보유합니다.
bold 및 QFontInfo::weight()도 참조 하세요.
© 2025 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.