(group, options)
| 12617 | }; |
| 12618 | |
| 12619 | const optionsWithFont = (group, options) => { |
| 12620 | const font = group.font; // Checks if the argument is a font family or a font style. |
| 12621 | |
| 12622 | if (!font) { |
| 12623 | return options; |
| 12624 | } else if (textFontFamilies[font]) { |
| 12625 | return options.withTextFontFamily(textFontFamilies[font]); |
| 12626 | } else if (textFontWeights[font]) { |
| 12627 | return options.withTextFontWeight(textFontWeights[font]); |
| 12628 | } else { |
| 12629 | return options.withTextFontShape(textFontShapes[font]); |
| 12630 | } |
| 12631 | }; |
| 12632 | |
| 12633 | defineFunction({ |
| 12634 | type: "text", |
no test coverage detected