Forum für diejenigen, die für Android programmieren
Anonymous
QML -App auf Android, Schrift. Gewicht ist nicht zwischen Ziffern und Buchstaben bestehen
Post
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:
1740654969
Anonymous
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:
0 Replies
4 Views
Last post by Anonymous
12 Apr 2025, 15:50
0 Replies
3 Views
Last post by Anonymous
12 Apr 2025, 15:50
0 Replies
1 Views
Last post by Anonymous
11 Apr 2025, 16:52
0 Replies
4 Views
Last post by Anonymous
04 Mar 2025, 05:18
0 Replies
11 Views
Last post by Anonymous
04 Feb 2025, 22:02