File: //usr/share/inkscape/extensions/hershey.pyc
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l m Z e Z d � Z d e j f d � � YZ
e d k r� e
� Z e j
� n d S( s1
Hershey Text - renders a line of text using "Hershey" fonts for plotters
Copyright 2011, Windell H. Oskay, www.evilmadscientist.com
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����N( t computePointInNodec C s� i d d 6d d 6} | | } | j � } | t | d � } | | j d � } d t | � d t | � d } i t j | � d
6| d 6| d 6}
t j j | t j d
d � |
� | t | d � S( Ns #000000t stroket nonet filli t Ms
translate(t ,t )t stylet dt transformt patht svgi (
t splitt intt findt strt simplestylet formatStylet inkext etreet
SubElementt addNS( t chart facet offsett
vertoffsett parentR t
pathStringt splitStringt midpointt transt text_attribs( ( s) /usr/share/inkscape/extensions/hershey.pyt
draw_svg_text s
"$"t Hersheyc B s e Z d � Z d � Z RS( c C s� t j j | � | j j d d d d d d d d d d
d �| j j d d d d d d d
d d d
d �| j j d d d d d d d d d d
d �| j j d d d d d d d d d d
d �d S( Ns --tabt actiont storet typet stringt destt tabt defaultt splasht helps% The active tab when Apply was presseds --textt texts Hershey Text for Inkscapes The input text to renders --actiont renders( The active option when Apply was presseds
--fontfacet fontfacet rowmanss- The selected font face when Apply was pressed( R t Effectt __init__t OptionParsert
add_option( t self( ( s) /usr/share/inkscape/extensions/hershey.pyR0 * s"