diff options
Diffstat (limited to 'examples/shapes/main.go')
| -rw-r--r-- | examples/shapes/main.go | 10 |
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) |
