export type TextOverlayStyle =
| "outline"
| "highlight"
// https://wiki.alpinelinux.org/wiki/Fonts
export type TextOverlayFont =
| "Noto"
| "Inconsolata"
export type TextOverlayFontWeight =
| 100
| 200
| 300
| 400
| 500
| 600
| 700
| 800
| 900
export type TextOverlayPosition =
| "start"
| "center"
| "end"
export function getCssStyle({
width,
height,
fontSize,
fontFamily,
fontWeight,
horizontalPosition,
verticalPosition,
px,
py,
}: {
width?: number | string
height?: number | string
fontSize: number
fontFamily: TextOverlayFont
fontWeight: TextOverlayFontWeight
horizontalPosition: TextOverlayPosition
verticalPosition: TextOverlayPosition
px: number
py: number
}) {
return `
`
}