← Back
Editing: pdfmetrics.cpython-311.pyc
� �j4c�t � �� � d Z dZddlZddlZddlZddlmZ ddlmZ ddl m Z mZmZm Z mZmZmZmZ ddlmZmZ ddlmZmZ dd lmZ d Zej � � � ej Zej Zi Zi Zi Z i Z! G d� de"� � Z# G d � de"� � Z$d� Z% G d� d� � Z&d7d�Z'd� Z( G d� d� � Z)g Z* G d� d� � Z+ e,d� � Z- e,d� � Z. e,d� � Z/ e,d� � Z0d� Z1da2 G d� de&� � Z3d� Z4d � Z5d8d!�Z6d"� Z7d#� Z8d$� Z9d%� Z:d&� Z; e;d'� � Z<e*�= e;d(� � e<g� � d7d)�Z>d7d*�Z?d7d+�Z@d,� ZAd9d.�ZBd/� ZCd0� ZDd1� ZEd2� ZF eGe�H � � e�H � � e �H � � e!�H � � �3� � fd4�ZIdd5lmJZJ eJeI� � [JeKd6k r eF� � eE� � dS dS ):z3.3.0a� This provides a database of font metric information and efines Font, Encoding and TypeFace classes aimed at end users. There are counterparts to some of these in pdfbase/pdfdoc.py, but the latter focus on constructing the right PDF objects. These classes are declarative and focus on letting the user construct and query font objects. The module maintains a registry of font objects at run time. It is independent of the canvas or any particular context. It keeps a registry of Font, TypeFace and Encoding objects. Ideally these would be pre-loaded, but due to a nasty circularity problem we trap attempts to access them and do it on first access. � N)� _fontdata)�warnOnce)� rl_isfile�rl_glob�rl_isdir� open_and_read�open_and_readlines�findInPaths�isSeq�isStr)�defaultEncoding�T1SearchPath)� unicode2T1�instanceStringWidthT1)� rl_codecs� nc � � e Zd ZdS )� FontErrorN��__name__� __module__�__qualname__� � �>/usr/lib/python3/dist-packages/reportlab/pdfbase/pdfmetrics.pyr r '