%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/graphics/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/graphics/__pycache__/testshapes.cpython-312.pyc |
� ��eWC � �� � d Z dZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZ ddl mZ dd lmZ dd l� ddlZg d�Zd� Zd � ZddlmZ ee� e� d� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d� Z"ddl#m$Z$ d� Z%d� Z&d� Z'd� Z(d� Z)d(d �Z*d)d!�Z+d(d"�Z,d#� Z- G d$� d%ej\ � Z/d&� Z0e1d'k( r& ejd � jg e0� � yy)*z $Id $ z�Execute this script to see some test drawings. This contains a number of routines to generate test drawings for reportlab/graphics. For now many of them are contrived, but we will expand them to try and trip up any parser. Feel free to add more. � N)�BytesIO)�colors)�cm)�asNative�base64_decodebytes)�Canvas)�stringWidth)�*)�Times-Roman�VerazTimes-BoldItalicc �h � ddl m} m} | j |j dd� � | j |j dd� � | j |j dd� � | j |j d d � � g d�}t j dk( r�d D ]� \ }}dD ]x }t j j |d|� }t j j |� s�D |j ||� }| j |� |j |� �z �� |S # Y ��xY w)Nr )� pdfmetrics�ttfontsr zVera.ttf�VeraBdz VeraBd.ttf�VeraItz VeraIt.ttf�VeraBIz VeraBI.ttf)r �Courier� Helveticar r r r �win32))zAdventurer Light SFz Advlit.ttf)�ArialMSz ARIAL.TTF)zArial Unicode MSzARIALUNI.TTF)zBook Antiquaz BKANT.TTF)zCentury Gothicz GOTHIC.TTF)z Comic Sans MSz COMIC.TTF)zElementary Heavy SF Boldz Vwagh.ttf)z Firenze SFzflot.ttf)�GaramondzGARA.TTF)�JaggerzRols.ttf)zMonotype CorsivazMTCORSVA.TTF)z Seabird SFzseag.ttf)�Tahomaz TAHOMA.TTF)� VerdanaMSzVERDANA.TTF)zc:\WINNTz c:\Windows�Fonts)�reportlab.pdfbaser r �registerFont�TTFont�sys�platform�os�path�join�isfile�append)r r �F�name�ttf�D�fn�fs �?/usr/lib/python3/dist-packages/reportlab/graphics/testshapes.py�_setupr- s � �5����G�N�N�6�:�>�?����G�N�N�8�\�B�C����G�N�N�8�\�B�C����G�N�N�8�\�B�C�R�A� �|�|�W��� �I�D�#� 1� ���W�W�\�\�!�G�C�0���7�7�>�>�"�%��#�N�N�4��4��"�/�/��2������ � �0 �H����s �34D-�-D1c �^ � t � D ] } | t vs�t j | � �" y )N)r- �_FONTSr% )r+ s r, � resetFontsr0 A s&