Giter Club home page Giter Club logo

glyphs-scripts's Introduction

This document is separated by group. Within each folder you'll find scripts for different occasions.

Font

Replace glyphs with ss01

You may find this helpful if your roman font has upright italics in ss01 (for say, a, g, and y). Save a new font and run this to replace your default letters with their ss01 set counterparts.

Copy layer from italic

Mostly taken from mekkablue's [Copy Layer to Layer script](https://github.com/mekkablue/Glyphs-Scripts/blob/master/Masters/Copy Layer to Layer.py), this copies the entire layer of a glyph from an italic counterpart. Useful for quickly syncing changes between roman and oblique.

Copy anchors from italic

Same as Copy layer from italic but only copies anchors

Italic

Move Selection Down 10 Units at Italic Angle
Move Selection Down 100 Units at Italic Angle
Move Selection Up 10 Units at Italic Angle
Move Selection Up 100 Units at Italic Angle

Translates nodes up or down either 10 or 100 units, then shifts left or right to move at the same angle as the master's italic angle.

Nodes

Convert Selected Nodes to Lines

Converts selected nodes to line-type nodes. Make sure you know how path segments (especially curves) are calculated in Glyphs, as this can create some odd results.

Convert Selected Nodes to Offcurves

Converts selected nodes to offcurve (handles). If you select two nodes, they'll be converted and the following node will become a curve.

If you execute this on an entire path, you'll get some quadratic curve cages (experimental).

Split Selected Nodes (Make Inktraps)

Duplicates selected node(s) and separates them away from origin at a 0° or 90° angle. Great for quickly setting up ink traps.

Paths

Add handles to selected segments

For all selected line segments, adds bezier handles at 1/3 and 2/3 of the segment length. Equivocal to alt-clicking on a line segment, but useful if adding handles to many different segments.

Subdivision

Subdivide Lines to Curves (Catmull-Clark)

Similar to b-spline cages (like very similar), you can draw out line nodes and run this script to convert them to smooth cubic bézier curves. The result after one execution should be identical in shape to the Subdivide Lines (Catmull-Clark) script after three executions, but this will use far fewer nodes.

You can also use Subdivide Filter to get this functionality in a nondestructive way.

Subdivide Lines (Catmull-Clark)

Subdivides path using Catmull-Clark algorithm. With more subdivision, paths will smooth out, but node count will get unwieldy.

Subdivide Selection (Add Midpoint)

Adds midpoints to all selected path segments. For line segments, this is akin to faceted subdivision.

Selection

This repository previously contained scripts to Continue Selection, Grow Selection, Shrink Selection, and Undo Selection. These functions have been moved to their own plugin and extended at SelectionPalette.

glyphs-scripts's People

Contributors

danielgamage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

glyphs-scripts's Issues

Modifying or adapting one script

Would it be a lot of trouble to modify or adapt Convert to Lines.py so that it does not delete the control points? What would be even better (for me) would be for the script to change all curve nodes in a glyph that aren't perfectly vertical or horizontal.

import layer from italic

would be nice to grab the layer from the italic / roman counterpart and stick it into whatever layer is active

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.