def unicoderange(ttFont):
    """Get an integer bitmap representing the UnicodeRange fields in the os/2 table."""
    os2 = ttFont['OS/2']
    return (os2.ulUnicodeRange1 |
            os2.ulUnicodeRange2 << 32 |
            os2.ulUnicodeRange3 << 64 |
            os2.ulUnicodeRange4 << 96)