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) d := metadata.Metadata(l)
return Metadata{ return Metadata{
Family: d.Family, Family: d.Family,
Style: Style(d.Aspect.Style),
Weight: Weight(d.Aspect.Weight),
Stretch: Stretch(d.Aspect.Stretch),
Monospace: d.IsMonospace, Monospace: d.IsMonospace,
} }
} }