a
    ZXh'                     @   s,   d dl mZ d dlmZ G dd deZdS )    )BytesIO)table_C_F_F_c                   @   s    e Zd ZdZdd Zdd ZdS )table_C_F_F__2ar  Compact Font Format version 2 table

    The ``CFF2`` table contains glyph data for a CFF2-flavored OpenType
    font.

    .. note::
       ``CFF2`` is the successor to ``CFF``, and eliminates much of
       the redundancy incurred by embedding CFF version 1 in an OpenType
       font.

    See also https://learn.microsoft.com/en-us/typography/opentype/spec/cff2
    c                 C   s0   | j jt||dd t| j dks,J dd S )NTZisCFF2   z&can't deal with multi-font CFF tables.)cff	decompiler   len)selfdataotFont r   d/var/www/viveiro_mudafortebrasil/venv/lib/python3.9/site-packages/fontTools/ttLib/tables/C_F_F__2.pyr      s    ztable_C_F_F__2.decompilec                 C   s    t  }| jj||dd | S )NTr   )r   r   compilegetvalue)r
   r   fr   r   r   r      s    ztable_C_F_F__2.compileN)__name__
__module____qualname____doc__r   r   r   r   r   r   r      s   r   N)ior   ZfontTools.ttLib.tables.C_F_F_r   r   r   r   r   r   <module>   s   