Bug or feature: Swing default gui font incorrect for Win6+

前端 未结 1 634
野的像风
野的像风 2020-12-06 01:10

just (astonishingly ;-) noticed the reason why apps look so cramped on my win6+ machines (same for Vista and Win7, both with 120dpi setting, jdk6 and jdk7): the control font

相关标签:
1条回答
  • 2020-12-06 01:37

    I think that isn't a bug but basic property of Win7 and built_in themes, interesting size of Font, I still use smaller Fonts (default setting from OS instalation)

    for example if I set / switch

    1.Windows7 Basic theme

    gui default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=11]
    icon default: java.awt.Font[family=Segoe UI,name=Segoe UI,style=plain,size=12]
    

    2.Windows7 Classic theme

    gui default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=11]
    icon default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=11]
    
    don't touched the Font property, will be continue for from WinXP
    

    3.WindowXP modified theme

    gui default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=11]
    icon default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=13]
    

    4.Windows7 Classic theme

    gui default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=11]
    icon default: java.awt.Font[family=Tahoma,name=Tahoma,style=plain,size=11]
    
    0 讨论(0)
提交回复
热议问题