Commit b28aed35 authored by Peter Achten's avatar Peter Achten

added comments to FontDef` fields

parent 8695da12
Pipeline #23699 failed with stage
in 2 minutes and 54 seconds
......@@ -24,12 +24,12 @@ from Text.GenJSON import generic JSONEncode, generic JSONDecode, :: JSONNode
| PathXSpan !ImageTag // (PathXSpan t) is x-span of path element tagged with t
| PathYSpan !ImageTag // (PathYSpan t) is y-span of path element tagged with t
:: FontDef`
= { fontfamily` :: !String
, fontysize` :: !Real
, fontstretch` :: !String
, fontstyle` :: !String
, fontvariant` :: !String
, fontweight` :: !String
= { fontfamily` :: !String // font family name
, fontysize` :: !Real // font size as span (px -)
, fontstretch` :: !String // default value: "normal"
, fontstyle` :: !String // default value: "normal"
, fontvariant` :: !String // default value: "normal"
, fontweight` :: !String // default value: "normal"
}
class (*.) infixl 7 a :: !a !n -> Span | toReal n
......
......@@ -26,12 +26,12 @@ from Text.GenJSON import generic JSONEncode, generic JSONDecode, :: JSONNode
| PathXSpan !ImageTag // (PathXSpan t) is x-span of path element tagged with t
| PathYSpan !ImageTag // (PathYSpan t) is y-span of path element tagged with t
:: FontDef`
= { fontfamily` :: !String
, fontysize` :: !Real
, fontstretch` :: !String
, fontstyle` :: !String
, fontvariant` :: !String
, fontweight` :: !String
= { fontfamily` :: !String // font family name
, fontysize` :: !Real // font size as span (px -)
, fontstretch` :: !String // default value: "normal"
, fontstyle` :: !String // default value: "normal"
, fontvariant` :: !String // default value: "normal"
, fontweight` :: !String // default value: "normal"
}
/* The span computations below simplify their expressions by applying actual computations on (PxSpan _) values as much as possible.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment