
    Ph                     f    d dl mZ d dlmZ d dlmZmZ ddlmZ dZ	 G d dej                        Z
y	)
    )sstruct)safeEval)timestampFromStringtimestampToString   )DefaultTablezb
		>	# big endian
		version:        I
		FFTimeStamp:    Q
		sourceCreated:  Q
		sourceModified: Q
c                   (    e Zd ZdZd Zd Zd Zd Zy)table_F_F_T_M_a=  FontForge Time Stamp table

    The ``FFTM`` table is used by the free-software font editor
    FontForge to record timestamps for the creation and modification
    of font source (.sfd) files and a timestamp for FontForge's
    own source code.

    See also https://fontforge.org/docs/techref/non-standard.html
    c                 @    t        j                  t        ||       \  }}y N)r   unpack2
FFTMFormat)selfdatattFontdummyrests        jC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\fontTools/ttLib/tables/F_F_T_M_.py	decompileztable_F_F_T_M_.decompile   s    ooj$=t    c                 :    t        j                  t        |       }|S r   )r   packr   )r   r   r   s      r   compileztable_F_F_T_M_.compile   s    ||J-r   c                 
   |j                  d       |j                          t        j                  t              \  }}}|D ]@  }t        | |      }|dv rt        |      }|j                  ||       |j                          B y )NzBFontForge's timestamp, font source creation and modification datesFFTimeStampsourceCreatedsourceModified)value)commentnewliner   	getformatr   getattrr   	simpletag)r   writerr   formatstringnamesfixesnamer   s           r   toXMLztable_F_F_T_M_.toXML!   sz    P	
 	%,%6%6z%B"eUDD$'EII)%0T/NN r   c                 ^    |d   }|dv rt        |      }nt        |      }t        | ||       y )Nr   r   )r   r   setattr)r   r)   attrscontentr   r   s         r   fromXMLztable_F_F_T_M_.fromXML.   s3    gEE'.EUOEdE"r   N)__name__
__module____qualname____doc__r   r   r*   r/    r   r   r
   r
      s    >#r   r
   N)fontTools.miscr   fontTools.misc.textToolsr   fontTools.misc.timeToolsr   r    r   r   r
   r4   r   r   <module>r9      s*    " - K 
%#\.. %#r   