| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/fontTools/__pycache__/ |
Upload File : |
o
��a�y � @ s� d gZ ddlmZmZ ddlmZ ddlmZ ddlZddl m
Z
ed�i dd �d
d �dd�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd��Zedddddddddddddddd�Z
ed dd!�Zed"ddddddddd#� Zed�i dd�d$d�d%d�d&d�d'd�d(d�d)d�d*d�d+d�d,d�d-d�d.d�d/d�d0d�d1d�d2d�d3d��Zed�i dd�d$d�d%d�d&d�d4d�d5d�d6d�d7d�d+d�d,d�d.d�d/d�d0d�d1d�d8d�d2d�d9d��Zed�i d:d�d;d�d<d�d=d�d>d?�d@dA�dBdC�dDdE�dFdG�dHdI�dJdK�dLdM�dNdO�dPdQ�dRdS�dTdU�dVdW�dXdY�dZd[�d\d]�d^d_�d`da�dbdc�ddde�dfdg��Zedddddddddddh�
Zed�i d@d�did�djdk�dldA�dmd?�dnd�dod�dpd�dqd�drd�dsd�dtd�dud�dvd�dwd�dxd�dye�dzd�d{d�d|d�d}d�d~d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d��d�d�d�d�d�d��ZG d�d � d e�Zd�d�� Zd�d�� ZdS )��FontBuilder� )�TTFont�newTable)�cmap_classes)�timestampNow� N)�OrderedDict�tableVersiong �?�fontRevision�checkSumAdjustment�magicNumberi�<_�flags� �
unitsPerEmi� �created�modified�xMin�yMin�xMax�yMax�macStyle�
lowestRecPPEM�fontDirectionHint� �indexToLocFormat�glyphDataFormat� )r � numGlyphs� maxPoints�maxContours�maxCompositePoints�maxCompositeContours�maxZones�maxTwilightPoints�
maxStorage�maxFunctionDefs�maxInstructionDefs�maxStackElements�maxSizeOfInstructions�maxComponentElements�maxComponentDepthi P )r r � @) �
formatType�italicAngle�underlinePosition�underlineThickness�isFixedPitch�minMemType42�maxMemType42�minMemType1�maxMemType1�ascent�descent�lineGap�advanceWidthMax�minLeftSideBearing�minRightSideBearing�
xMaxExtent�caretSlopeRise�
caretSlopeRun�caretOffset� reserved0� reserved1� reserved2� reserved3�metricDataFormat�numberOfHMetrics�advanceHeightMax�minTopSideBearing�minBottomSideBearing�
yMaxExtent� reserved4�numberOfVMetrics� copyright�
familyName� styleName�uniqueFontIdentifier�fullName� �version� �psName� � trademark� �manufacturer� �designer� �description�
� vendorURL� �designerURL� �licenseDescription�
�licenseInfoURL� �typographicFamily� �typographicSubfamily� �compatibleFullName� �
sampleText� �postScriptCIDFindfontName� �
wwsFamilyName� �wwsSubfamilyName� �lightBackgroundPalette� �darkBackgroundPalette� �variationsPostScriptNamePrefix� )
�bFamilyType�bSerifStyle�bWeight�bProportion� bContrast�bStrokeVariation� bArmStyle�bLetterForm�bMidline�bXHeight�
xAvgCharWidth�
usWeightClassi� �usWidthClass�fsType�ySubscriptXSize�ySubscriptYSize�ySubscriptXOffset�ySubscriptYOffset�ySuperscriptXSize�ySuperscriptYSize�ySuperscriptXOffset�ySuperscriptYOffset�yStrikeoutSize�yStrikeoutPosition�sFamilyClass�panose�ulUnicodeRange1�ulUnicodeRange2�ulUnicodeRange3�ulUnicodeRange4� achVendIDz????�fsSelection�usFirstCharIndex�usLastCharIndex�
sTypoAscender�sTypoDescender�sTypoLineGap�usWinAscent�usWinDescent�ulCodePageRange1�ulCodePageRange2�sxHeight�
sCapHeight�
usDefaultChar�usBreakChar� �usMaxContext�usLowerOpticalPointSize�usUpperOpticalPointSizec @ s2 e Zd ZdFdd�Zdd� Zdd� Zd d
� Zdd� Zd
d� Zdd� Z dGdd�Z
dHdd�Zdd� Zdd� Z
dIdd�Zdd� ZdJdd�Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� ZdKd2d3�ZdJd4d5�Zd6d7� Zd8d9� ZdId:d;�ZdLd=d>�Z dMd?d@�Z dNdAdB�Z!dOdDdE�Z"dS )Pr NTc C sh |du r$t dd�| _|| _t� }|dusJ �| j|||d� | �� dS |du s*J �|| _d|v | _dS )a� Initialize a FontBuilder instance.
If the `font` argument is not given, a new `TTFont` will be
constructed, and `unitsPerEm` must be given. If `isTTF` is True,
the font will be a glyf-based TTF; if `isTTF` is False it will be
a CFF-based OTF.
If `font` is given, it must be a `TTFont` instance and `unitsPerEm`
must _not_ be given. The `isTTF` argument will be ignored.
NF)�recalcTimestamp)r r r �glyf)r �font�isTTFr � setupHead� setupMaxp)�selfr r� r� �now� r� �7/usr/lib/python3/dist-packages/fontTools/fontBuilder.py�__init__B s zFontBuilder.__init__c C � | j �|� dS )zgSave the font. The 'file' argument can be either a pathname or a
writable file object.
N)r� �save)r� �filer� r� r� r� Y � zFontBuilder.savec C sR t |� }| j|<