Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

121
Vistas
JavaScripting in Illustrator for Font Settings

I have a script that opens a new document with the needed profile and settings... Additional settings that would help me would be if I could change the Font Height Setting from "Em Box" to "Cap Height". Is there any way to do that within a script?

var searchString1 = /\d{7}/;
var searchString2 = /(\d)(\d)(\d)/;
var strEnter = prompt("Please Enter the New Order # (a 7-digit number)", "");
var strEnter = strEnter.replace(/^(.{7}).*$/,'$1')

if (strEnter != null && searchString1.test(strEnter) === true) {
var str = null;
var arr = strEnter.match (searchString2);


var doc = app.activeDocument;
var PTS_IN = 72;
var width = 90 * PTS_IN;
var height = 90* PTS_IN;
var presets = app.startupPresetsList;
var preset = presets[3];
//var enterName=prompt("Be Awesome, Do Great Things,... But First, Give This File A Name");
var docPreset = new DocumentPreset();
//add doc Name
docPreset.title = strEnter;
docPreset.units = RulerUnits.Inches;
docPreset.width = width;
docPreset.height = height;
var doc = app.documents.addDocument(preset, docPreset, false);



//var myDocument = app.documents.add();


// SPEC Layer
  // ===========================
var proofLayer = doc.layers.add();
    proofLayer.name = "PROOF";

// PROD Layer
  // ===========================
  var prodLayer = doc.layers.add();
  prodLayer.name = "PROD";

// Make Layer 1 the Active Layer
var aDoc = app.activeDocument;
    aDoc.activeLayer = aDoc.layers.getByName("Layer 1");    
var aLay = aDoc.activeLayer;

} else { alert ("Please Try Again\nInvalid Order #: \n\n" + strEnter);
}

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda