* Parse font info from a majorFont or minorFont node. * Extracts typeface attributes from latin, ea, and cs child elements.
(fontNode: SafeXmlNode)
| 50 | * Extracts typeface attributes from latin, ea, and cs child elements. |
| 51 | */ |
| 52 | function parseFontInfo(fontNode: SafeXmlNode): { latin: string; ea: string; cs: string } { |
| 53 | return { |
| 54 | latin: fontNode.child('latin').attr('typeface') ?? '', |
| 55 | ea: fontNode.child('ea').attr('typeface') ?? '', |
| 56 | cs: fontNode.child('cs').attr('typeface') ?? '', |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Parse a theme XML root (`a:theme`) into ThemeData. |
no test coverage detected