Skip to content

Commit

Permalink
Linux|Default Style: Scale font sizes by the display DPI factor
Browse files Browse the repository at this point in the history
On Windows and OS X, the operating system and/or Qt scale the fonts
automatically, however on Linux it is currently necessary to scale the
sizes manually.
  • Loading branch information
skyjake committed Aug 26, 2015
1 parent 2cfe5d0 commit 14604df
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -7,7 +7,8 @@
# - transform: normal, uppercase, lowercase

script {
import Version, gui
import Version, gui, DisplayMode

# Load the Open Sans font contained in this pack.
def loadOpenSans()
import App
Expand Down Expand Up @@ -79,14 +80,14 @@ group {

font default {
family: Liberation Sans
size: 13pt
size $: gui.scale("13pt", DisplayMode.DPI_FACTOR)
weight: normal
style: normal
}

font monospace inherits default {
family: FreeMono
size: 12pt
size $: gui.scale("12pt", DisplayMode.DPI_FACTOR)
}
}

Expand Down

0 comments on commit 14604df

Please sign in to comment.