use this script, select two or more Point Text Items before running...the key item is the top most item.
before
after
// script.name = alignSelectedTextBaseLines.jsx;
// script.description = aligns all selected text items by their Base Line, the key item is the top most item;
// script.requirements = two or more selected Point Text Items; (other selected items i.e. pathItems, will be ignored)
// script.parent = CarlosCanto // 03/10/2013;
// script.elegant = false;
#target Illustrator
if (app.documents.length>0) {
var idoc = app.activeDocument;
var sel = idoc.selection;
if (sel.length>1)
alignBaseLine (sel);
else alert ('Select two or more Point Text Items and try again');
}
else alert ('No document to process');
function alignBaseLine(sel) {
for (i=0; i<sel.length; i++) {
var itext = sel[i];
if(itext.typename=="TextFrame" && itext.kind=="TextType.POINTTEXT") {
var base = sel[i].anchor[1];
break;
}
}
for (j=i+1; j<sel.length; j++) {
var itext = sel[j];
if(itext.typename=="TextFrame" && itext.kind=="TextType.POINTTEXT")
itext.position = [itext.position[0], base+(itext.position[1]-itext.anchor[1])];
}
}
I've just moved from CS5 and it has no such problem.
You may confuse something here. There has never been your desired aligning behaviour in previous AI versions.
Or.. Check Use Preview Bounds in the preferences, and then align.
That would only help if you first simulate outlining the type via Effect > Path > Outline Stroke.
North America
Europe, Middle East and Africa
Asia Pacific