def stripInstructions(font):
    """Remove all TrueType instructions from the font.
    """
    """
        TODO: Fix docTests

        >>> from pagebot.fonttoolbox.objects.font import findFont
        >>> pf = findFont('Bungee-Regular')
        >>> font = pf.ttFont
        >>> byteCode = font["glyf"]["a"].program.getBytecode()
        >>> len(byteCode)
        58
        >>> font.has_key("cvt ")
        1
        >>> stripInstructions(font)
        >>> byteCode = font["glyf"]["a"].program.getBytecode()
        >>> len(byteCode)
        0
        >>> font.has_key("cvt ")
        0
    """
    glyfTable = font['glyf']
    for gn in glyfTable.keys():
        g = glyfTable[gn]
        if g.isComposite():
            if hasattr(g, 'program'):
                del g.program
        elif hasattr(g, 'program'):
            g.program.fromBytecode([])
    tablesToDelete = ['cvt ', 'prep', 'fpgm']
    for tag in tablesToDelete:
        if font.has_key(tag):
            del font[tag]
