Add display components 041-065; move Icon into display; QR via rsc.io/qr
This commit is contained in:
41 files changed
+2152
-44
No files matched your search
@@ -90,6 +90,16 @@ func microGlyph(r rune) [MicroHeight]uint8 {
|
||||
return g
|
||||
}
|
||||
|
||||
// MicroOK reports whether the micro font has all of s.
|
||||
func MicroOK(s string) bool {
|
||||
for _, r := range s {
|
||||
if _, ok := micro[unicode.ToUpper(r)]; !ok {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// MicroWidth returns the width of s in dots.
|
||||
func MicroWidth(s string) int {
|
||||
n := 0
|
||||
|
||||
Reference in new issue
Block a user