Skip to content

Commit

Permalink
Move images so we can deploy the page on github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
LettError committed Nov 3, 2023
1 parent 3844c8d commit fe63452
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 20 deletions.
60 changes: 40 additions & 20 deletions DesignspaceEditor2.roboFontExt/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>


<p><img src="../resources/toolbar_500_500_icon_location_labels.png" alt="DSE2 location labels icon"></p>
<p><img src="toolbar_500_500_icon_location_labels.png" alt="DSE2 location labels icon"></p>


<h1 id="toc_0">DesignSpaceEditor2</h1>
Expand Down Expand Up @@ -66,7 +66,7 @@ <h2 id="toc_1">Designspace Editor Usage <a href="#toc">↑</a></h2>
</ol>


<p><img src="../resources/toolbar_500_500_icon_axes.png" alt="DSE2 axes icon"></p>
<p><img src="toolbar_500_500_icon_axes.png" alt="DSE2 axes icon"></p>

<h2 id="toc_2">Axes Tab <a href="#toc"></a></h3>

Expand All @@ -84,7 +84,7 @@ <h3>Columns</h3>

<table>
<tr>
<td><img src="../resources/toolbar_25_25_info.circle.fill.svg">
<td><img src="toolbar_25_25_info.circle.fill.svg">
</td>
<td>
Double click the icon to get the popover editor for <strong>axis labels</strong> and <strong>axis maps</strong>. The editor represents the labels and maps in a simple syntax for editing. When the panel is closed, the text is converted to designspace objects.
Expand Down Expand Up @@ -133,13 +133,13 @@ <h3>Columns</h3>
<tr>
<td>📈
</td>
<td>Indicates this axis has a map. Click the <img src="../resources/toolbar_25_25_info.circle.fill.svg"> for the editor.
<td>Indicates this axis has a map. Click the <img src="toolbar_25_25_info.circle.fill.svg"> for the editor.
</td>
</tr>
<tr>
<td>🏷️
</td>
<td>Indicates this axis has tags. Click the <img src="../resources/toolbar_25_25_info.circle.fill.svg"> for the editor.
<td>Indicates this axis has tags. Click the <img src="toolbar_25_25_info.circle.fill.svg"> for the editor.
</td>
</tr>
</table>
Expand Down Expand Up @@ -222,7 +222,7 @@ <h3>Axis Labels syntax</h3>



<p><img src="../resources/toolbar_500_500_icon_sources.png" alt="DSE2 sources icon"></p>
<p><img src="toolbar_500_500_icon_sources.png" alt="DSE2 sources icon"></p>

<h2 id="toc_3">Sources Tab <a href="#toc"></a></h3>

Expand All @@ -236,7 +236,7 @@ <h2 id="toc_3">Sources Tab <a href="#toc">↑</a></h3>
<li><strong>Replace UFO</strong> Select one of the sources and pick a new ufo to replace it.</li>
</ul>

<p>Double click in the <img src="../resources/toolbar_25_25_info.circle.fill.svg"> icon opens a popover editor for <strong>Localised Family Name</strong> and <strong>Muted Glyphs</strong>.</p>
<p>Double click in the <img src="toolbar_25_25_info.circle.fill.svg"> icon opens a popover editor for <strong>Localised Family Name</strong> and <strong>Muted Glyphs</strong>.</p>

<h3>Sources Columns</h3>

Expand Down Expand Up @@ -271,11 +271,11 @@ <h3>Sources Columns</h3>
</tr>
<tr>
<td>🌐</td>
<td>indicates if there are localised names for this source. Click the <img src="../resources/toolbar_25_25_info.circle.fill.svg"> for the editor.</td>
<td>indicates if there are localised names for this source. Click the <img src="toolbar_25_25_info.circle.fill.svg"> for the editor.</td>
</tr>
<tr>
<td>🔕</td>
<td>indicates if there are muted glyphs in this source. Click the <img src="../resources/toolbar_25_25_info.circle.fill.svg"> for the editor.</td>
<td>indicates if there are muted glyphs in this source. Click the <img src="toolbar_25_25_info.circle.fill.svg"> for the editor.</td>
</tr>
<tr>
<td>column for each axis</td>
Expand All @@ -295,7 +295,7 @@ <h3>Muted Glyph syntax</h3>
a b c d</code></pre></div>


<p><img src="../resources/toolbar_500_500_icon_instances.png" alt="DSE2 instances icon"></p>
<p><img src="toolbar_500_500_icon_instances.png" alt="DSE2 instances icon"></p>

<h2 id="toc_4">Instances Tab <a href="#toc"></a></h3>

Expand Down Expand Up @@ -335,7 +335,7 @@ <h3>Instances Columns</h3>
</table>

