簡體   English   中英

在Windows中,字體顯示為斜體,但是在Linux中,字體始終顯示為粗體

[英]In Windows font shows Italic, but linux it always show bold

我創建了一個Qt應用程序,並使用FontLoader設置了一種正確的字體,並且該字體在Windows Qt Creator中是預期的,但是當在Linux(Ubuntu)機器上運行相同的東西時,總是將其視為粗體/常規,有人可以建議我如何在Linux和Windows OS中看到相同的字體顯示嗎? 在Linux中

Windows映像

FontLoader {
    id: localFont;
    source: "fonts/LiberationSerif-Italic.ttf"
}

我自己弄清楚了這個問題,謝謝@Velkan,這使我不得不檢查其他選項。

font.weight: "Extra Light"
font.weight: "Regular"
font.weight: "SemiBold"

設置以上屬性可以在需要時為我提供相關的顯示。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM