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/layers2svgfont.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����NtLayers2SVGFontcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstjj|�dS(N(tinkextEffectt__init__(tself((s0/usr/share/inkscape/extensions/layers2svgfont.pyRscCs�|jjtjdd��}|jtjdd��}xU|D]M}|jtjdd��}||kr@t|jd�jd�|�Sq@WdS(	Nt	namedviewtsodipoditguidetlabeltinkscapetpositiont,i(tsvgtfindRtaddNStfindalltgettinttsplit(RRtindexRtguidesRtl((s0/usr/share/inkscape/extensions/layers2svgfont.pytguideline_values
$cCs7|j|�}|dkr3tjj||�}n|S(N(R
tNoneRtetreet
SubElement(Rt
parentnodetnodetypetnode((s0/usr/share/inkscape/extensions/layers2svgfont.pyt
get_or_create%scCsd|jtjdd��}x'|D]}||jd�kr"|Sq"Wtjj|tjdd��S(NtglyphRtunicode(RRRRRR(Rtfonttunicode_chartglyphsR((s0/usr/share/inkscape/extensions/layers2svgfont.pytget_or_create_glyph+s

cCsRtj|�}tj|dd�tj|dt|�t|��tj|�S(Nii����i(t
simplepatht	parsePatht	scalePatht
translatePathRt
formatPath(Rtdtemsizetbaselinetpathdata((s0/usr/share/inkscape/extensions/layers2svgfont.pytflip_cordinate_system2s#cCs�|jj�|_|j|jtjdd��|_t|jjd��}|j	dd�}|j	dd�|}|j	dd�|}|j	dd�|}||j	d	d�}|j|jtjd
d��}|j
dt|��|j
dt|��|j|tjd
d��}|j
dd�|j
dt|��|j
dt|��|j
dt|��|j
dt|��|j
dt|��|jjtjdd��}	x�|	D]�}
|
jtjdd��}d|kr�|j
d�d}|j||�}
|
j
d|�|
jtjdd��}d}x4|D],}|d|j|jd�||�7}qPW|
j
d|�q�q�WdS(NtdefsRtwidthR+itascendertcapstxheightt	descenderR shoriz-adv-xshoriz-origin-ys	font-facesfont-familytSVGFontsunits-per-ems
cap-heightsx-heighttascenttdescenttgRR	sGlyphLayer-Rtpathtt R)(tdocumenttgetrootRRRRR.RRRtsettstrRRR#R-(RR*R+R0R1R2R3R tfontfacetgroupstgroupRR!RtpathsR)tp((s0/usr/share/inkscape/extensions/layers2svgfont.pyteffect8s<$!

*(t__name__t
__module__RRRR#R-RD(((s0/usr/share/inkscape/extensions/layers2svgfont.pyRs						t__main__(	t__doc__RtsysR$RRREtetaffect(((s0/usr/share/inkscape/extensions/layers2svgfont.pyt<module>s]