<p>
<img src="../resources/instancestab_preview_popup.jpg" alt="DSE2 Instance Preview Window with anisotropic instance.">
<img src="instancestab_preview_popup.jpg" alt="DSE2 Instance Preview Window with anisotropic instance.">
</p>


Expand Down Expand Up @@ -383,11 +383,11 @@ <h3>Instances Tab Buttons</h3>
</ul>

<p>
<img src="../resources/previewWindow.jpg" alt="DSE2 Instance Preview Window">
<img src="previewWindow.jpg" alt="DSE2 Instance Preview Window">
</p>


<p><img src="../resources/toolbar_500_500_icon_rules.png" alt="DSE2 rules icon"></p>
<p><img src="toolbar_500_500_icon_rules.png" alt="DSE2 rules icon"></p>

<h2 id="toc_5">Rules Tab <a href="#toc"></a></h3>

Expand Down Expand Up @@ -416,7 +416,7 @@ <h3>Rules syntax</h3>
</code></pre></div>


<p><img src="../resources/toolbar_500_500_icon_location_labels.png" alt="DSE2 location labels icon"></p>
<p><img src="toolbar_500_500_icon_location_labels.png" alt="DSE2 location labels icon"></p>

<h2 id="toc_6">Location Labels Tab <a href="#toc"></a></h3>

Expand Down Expand Up @@ -447,7 +447,7 @@ <h3>Location Labels syntax</h3>
# The comments are not saved in the designspace.
</code></pre></div>

<p><img src="../resources/toolbar_500_500_icon_variable_fonts.png" alt="DSE2 variable fonts icon"></p>
<p><img src="toolbar_500_500_icon_variable_fonts.png" alt="DSE2 variable fonts icon"></p>

<h2 id="toc_8">Variable Fonts Tab <a href="#toc"></a></h3>
<p>This describes different subset variable fonts that can be generated from the current designspace file. For instance this could mean a smaller number of axes, or a specific range of an axis. You can also specify different filenames for these variable fonts.</p>
Expand Down Expand Up @@ -492,7 +492,7 @@ <h3>Variable Fonts syntax</h3>
</code></pre></div>


<p><img src="../resources/toolbar_500_500_icon_problems.png" alt="DSE2 problems icon"></p>
<p><img src="toolbar_500_500_icon_problems.png" alt="DSE2 problems icon"></p>

<h2 id="toc_9">Problems Tab <a href="#toc"></a></h3>

Expand All @@ -505,14 +505,14 @@ <h2 id="toc_9">Problems Tab <a href="#toc">↑</a></h3>
</p>


<p><img src="../resources/toolbar_500_500_icon_notes.png" alt="DSE2 notes icon"></p>
<p><img src="toolbar_500_500_icon_notes.png" alt="DSE2 notes icon"></p>

<h2 id="toc_10">Notes Tab <a href="#toc"></a></h3>

<p>This tab is for your notes and are stored in the Designspace. This can be any kind of note or remark. Notes are not processed in any way.</p>


<p><img src="../resources/toolbar_500_500_icon_notifications.png" alt="DSE2 notes icon"></p>
<p><img src="toolbar_500_500_icon_notifications.png" alt="DSE2 notes icon"></p>

<h2 id="toc_11">Notifications<a href="#toc"></a></h3>

Expand Down Expand Up @@ -967,18 +967,38 @@ <h2 id="toc_13">Scripting with the current designspace<a href="#toc">↑</a></h2
<h3>Calculating a glyph</h3>
The example below calculates a single glyph at the default location. It returns a mathGlyph.

<code>
<code>python
<pre>d = CurrentDesignspace()
loc = d.newDefaultLocation()
g = d.makeOneGlyph("A", location=loc)
</pre>
</code>

You can use <code>AllDesignspaces()</code> to get a list of all open designspace documents. Optionally you can pass a font object with <code>usingFont</code> to get only the designspaces that use that font.

<code>python
<pre>import os
d = AllDesignspaces()
for i, doc in enumerate(AllDesignspaces()):
print(f"{i}: {os.path.basename(doc.path)}")
f = CurrentFont()
for doc in AllDesignspaces(usingFont=f):
print(f"\nOnly using {os.path.basename(f.path)}:", f"{os.path.basename(doc.path)}")
</pre>

<pre>
0: Sans_wdth.designspace
1: Experimental_serif.designspace

Only using Test-Light.ufo: Experimental_serif.designspace
</pre>
</code>


<h3>Calculating kerning and info</h3>
The example below calculates a single kerning pair and an info object. <code>makeOneKerning</code> accepts a list of pairs to calculate. If no pairs are given, all pairs will be calculated.

<code>
<code>python
<pre>d = CurrentDesignspace()
loc = d.newDefaultLocation()

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fe63452

Please sign in to comment.