A Glyphs 3 palette plugin for copying layer contents between font masters using flexible template pattern matching.
- Template-based pattern matching: Define master name patterns using placeholders like
{weight}and regular expressions - Bidirectional copying: Copy from Pattern A to Pattern B (↓) or from Pattern B to Pattern A (↑)
- Flexible master selection: Use regular expressions to match specific masters or entire series
- Layer content copying: Copies shapes, anchors, guides, hints, width, and metrics keys
- Download or clone this repository
- Copy the
MasterSeriesCopy.glyphsPalettefolder to your Glyphs plugins folder:~/Library/Application Support/Glyphs 3/Plugins/
- Restart Glyphs 3
- The plugin will appear in the Palette sidebar (Window → Palette)
-
Define Pattern IDs: In the "Pattern ID and Regular Expression" table, define ID and regex pairs
- Example:
weight : ^(.*)$(matches any master name)
- Example:
-
Set Name Patterns:
- Pattern A:
{weight}(source pattern) - Pattern B:
{weight} Melt(destination pattern)
- Pattern A:
-
Select glyphs in Font View
-
Click arrow buttons:
- ↓ (Down): Copies from Pattern A → Pattern B
- ↑ (Up): Copies from Pattern B → Pattern A
- Pattern ID:
weight : ^(.*)$ - Pattern A:
{weight} - Pattern B:
{weight} Melt - Result: Copies all masters (Light, Regular, Bold) to their Melt variants
- Pattern ID:
weight : ^Bold$ - Pattern A:
{weight} - Pattern B:
{weight} Melt - Result: Copies only
Bold→Bold Melt
- The plugin matches master names against Pattern A (or Pattern B for reverse direction)
- Captured values from placeholders (e.g.,
{weight}) are extracted - These values are used to expand the destination pattern
- Layer contents are copied between matching master pairs
- Glyphs 3
- Python 3 (included with Glyphs)
MIT License
Palf
- Email: palf@palf-official.com
- X (Twitter): @PALF_MovieWorks
Glyphs 3 用のパレットプラグイン。テンプレートパターンマッチングを使用して、フォントマスター間でレイヤー内容をコピーします。
- テンプレートベースのパターンマッチング:
{weight}のようなプレースホルダーと正規表現を使用してマスター名パターンを定義 - 双方向コピー: パターン A からパターン B へ(↓)、またはパターン B からパターン A へ(↑)コピー
- 柔軟なマスター選択: 正規表現を使用して特定のマスターまたはシリーズ全体をマッチ
- レイヤー内容のコピー: シェイプ、アンカー、ガイド、ヒント、幅、メトリクスキーをコピー
- このリポジトリをダウンロードまたはクローン
MasterSeriesCopy.glyphsPaletteフォルダを Glyphs プラグインフォルダにコピー:~/Library/Application Support/Glyphs 3/Plugins/
- Glyphs 3 を再起動
- プラグインはパレットサイドバー(ウィンドウ → パレット)に表示されます
-
パターン ID を定義: 「パターン ID と正規表現」テーブルで、ID と正規表現のペアを定義
- 例:
weight : ^(.*)$(任意のマスター名にマッチ)
- 例:
-
名前パターンを設定:
- パターン A:
{weight}(ソースパターン) - パターン B:
{weight} Melt(デスティネーションパターン)
- パターン A:
-
フォントビューでグリフを選択
-
矢印ボタンをクリック:
- ↓ (下): パターン A → パターン B にコピー
- ↑ (上): パターン B → パターン A にコピー
- パターン ID:
weight : ^(.*)$ - パターン A:
{weight} - パターン B:
{weight} Melt - 結果: すべてのマスター(Light、Regular、Bold)を Melt バリアントにコピー
- パターン ID:
weight : ^Bold$ - パターン A:
{weight} - パターン B:
{weight} Melt - 結果:
Bold→Bold Meltのみをコピー
- プラグインはマスター名をパターン A(または逆方向の場合はパターン B)とマッチング
- プレースホルダー(例:
{weight})からキャプチャされた値が抽出されます - これらの値を使用してデスティネーションパターンを展開
- マッチングするマスターペア間でレイヤー内容がコピーされます
- Glyphs 3
- Python 3(Glyphs に含まれています)
MIT License
Palf
- Email: palf@palf-official.com
- X (Twitter): @PALF_MovieWorks