xgb-render: update comments
This commit is contained in:
		@@ -1,10 +1,18 @@
 | 
				
			|||||||
package main
 | 
					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 (
 | 
					import (
 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
	"github.com/BurntSushi/xgb"
 | 
						"github.com/BurntSushi/xgb"
 | 
				
			||||||
	"github.com/BurntSushi/xgb/render"
 | 
						"github.com/BurntSushi/xgb/render"
 | 
				
			||||||
	"github.com/BurntSushi/xgb/xproto"
 | 
						"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"
 | 
				
			||||||
	"github.com/golang/freetype/truetype"
 | 
						"github.com/golang/freetype/truetype"
 | 
				
			||||||
	"golang.org/x/image/font"
 | 
						"golang.org/x/image/font"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user