fontSize method
Searches the path to the root for the first occurance of a node with a
font-size information. The parameter is a map of tagNames to default
font-sizes. This map must contain an entry for ""
, which is used
if no information is found.
Implementation
double fontSize(Map<String, double> sizes) {
NodeV2? k = parent;
while (k != null) {
double? fontSize = k._fontSize(sizes);
if (fontSize != null) return fontSize;
k = k.parent;
}
return sizes[""]!;
}