InDesign - 路径上丑陋的“阶梯”文本

平面设计 土坯设计 排版
2022-02-09 05:40:12

我知道,这样做是一个非常糟糕的主意,但是有没有办法在不手动调整每个字母的情况下以“坏方法”(见下图)写出超过 3-5 个字母的东西?

在此处输入图像描述

我可能需要这个 2-3 句话。

2个回答

您很幸运,恰好有一个晦涩难懂且很少使用的功能,主要是遗留功能,可以满足您的需求。这比什么都幸运。对于您的特定情况,它可能实用,也可能不实用。对于像这样的一般任务,脚本是一个更好的解决方案,比如如果你想要随机值使用脚本。

当您在路径上使用类型时,工具中有一个选项框,类型 → 路径上的类型 → 选项...。这个对话框有关于如何在路径上堆叠字母的选项,它几乎没用,但碰巧有解决这种情况的方法。在此对话框的效果下拉列表中选择阶梯。

在此处输入图像描述

图 1:楼梯台阶效果做你想要的

免责声明:阶梯效果向您的基础对象旋转源旋转,因此如果您想更改旋转方向,请不要仅旋转对象下方的路径。

我为您编写了一个示例脚本,以表明编写脚本并不难。脚本中有注释来解释发生了什么。

如果您想了解有关脚本结帐或 wiki 的更多信息

https://github.com/ExtendScript/wiki/wiki

/* global app, Text, alert*/

// the whole script assumes you have text selected with the cursor in the box

var doc = app.activeDocument; // get the current document
var sel = app.selection; // get the selection

// the next line holds the first selected object
// this is not the first character it is the first "group" of items
// hard to explain. It could also be the first rectangle of several
// the selection of text in a text box counts as one object
var txt = sel[0];

// lets check if it actually is a text object
if(txt instanceof Text) {

  // loop each character in the selection

  for(var i = 0; i < txt.characters.length; i++) {

    var character = txt.characters[i]; // get the current character

    // now here we use the baseline shift property
    // to change the offset
    // this is where your experiment comes in

    character.baselineShift = character.baselineShift + (Math.random() * 5);

  }
} else {
  alert('Please select some text with the text tool');
}