summaryrefslogtreecommitdiff
path: root/examples/shapes/main.go
diff options
context:
space:
mode:
authorLenni <[email protected]>2021-03-10 20:45:26 +0100
committerLenni <[email protected]>2021-03-10 20:45:26 +0100
commitb0287db741413703bd3db5d25648710660ffe088 (patch)
tree593ef3a708b43d2faeda13d2b3937504b3187d24 /examples/shapes/main.go
parent6bce073f59991e537566a658829f7526aa4bafa0 (diff)
use fixed font
Diffstat (limited to 'examples/shapes/main.go')
-rw-r--r--examples/shapes/main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/shapes/main.go b/examples/shapes/main.go
index 4bc3ee3..aecc21f 100644
--- a/examples/shapes/main.go
+++ b/examples/shapes/main.go
@@ -140,9 +140,13 @@ func main() {
// Using a specific font (e.g. Gnu Unifont) can be as easy as
// "-gnu-unifont-*-*-*-*-16-*-*-*-*-*-*-*"
//
- // For this example we simply want to load any font of size 14 which is capable
- // of displaying Unicode characters:
- fontname := "-*-*-*-*-*-*-14-*-*-*-*-*-iso10646-1"
+ // To load any font that is encoded for usage
+ // with Unicode characters, one would use
+ // fontname := "-*-*-*-*-*-*-14-*-*-*-*-*-iso10646-1"
+ //
+ // For now, we'll simply stick with the fixed font which is available
+ // to every X session:
+ fontname := "-*-fixed-*-*-*-*-14-*-*-*-*-*-*-*"
err = xproto.OpenFontChecked(X, font, uint16(len(fontname)), fontname).Check()
if err != nil {
fmt.Println("failed opening the font:", err)