by Anonymous » 27 Feb 2025, 12:16
Ich verwende derzeit QT 6.8.1 für die Entwicklung mehrerer Android -Apps und habe Probleme, die gleiche Schriftart zwischen Windows und Android in mehreren Szenarien zu haben.
Code: Select all
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
ApplicationWindow {
width: 450
height: 800
visible: true
title: qsTr("Hello World")
ColumnLayout{
Text{
text: "[Default] ABCDabcd0123456789"
font.pointSize: 15
}
Text{
text: "[Default Thin] ABCDabcd0123456789"
font.weight: Font.Thin
font.pointSize: 15
}
Text{
text: "[Default ExtraLight] ABCDabcd0123456789"
font.weight: Font.ExtraLight
font.pointSize: 15
}
Text{
text: "[Default Light] ABCDabcd0123456789"
font.weight: Font.Light
font.pointSize: 15
}
Text{
text: "[Default Normal] ABCDabcd0123456789"
font.weight: Font.Normal
font.pointSize: 15
}
Text{
text: "[Default Medium] ABCDabcd0123456789"
font.weight: Font.Medium
font.pointSize: 15
}
Text{
text: "[Default DemiBold] ABCDabcd0123456789"
font.weight: Font.DemiBold
font.pointSize: 15
}
Text{
text: "[Default Bold] ABCDabcd0123456789"
font.weight: Font.Bold
font.pointSize: 15
}
Text{
text: "[Default ExtraBold] ABCDabcd0123456789"
font.weight: Font.ExtraBold
font.pointSize: 15
}
Text{
text: "[Default Black] ABCDabcd0123456789"
font.weight: Font.Black
font.pointSize: 15
}
Rectangle{
Layout.preferredWidth: parent.width
Layout.preferredHeight: 4
radius: 8
color: "#000000"
}
}
Auf meinem OnePlus a6013 mit Clang-arme64-v8a wird wie folgt angezeigt:
Ich verwende derzeit QT 6.8.1 für die Entwicklung mehrerer Android -Apps und habe Probleme, die gleiche Schriftart zwischen Windows und Android in mehreren Szenarien zu haben.[code]import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
ApplicationWindow {
width: 450
height: 800
visible: true
title: qsTr("Hello World")
ColumnLayout{
Text{
text: "[Default] ABCDabcd0123456789"
font.pointSize: 15
}
Text{
text: "[Default Thin] ABCDabcd0123456789"
font.weight: Font.Thin
font.pointSize: 15
}
Text{
text: "[Default ExtraLight] ABCDabcd0123456789"
font.weight: Font.ExtraLight
font.pointSize: 15
}
Text{
text: "[Default Light] ABCDabcd0123456789"
font.weight: Font.Light
font.pointSize: 15
}
Text{
text: "[Default Normal] ABCDabcd0123456789"
font.weight: Font.Normal
font.pointSize: 15
}
Text{
text: "[Default Medium] ABCDabcd0123456789"
font.weight: Font.Medium
font.pointSize: 15
}
Text{
text: "[Default DemiBold] ABCDabcd0123456789"
font.weight: Font.DemiBold
font.pointSize: 15
}
Text{
text: "[Default Bold] ABCDabcd0123456789"
font.weight: Font.Bold
font.pointSize: 15
}
Text{
text: "[Default ExtraBold] ABCDabcd0123456789"
font.weight: Font.ExtraBold
font.pointSize: 15
}
Text{
text: "[Default Black] ABCDabcd0123456789"
font.weight: Font.Black
font.pointSize: 15
}
Rectangle{
Layout.preferredWidth: parent.width
Layout.preferredHeight: 4
radius: 8
color: "#000000"
}
}
[/code]
Auf meinem OnePlus a6013 mit Clang-arme64-v8a wird wie folgt angezeigt: