/usr/share/doc/ufolib/html/ufoLib/pointPen.html is in python3-ufolib 2.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pointPen — ufoLib 1.3.0a documentation</title>
<link rel="stylesheet" href="../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.3.0a',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="filenames" href="filenames.html" />
<link rel="prev" title="glifLib" href="glifLib.html" />
</head>
<body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="filenames.html" title="filenames"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="glifLib.html" title="glifLib"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">ufoLib 1.3.0a documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-ufoLib.pointPen">
<span id="pointpen"></span><h1>pointPen<a class="headerlink" href="#module-ufoLib.pointPen" title="Permalink to this headline">¶</a></h1>
<div class="section" id="pointpens">
<h2>PointPens<a class="headerlink" href="#pointpens" title="Permalink to this headline">¶</a></h2>
<p>Where <strong>SegmentPens</strong> have an intuitive approach to drawing
(if you’re familiar with postscript anyway), the <strong>PointPen</strong>
is geared towards accessing all the data in the contours of
the glyph. A PointsPen has a very simple interface, it just
steps through all the points in a call from glyph.drawPoints().
This allows the caller to provide more data for each point.
For instance, whether or not a point is smooth, and its name.</p>
<dl class="class">
<dt id="ufoLib.pointPen.AbstractPointPen">
<em class="property">class </em><code class="descclassname">ufoLib.pointPen.</code><code class="descname">AbstractPointPen</code><a class="reference internal" href="../_modules/ufoLib/pointPen.html#AbstractPointPen"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.AbstractPointPen" title="Permalink to this definition">¶</a></dt>
<dd><p>Baseclass for all PointPens.</p>
<dl class="method">
<dt id="ufoLib.pointPen.AbstractPointPen.addComponent">
<code class="descname">addComponent</code><span class="sig-paren">(</span><em>baseGlyphName</em>, <em>transformation</em>, <em>identifier=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/ufoLib/pointPen.html#AbstractPointPen.addComponent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.AbstractPointPen.addComponent" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a sub glyph.</p>
</dd></dl>
<dl class="method">
<dt id="ufoLib.pointPen.AbstractPointPen.addPoint">
<code class="descname">addPoint</code><span class="sig-paren">(</span><em>pt</em>, <em>segmentType=None</em>, <em>smooth=False</em>, <em>name=None</em>, <em>identifier=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/ufoLib/pointPen.html#AbstractPointPen.addPoint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.AbstractPointPen.addPoint" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a point to the current sub path.</p>
</dd></dl>
<dl class="method">
<dt id="ufoLib.pointPen.AbstractPointPen.beginPath">
<code class="descname">beginPath</code><span class="sig-paren">(</span><em>identifier=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/ufoLib/pointPen.html#AbstractPointPen.beginPath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.AbstractPointPen.beginPath" title="Permalink to this definition">¶</a></dt>
<dd><p>Start a new sub path.</p>
</dd></dl>
<dl class="method">
<dt id="ufoLib.pointPen.AbstractPointPen.endPath">
<code class="descname">endPath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/ufoLib/pointPen.html#AbstractPointPen.endPath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.AbstractPointPen.endPath" title="Permalink to this definition">¶</a></dt>
<dd><p>End the current sub path.</p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="ufoLib.pointPen.BasePointToSegmentPen">
<em class="property">class </em><code class="descclassname">ufoLib.pointPen.</code><code class="descname">BasePointToSegmentPen</code><a class="reference internal" href="../_modules/ufoLib/pointPen.html#BasePointToSegmentPen"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.BasePointToSegmentPen" title="Permalink to this definition">¶</a></dt>
<dd><p>Base class for retrieving the outline in a segment-oriented
way. The PointPen protocol is simple yet also a little tricky,
so when you need an outline presented as segments but you have
as points, do use this base implementation as it properly takes
care of all the edge cases.</p>
<dl class="method">
<dt id="ufoLib.pointPen.BasePointToSegmentPen.addComponent">
<code class="descname">addComponent</code><span class="sig-paren">(</span><em>baseGlyphName</em>, <em>transformation</em>, <em>identifier=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#ufoLib.pointPen.BasePointToSegmentPen.addComponent" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a sub glyph.</p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="ufoLib.pointPen.PointToSegmentPen">
<em class="property">class </em><code class="descclassname">ufoLib.pointPen.</code><code class="descname">PointToSegmentPen</code><span class="sig-paren">(</span><em>segmentPen</em>, <em>outputImpliedClosingLine=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/ufoLib/pointPen.html#PointToSegmentPen"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.PointToSegmentPen" title="Permalink to this definition">¶</a></dt>
<dd><p>Adapter class that converts the PointPen protocol to the
(Segment)Pen protocol.</p>
</dd></dl>
<dl class="class">
<dt id="ufoLib.pointPen.SegmentToPointPen">
<em class="property">class </em><code class="descclassname">ufoLib.pointPen.</code><code class="descname">SegmentToPointPen</code><span class="sig-paren">(</span><em>pointPen</em>, <em>guessSmooth=True</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/ufoLib/pointPen.html#SegmentToPointPen"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#ufoLib.pointPen.SegmentToPointPen" title="Permalink to this definition">¶</a></dt>
<dd><p>Adapter class that converts the (Segment)Pen protocol to the
PointPen protocol.</p>
</dd></dl>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">pointPen</a><ul>
<li><a class="reference internal" href="#pointpens">PointPens</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="glifLib.html"
title="previous chapter">glifLib</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="filenames.html"
title="next chapter">filenames</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/ufoLib/pointPen.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="filenames.html" title="filenames"
>next</a> |</li>
<li class="right" >
<a href="glifLib.html" title="glifLib"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">ufoLib 1.3.0a documentation</a> »</li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2017, Tal Leming, Erik van Blokland, Just van Rossum.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.5.
</div>
</body>
</html>
|