OwlCyberSecurity - MANAGER
Edit File: font_manager.cpython-38.pyc
U ��]� � @ sj d Z ddlmZ ddlZddlZddlmZ ddlZddlm Z ddl Z ddlZzddlm Z W n ek r� ddlm Z Y nX ddlZddlmZmZmZmZ ddlmZmZ e�e�Zd d ddd ddd ddd� Zdddddddddd� Zddddddddddddddd�Zddddd d!d"hZd#Z d$d%gZ!ej"�#e$e �%� �d&�ej"�#e$e �%� �d'�gZ&d(d)d*d+d,e$e ej'�(d-e �%� d. ��d/ �e$e �%� d0 �gZ)d1d2d3d4e$e �%� d5 �gZ*d6d7� Z+d8d9� Z,d:d;� Z-d<d=� Z.dod?d@�Z/e�0dA�dpdBdC��Z1e� dDdE� �Z2dqdFdG�Z3drdHdI�Z4G dJdK� dKe5�Z6dLdM� Z7dNdO� Z8dsdPdQ�Z9G dRdS� dSe5�Z:G dTdU� dUej;�Z;dVdW� Z<dXdY� Z=dZd[� Z>d\d]� Z?e�0d^�G d_d`� d`e5��Z@G dadb� dbe5�ZAe� dcdd� �ZBej"�#e�C� de�DeAjE��ZFdaGedf�ejH�ZIeJedg��r�ejKeIjLdh� dtdidj�ZMdkdl� ZNze>eF�aGW n eOk �r4 eN� Y n,X ePtGdme5� �eAjEk�rTeN� ne�QdneF� tGjRZRdS )ua� A module for finding, managing, and using fonts across platforms. This module provides a single :class:`FontManager` instance that can be shared across backends and platforms. The :func:`findfont` function returns the best TrueType (TTF) font file in the local or system font path that matches the specified :class:`FontProperties` instance. The :class:`FontManager` also handles Adobe Font Metrics (AFM) font files for use by the PostScript backend. The design is based on the `W3C Cascading Style Sheet, Level 1 (CSS1) font specification <http://www.w3.org/TR/1998/REC-CSS2-19980512/>`_. Future versions may implement the Level 2 or 2.1 specifications. � )� lru_cacheN)�Number)�Path)�Timer)�afm�cbook�ft2font�rcParams)�parse_fontconfig_pattern�generate_fontconfig_patterng�I+��?gh��|?5�?g-����?� �?g333333�?g ףp= �?g��S�?) zxx-smallzx-smallZsmall�mediumZlargezx-largezxx-largeZlargerZsmallerN�d �� i, � �� iX � i i� ) zultra-condensedzextra-condensed� condensed�semi-condensed�normalz semi-expanded�expandedzextra-expandedzultra-expanded)Z ultralightZlightr �regularZbookr ZromanZsemiboldZdemiboldZdemiZboldZheavyz extra boldZblackZserif� sans-serif� sans serifZcursiveZfantasyZ monospace�sansz@Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Foldersz2SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fontsz/SOFTWARE\Microsoft\Windows\CurrentVersion\Fontsz%AppData\Local\Microsoft\Windows\Fontsz'AppData\Roaming\Microsoft\Windows\Fontsz/usr/X11R6/lib/X11/fonts/TTF/z/usr/X11/lib/X11/fontsz/usr/share/fonts/z/usr/local/share/fonts/z)/usr/lib/openoffice/share/fonts/truetype/Z XDG_DATA_HOMEz.local/share�fontsz.fontsz/Library/Fonts/z/Network/Library/Fonts/z/System/Library/Fonts/z/opt/local/share/fontsz Library/Fontsc C s&