villapearl.blogg.se

IA writer center text vertically
IA writer center text vertically






iA writer center text vertically

It works, but the "behind-the-scene" workaround involved was rather ridiculous: It obtained the size attribute from a character in the selected textFrame, created a temporary textFrame object at the page origin, set its content to a single X character, converted it to paths in order to obtain the height of the path, deleted the path, and then used that height as a scaling factor for the text size of the selected textFrame. Years ago, I wrote an Illustrator script which "sets" type to what most users with that complaint usually want: the CapHeight. (The height of an italic glyph's flourish? The X height? The Cap Height?)

iA writer center text vertically

People in the sign trade, for example, are often required by customers (who don't understand typography) to create text at a specific measured "height." In order to state that problem in terms of "code," you have to exactly specify what "height" means to you.

#IA writer center text vertically software

The problem is very much the same as the common complaint that software text is not actually scaled to the visible "height" of the characters. But doing it in AI scripting, would require devising a considerably more tedious and elaborate workaround for the absence of that property, which is why people are trying to get you to understand that "centering" text vertically is an ambiguous requirement because "height" of text is typeface-specific. So in InD scripting, vertically centering text probably just involves setting a textFrame's property. So (although I haven't checked) the textFrame object in InDesign's scripting API probably has a property for vertical centering whereas Illustrator's API does not. Vertically-centering text is a built-in feature of an InDesign textFrame object. What can be done via scripting in either program is entirely dependent upon what objects, methods, and properties are defined in the scripting API for that program. Just because two programs (ex:, InDesign and Illustrator) can be scripted does not mean that the same things can be done in them with a script. I wonder how they made that work? Oh yes! Code. Illustrator (lamely) shares the one in Photoshop, not the one in InDesign. Illustrator and InDesign use entirely different text engines.

iA writer center text vertically

a vertical align script is likely possible, and probably fairly simple, especially since InDesign has a vertical align option.








IA writer center text vertically