(group, options)
| 12860 | }; |
| 12861 | |
| 12862 | var optionsWithFont = function optionsWithFont(group, options) { |
| 12863 | var font = group.font; // Checks if the argument is a font family or a font style. |
| 12864 | |
| 12865 | if (!font) { |
| 12866 | return options; |
| 12867 | } else if (textFontFamilies[font]) { |
| 12868 | return options.withTextFontFamily(textFontFamilies[font]); |
| 12869 | } else if (textFontWeights[font]) { |
| 12870 | return options.withTextFontWeight(textFontWeights[font]); |
| 12871 | } else { |
| 12872 | return options.withTextFontShape(textFontShapes[font]); |
| 12873 | } |
| 12874 | }; |
| 12875 | |
| 12876 | defineFunction({ |
| 12877 | type: "text", |
no test coverage detected