//go:build !darwin

package card

import (
	_ "embed"

	"golang.org/x/image/font/sfnt"
)

// Linux desktops rarely have a rounded Japanese face, so chirami ships one
// for the card to look as it does with macOS's Hiragino Maru Gothic:
// M PLUS Rounded 1c, with Latin from Source Sans 3, which reads better at
// small sizes. Both are under the SIL Open Font License 1.1 (fonts/*OFL*,
// fonts/*LICENSE*).
var (
	//go:embed fonts/MPLUSRounded1c-Regular.ttf
	rounded []byte
	//go:embed fonts/SourceSans3-Regular.ttf
	sourceSans []byte
)

func shippedFonts() (latin, japanese *sfnt.Font) {
	latin, _ = sfnt.Parse(sourceSans)
	japanese, _ = sfnt.Parse(rounded)
	return latin, japanese
}
