2019-10-09 00:41:41 +01:00
|
|
|
package conv
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2019-12-31 01:55:58 +00:00
|
|
|
"code.ur.gs/lupine/ordoor/internal/fonts"
|
2019-10-09 00:41:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type Font struct {
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
2019-12-29 23:40:30 +00:00
|
|
|
func (f *Font) Output(to interface{}, m interface{}, format string, args ...interface{}) {
|
2019-10-09 00:41:41 +01:00
|
|
|
|
2019-12-29 23:40:30 +00:00
|
|
|
// FIXME: actually output some text onto screen
|
2019-10-09 00:41:41 +01:00
|
|
|
|
2019-12-29 23:40:30 +00:00
|
|
|
fmt.Printf(format+"\n", args...)
|
2019-10-09 00:41:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func ConvertFont(font *fonts.Font) *Font {
|
|
|
|
// FIXME: actually use the pixel data in font
|
2019-12-29 23:40:30 +00:00
|
|
|
return &Font{Name: font.Name}
|
2019-10-09 00:41:41 +01:00
|
|
|
}
|