File: //home/arjun/projects/env/lib/python3.10/site-packages/cairocffi/__pycache__/fonts.cpython-310.pyc
o
*we(L � @ s� d Z ddlmZmZmZmZmZ ddlmZ dd� Z G dd� de
�ZG dd � d e�Zej
eiZG d
d� de
�ZG dd
� d
e
�ZdS )z�
cairocffi.fonts
~~~~~~~~~~~~~~~
Bindings for font-related objects.
:copyright: Copyright 2013-2019 by Simon Sapin
:license: BSD, see LICENSE for details.
� )�
_check_status�_keepref�cairo� constants�ffi)�Matrixc C s t | t�s
| �d�} t�d| �S )z2Return a byte string, encoding Unicode with UTF-8.�utf8zchar[])�
isinstance�bytes�encoder �new)�string� r �H/home/arjun/projects/env/lib/python3.10/site-packages/cairocffi/fonts.py�_encode_string s
r c @ s, e Zd ZdZdd� Zdd� Zedd� �ZdS ) �FontFacez�The base class for all font face types.
Should not be instantiated directly, but see :doc:`cffi_api`.
An instance may be returned for cairo font face types
that are not (yet) defined in cairocffi.
c C �"