HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/svgfont2layers.pyc
�
��Yc@sidZddlZddlZddlZdejfd��YZedkree�Zej�ndS(s�
Copyright (C) 2011 Felipe Correa da Silva Sanches <juca@members.fsf.org>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
i����NtSVGFont2LayerscBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsKd|_tjj|�|jjdddddddd	td
d�dS(Nis
--limitglyphstactiontstorettypetinkbooltdesttlimitglyphstdefaultthelpshLoad only the first 30 glyphs from the SVGFont (otherwise the loading process may take a very long time)(tcounttinkextEffectt__init__tOptionParsert
add_optiontTrue(tself((s0/usr/share/inkscape/extensions/svgfont2layers.pyRs	cCs�|jjtjdd��}tjj|tjdd��}|jtjdd�|�|jdd�|jdd	t|��dS(
Nt	namedviewtsodipoditguidetlabeltinkscapetorientations0,1tpositions0,(tsvgtfindR
taddNStetreet
SubElementtsettstr(RRtyRR((s0/usr/share/inkscape/extensions/svgfont2layers.pytcreate_horiz_guideline!s
!cCs7|j|�}|dkr3tjj||�}n|S(N(RtNoneR
RR(Rt
parentnodetnodetypetnode((s0/usr/share/inkscape/extensions/svgfont2layers.pyt
get_or_create(scCsRtj|�}tj|dd�tj|dt|�t|��tj|�S(Nii����i(t
simplepatht	parsePatht	scalePatht
translatePathtintt
formatPath(Rtdtemsizetbaselinetpathdata((s0/usr/share/inkscape/extensions/svgfont2layers.pytflip_cordinate_system.s#cCs�|jj�|_|jjtjdd��|_|jjtjdd��}|jd�}|jd�}|dkr�d}n|jtjdd��}|jd�}|jd	�}|jd
�}|jd�}|jd�}	|jj	d
|�|j
dt|��|j
dt|�t|��|j
dt|�t|��|j
dt|�t|��|j
dt|�t|	��|jtjdd��}
t
}x�|
D]�}|jd�}
|
dkr�q�ntjj|jtjdd��}|j	tjdd�d|
�|j	tjdd�d�|s[|j	dd�nt}|jtjdd��}xu|D]m}|jd�}|dkr�q�n|j|||�}tjj|tjdd��}|j	d|�q�W|jd�}|dkrq�n|j|||�}tjj|tjdd��}|j	d|�|jd7_|jjr�|jd kr�Pq�q�WdS(!NtdefsRtfontshoriz-adv-xshoriz-origin-yis	font-facesunits-per-ems
cap-heightsx-heighttascenttdescenttwidthR.tascendertcapstxheightt	descendertglyphtunicodetgRRsGlyphLayer-t	groupmodetlayertstylesdisplay:nonetpathR,ii(tdocumenttgetrootRRR
RR1tgetR!RR R*tfindallRRRtFalseR0R	toptionsR(RR2tsetwidthR.tfontfaceR-R7R8R6R9tglyphstfirst_glyphR:tunicode_charR>tpathsR@R,tnew_path((s0/usr/share/inkscape/extensions/svgfont2layers.pyteffect4s`!	    
$ 
!!(t__name__t
__module__RR R%R0RN(((s0/usr/share/inkscape/extensions/svgfont2layers.pyRs
				t__main__(	t__doc__R
tsysR&RRROtetaffect(((s0/usr/share/inkscape/extensions/svgfont2layers.pyt<module>ss