Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed|Unix|libgui: Text bounds measurements
Also defined some fonts for Unix in the client's Default Style pack.
- Loading branch information
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Fonts for the default UI style | ||
# | ||
# - size can be "pt" or "px", defaults to "pt" | ||
# - weight: normal bold light | ||
# - style: normal italic | ||
|
||
script { import Version, gui } | ||
|
||
font default condition "Version.OS == 'windows'" { | ||
family: Segoe UI | ||
size: 12pt | ||
weight: normal | ||
style: normal | ||
} | ||
|
||
group { | ||
condition: Version.OS == 'macx' | ||
|
||
font default { | ||
family: Helvetica Neue | ||
size: 16pt | ||
weight: normal | ||
style: normal | ||
} | ||
|
||
font monospace { | ||
family: Consolas | ||
size: 14pt | ||
weight: normal | ||
style: normal | ||
} | ||
} | ||
|
||
group { | ||
condition: Version.OS == 'linux' | ||
|
||
font default { | ||
family: Liberation Sans | ||
size: 14pt | ||
weight: normal | ||
style: normal | ||
} | ||
|
||
font monospace { | ||
family: FreeMono | ||
size: 12pt | ||
weight: normal | ||
style: normal | ||
} | ||
} | ||
|
||
font title inherits default { | ||
size $: gui.scale(__this__.size, 1.5) | ||
weight: bold | ||
} | ||
|
||
group log { | ||
font normal inherits default {} | ||
} | ||
|
||
group editor { | ||
font plaintext inherits default {} | ||
font hint inherits default { | ||
style: italic | ||
weight: light | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters