• Default isBold decision based on font-weight. For any font-weight greater than 400 (or bold/bolder) it will signal bold. For any font-weight less than or equal to 400 (or normal/lighter) it will signal non-bold. For undetermined state by font-weight assumeBold will be returned unchanged.

    Parameters

    • assumedBold: boolean
    • fontWeight: FontWeightInformation

      font-weight retrieved and parsed from CSSStyleDeclaration

    Returns boolean