text/v2: bug fix: metadata was lacked

This commit is contained in:
Hajime Hoshi 2023-11-26 14:23:52 +09:00
parent b925f28104
commit b0c5a49f96

View File

@ -32,6 +32,9 @@ func metadataFromLoader(l *loader.Loader) Metadata {
d := metadata.Metadata(l)
return Metadata{
Family: d.Family,
Style: Style(d.Aspect.Style),
Weight: Weight(d.Aspect.Weight),
Stretch: Stretch(d.Aspect.Stretch),
Monospace: d.IsMonospace,
}
}