← Back
Editing: textobject.cpython-311.pyc
� ~G�bKL � � � d Z dZddlmZmZmZmZ ddlmZm Z m Z ddlmZ ddl mZ ddlmZ dZd � Zer9 dd lmZmZmZmZ eee�� � Zd� Zn# ddlZ ej d � � Y nxY w G d� d� � Z G d� de� � ZdS )z3.3.0z� PDFTextObject is an efficient way to add text to a Canvas. Do not instantiate directly, obtain one from the Canvas instead. Progress Reports: 8.83, 2000-01-13, gmcm: created from pdfgen.py � )�Color� CMYKColor�CMYKColorSep�toColor)�isBytes�isStr� asUnicode)�fp_str)� pdfmetrics)� rtlSupportNc � � | S �N� ��text� directions �=/usr/lib/python3/dist-packages/reportlab/pdfgen/textobject.py�fribidiTextr s � ��K� )�log2vis�ON�LTR�RTL�r r c �n � |dv r0t | t � |t � � d�� � n| S )Nr T��clean)r � directionsMap�get�DIR_ONr s r r r s8 � �T]�an�Tn�Tn�7�4��!2�!2�9�V�!D�!D�4�P�P�P�P�tx�xr z.pyfribidi is not installed - RTL not supportedc �z � e Zd ZdZd� ZdZdd�Zdd�Zdd�Zdd�Z dd�Z dd �Zdd �Zdd�Z d� Zd � Zd� Zd� Zd� ZdS )�_PDFColorSetterziAbstracts the color setting operations; used in Canvas and Textobject asseumes we have a _code objectc � � t |t � � r2| j � |� � \ }}|| j vr || j |<