Skip to content

Commit

Permalink
Default Style|OS X: Use Open Sans as UI font (like on Windows)
Browse files Browse the repository at this point in the history
Standardizing appearance. Also, Qt is having real difficulties
picking the right font weights on Mavericks, which makes things
look ugly with Helvetica Neue. Let’s hope that future updates will
fix this.
  • Loading branch information
skyjake committed Jan 15, 2014
1 parent 628fdc4 commit d2a4a63
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions doomsday/client/data/defaultstyle.pack/fonts.dei
Expand Up @@ -4,25 +4,29 @@
# - weight: normal bold light
# - style: normal italic

script { import Version, gui }
script {
import Version, gui
# Load the Open Sans font contained in this pack.
def loadOpenSans()
import App, Path
fontDir = Path.fileNamePath(__file__) / "fonts"
# Sadly, light fonts seem to not work in Qt presently.
for style in ['Regular', 'Bold', 'Italic', 'BoldItalic'] #'Light', 'LightItalic'
App.loadFont(fontDir / ("OpenSans-%s.ttf" % style))
end
end
}

group {
condition: Version.OS == 'windows'

script { loadOpenSans() }

font default {
family: Open Sans
size: 12pt
weight: normal
style: normal

script {
# Load the Open Sans font contained in this pack.
import App, Path
fontDir = Path.fileNamePath(__file__) / "fonts"
for style in ['Regular', 'Bold', 'Italic', 'BoldItalic']
App.loadFont(fontDir / ("OpenSans-%s.ttf" % style))
end
}
style: normal
}

font monospace inherits default {
Expand All @@ -33,9 +37,11 @@ group {

group {
condition: Version.OS == 'macx'

script { loadOpenSans() }

font default {
family: Helvetica Neue
family: Open Sans
size: 16pt
weight: normal
style: normal
Expand Down

0 comments on commit d2a4a63

Please sign in to comment.