diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-23 04:55:41 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-09-02 18:25:36 +0200 |
commit | 0c2853a8ae51367e03b727538d01b07642e276d7 (patch) | |
tree | 131d9d8af0141ce677392a5efc129e31d3ce0d41 | |
parent | 41e04fdc9f04f19f2284ccf2da7b9f910c8569d2 (diff) | |
download | haven-0c2853a8ae51367e03b727538d01b07642e276d7.tar.gz haven-0c2853a8ae51367e03b727538d01b07642e276d7.tar.xz haven-0c2853a8ae51367e03b727538d01b07642e276d7.zip |
xgb-render: update comments
-rw-r--r-- | prototypes/xgb-xrender.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/prototypes/xgb-xrender.go b/prototypes/xgb-xrender.go index 75bf62e..ad768b7 100644 --- a/prototypes/xgb-xrender.go +++ b/prototypes/xgb-xrender.go @@ -1,10 +1,18 @@ package main +// We could also easily use x/image/font/basicfont to load some glyphs into X, +// relying on the fact that it is a vertical array of A8 masks. Though it only +// supports ASCII and has but one size. Best just make a custom BDF loader, +// those fonts have larger coverages and we would be in control. Though again, +// they don't seem to be capable of antialiasing. + import ( "fmt" "github.com/BurntSushi/xgb" "github.com/BurntSushi/xgb/render" "github.com/BurntSushi/xgb/xproto" + // golang.org/x/image/font/opentype cannot render yet but the API is + // more or less the same. "github.com/golang/freetype" "github.com/golang/freetype/truetype" "golang.org/x/image/font" |