Auto font swap

WinXP--IDCS3,5.0.4
Currently working on a template for multiple users and would prefer to keep only one template & script major font change. Unfortunately, I'm not a scripter, but I think this can be automated somehow. looking for a javascript to change all font family "Adobe Garamond Pro" to font family "Adobe Whatever Pro". User could then go in to script and modify with new font family name change.
thanks
sandy

Here's a start. It will loop through the files in a folder. You can
customize it to whatever fonts and font styles you need.
myFolder = Folder (["~/Documents/InDesign Documents"])
myFiles = myFolder.getFiles()
for(var i = 0; i < myFiles.length; i++){
  var myDoc =  app.open(myFiles[i])
  for(var j= 1; myDoc.characterStyles.length>j; j++){
    if(myDoc.characterStyles[j].appliedFont ==
"Adobe Garamond Pro"  && myDoc.characterStyles[j].fontStyle ==
"Regular"){
    myDoc.characterStyles[j].appliedFont = "Adobe
Whatever Pro"
    myDoc.characterStyles[j].fontStyle = "Regular"
    }else{
      if(myDoc.characterStyles[j].appliedFont
== "Adobe Garamond Pro" && myDoc.characterStyles[j].fontStyle ==
"Bold"){
        myDoc.characterStyles[j].appliedFont
= "Adobe Whatever Pro"
        myDoc.characterStyles[j].fontStyle
= "Bold"
  myDoc.close(SaveOptions.yes,myDoc.fullName)

Similar Messages

  • Auto Font

    Hello, I have a form where I have changed the font size to "0" to enable auto font for that field. The auto font works corrrectly, however the font size it starts with is 12. How do set it to start with font size 10?
    Thanks

    First of all Auto FOnt is a feature which is specific to Acrobat, it shouldn't be used in designer.
    However since the functionality is exposed a lot of users do that.
    When AutoFont is used, the font takes as much size as it can , with in the text field, thus growing from default 10 to 12.
    only way to regulate this is
    1. initially do not use the Autofont.
    2. Get a font which has all letters of equal width i.e. a font where W or I would take same amount of horizontal space.
    3. once you have decided one such font, you can count the no. of letters that can fit in the text field with font size 10.
    4. let's say your text field can fit 10 characters before it will need to reduce the font size, so you can apply a script now, which calculates the no. of characters in the text field , this will have to calculated at every key stroke. Whenever the no. of characters goes beyond 10, set the font size of text field = 0 (which means auto font), and when someone deletes the characters, and count comes below 10, again set the font size for text field as 10.
    trust me there's no other way to do this.
    ~Sid

  • Is it possible to have a text field have both auto font resizing and rich text format?

    I am trying to make a field so I can bold or italicize within, but still have the capability to add as much text as I want with the font size getting small so that it all fits in the field.  It seems I can have the auto resize OR the Rich Text, but not both.   Is there a way around this?
    Thank you.

    You can't? Just to give you some context, I work as a graphic designer, I'm creating for the first time an iBook for a client and I have quite a few examples already.
    A couple of vague examples:
    - Imagine a diagonal animation from the bottom left corner to the top right corner of the page. I could do this with keynote or html, for example. Now imagine you want some text floating at the top left and bottom right corner.
    I wont get into details, but the fact the animation is "cutting" through the text is very much relevant to the context.
    - A page with a bold white title, a strong photographic lowkey background and some kind of interaction of top of it.
    - A page with a keynote widget occupying almost the entire area, and a title in text format (that would superpose with they keynote but not with its graphics)
    - etc etc
    These are all impossible scenarios.
    The actual interaction with text/images and interactive elements is nonexistent.
    But I understand now that the interactive bits of the book must be separated from the other content - its context -which is a shame. And I understand it's not a bug, from what you say. The iBA interface shows the book like a PFD export, in a way, as well as the thumbnails at the Table of Contents, were all the text is visible. The actual pages have a different behaviour.
    Thank you very much for the fast feedback. I will use the 'Provide iBooks Author Feedback' menu, as suggested.

  • How to prevent auto font substitution in Photoshop CS5?

    Previously in CS4 you could open a PSD with missing fonts and have the file still open and display the font properly on screen. Only if you tried to edit that type layer would it auto subsitute and force you to update the font. Now in CS5, just opening the PSD auto substitutes all missing fonts to Myriad. How do you prevent that from happening? It's really irratating. Thanks all that respond.

    Gotta agree with screenname_1001 here.
    I've seen several files open, warn me that a font is missing giving "OK" or "Cancel" options. Upon clicking "OK" the font is automatically substituted with Myriad Pro and there's no way of knowing what the original font was.
    I've opened files in Graphics Converter or Preview to simply figure out what the font name was.
    I have not ruled out font management software as the issue though. This may simply be a symptom of having FontAgent Pro installed.

  • How to have both auto font enabled as well as a starting size.

    Looking for a way to autmatically downsize the font, but start out at a predetermined size.
    i.e. Form is automatically Helvetica size 12. But when the Text Field gets too full it automatically decreases the Size of the Font.
    Thank You!

    You can do this by setting the font size to Auto and then adjust the height of the field so the resulting font size is 12. I realize this is less than ideal, but it is about the best you can do.

  • Auto Font Download

    Hey there,
    how can I get a user to download custom fonts automatically
    so the sites i build look better using custom fonts?
    Thanks

    It just can't happen. Sorry. Your only options are -
    1. Use a graphic (obviously not suitable for all content)
    2. Use an image replacement method like sIFR (again,
    obviously not suitable
    for content)
    3. Nut it out with the 'web safe' set of font families
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Prellyan Luxtintner" <[email protected]>
    wrote in message
    news:[email protected]...
    > whoa walt --- getting a bit antsy there --- basically as
    a designer i am
    > tired
    > of the stock fonts that get installed - web design is a
    creative process
    > and as
    > such the demand for interesting formats is high - if an
    industry limits
    > itself
    > by not extending the reach and process of its components
    then well there
    > goes
    > the neighbourhood -
    >
    > not eveyone installs the entire suite of msoft fonts for
    example so it
    > would
    > be good to be able to have that functionality - this is
    not arrogance in
    > dictating to the end user - this is an attempt to expand
    the creative side
    > of
    > our industry to encompass the many FREE and available
    fonts created by
    > exceptional designers - to bring variety and panache to
    what quite frankly
    > is
    > considered by most people in the real world still to be
    the denzion of
    > porn
    > addicts and geeks rather that the potential for
    imaginative and artisitc
    > interfaces for the processes relating to both
    educational and commercial
    > aspects of a web site.
    >
    > to remain beholden to the msoft suite alone is just
    another reason PHP
    > should
    > continue it flourishing growth so as not to stymie our
    industry with whims
    > limiting its creative growth.
    >
    > perhaps a link saying download site fonts here to
    maximise your
    > exeperience
    > would be appropriate however a nice script that checks a
    sites fonts
    > against
    > the end user c:/windows/fonts file and then provides an
    automatic
    > notification
    > saying would you like to download the site fonts would
    be a great feature
    > to
    > any creative designer -- and a wonderful experience for
    end users as they
    > employ web based solutions and applications that look
    good.
    >
    > but i guess the thought of stepping outside the it cant
    be done box is a
    > bit
    > much for you.
    >
    > i do appreciate your advice however both of those
    solutions are known to
    > me
    > and both are inappropriate for what needs to be
    achieved.
    >
    > cheers
    >

  • Auto font size for textfield by javascript

    Hi there.  I got the following script for a textfield in a fillabe PDF.  Th length of the textfield is 150.  It is required that if the text is > 100, the text size will be set to point 8, otherwise it will be point 12.
    var tf = this.rawValue;
    if (tf.length>50) {
    tf.textSize=8;
    The above script was added to the script editor show=Change (not ok), full (failed), validate &amp; validationState (no response).  Did I miss something?
    Thanks.

    Can anyone please advise?
    Cheers

  • Max font size on 'auto' size

    I've multiple lined text fields in the pdf document. I want the input to be resized if it exceeds (selected auto font size in properties) but I also want the first font size to be '10 pt'.
    When I select auto, it chooses the maximum font size to fit in the box, I want the upper limit to be fixed at 10 and it gets smaller if text exceeds the box size.
    How can I do that ?
    Acrobat Professional XI

    For multiline text fields, it seems the initial size is 12 when the font size is set to Auto. You don't have control over this, unfortunately.

  • Drop down menu with image swap

    I have a drop down menu that I need some help with.  The page is here: http://www.healthquestpt.com/lwh/
    The default menu as you see it is the way I want it: gray tab background, white text that is centered on the image.  What I want to make happen with it is when you mouseover the link to have the image swap from:  to: and I want the text in this "tab" to remain centered and change to blue
    For the dropped down links I just want a plain white background, the links to be aligned left and the default color to be blue.  I want the text hover color to be gray.
    Ive tried various things and I cant seem to figure how to get style attributes assigned correctly.
    All help is GREATLY appreciated!!!
    My css file is here:  http://www.healthquestpt.com/lwh/styles.css
    and the dropdownmenu.js file is here:  http://www.healthquestpt.com/lwh/scripts/dropdownmenu.js
    P.S. I'm using DW CS6

    You might want to try out the Spry menus which ship with Dreamweaver.
    Below is the code for the menu BUT you'll have to make sure the SpryMenuBar.js file is in your site folder for the sub-menus to work.
    Best way of doing that is to open a blank page. Go to Insert>Spry>Spry Menu Bar>Horizontal>save page which will create a folder named SpryAssets into your site folder. Open up the SpryAssets folder and delete the file - SpryMenuBarHorizontal.css
    Copy and save code below into a new Dreamweaver document and save it to your side folder. Run it via a browser.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <style>
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 13px;
        cursor: default;
        width: auto;
        font-family: Tahoma, Arial, Helvetica, sans-serif;
        font-weight: bold;
    ul.MenuBarActive
        z-index: 1000;
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        position: relative;
        width: 140px;
        float: left;
        margin-right: 4px;
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 8.2em;
        position: absolute;
        left: -1000em;
    ul.MenuBarHorizontal a
        display: block;
        background-color: #666;
        text-decoration: none;
        text-align: center;
        padding: 4px 0;
        color: #fff;
        border-top: 1px solid #666;
        border-right: 1px solid #666;
        border-left: 1px solid #666;
        -moz-border-radius: 10px 10px 0 0;
        -webkit-border-radius: 10px 10px 0 0;
        -khtml-border-radius: 10px 10px 0 0;
        border-radius: 10px 10px 0 0;
    ul.MenuBarHorizontal a:hover
        background-color: #fff;
        color: #39C;
        border-top: 1px solid #666;
        border-right: 1px solid #666;
        border-left: 1px solid #666;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 140px;
    ul.MenuBarHorizontal ul li a
        background-color: #FFF;
        color: #666;
        border: none;
        text-align: left;
    ul.MenuBarHorizontal ul li a:hover
        border: none;
        color: #39C;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu" href="#">Office Supplies</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    <li><a href="#">Paper &amp; Printing</a>
    <ul>
    <li><a href="#">Item 3.1.1</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    </ul>
    </li>
    <li><a class="MenuBarItemSubmenu" href="#">Filing</a>
    <ul>
    <li><a href="#">Item 3.1.1</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    </ul>
    </li>
    <li><a href="#">Mailing &amp; Shipping</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <li><a href="#">Furniture</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <li><a href="#">Audio Visual</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    </ul>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • How to tell what fonts are missing in a Photosohp CS5 document?

    Hello!  I have received some work from a graphic designer.  I need to modify some of the text in the document.  When I open the document I get an error message:
    Some text layers might need to be updated before they can be used for vector based output.  Do you want to update these layers now?  [Update] [No]
    If I click [Update] it replaces the font with Myriad Pro.  If I click [No] the text looks the way the designer intended, but I have the exclamation mark-triangle symbol over the layer with the text.  If I try to edit the text I get another warning:
    Editing or rendering the text layer "Text Layer" will cause its layout to change.  Continue?  [Cancel]  [OK]
    The same behavior described above occurs.  If I click [Cancel] I obviously can't edit the text.  If I click [OK] it changes the font to Myriad Pro.
    I would like to determine what font the layer is using.  I could swear that previous versions of Photoshop would tell me what fonts were missing when I opened a document.  I can't use the text tool to select the text without it changing the font.  Other posts have mentioned using the text tool to look at the text drop-down to find a greyed-out font which indicates the missing font.  I do not have that.  I only have perhaps 200 fonts installed.  Can anyone tell me how to determine what fonts a .PSD document is using?  I would prefer not to bug the graphic designer if possible.  Thanks much!
    ~ Dan

    Not sure why you are getting ""Font is present on the system but requires a layout change.", usually you do not get that instead the name of the font shows.
    We use extensis Universal Type Client, so the fonts load automatically upon opening files, and never really get missing fonts in Photoshop.
    Actually fontbook has auto font loading if you want to give that a try. Fontbook >> Preferences

  • Trouble with auto size text in a single line form field

    Hi.  I'm having an issue with filling out a form in Adobe Reader on my iPad.  The text field is single line.  The font is set to "auto" so that the line of text will not exceed a certain width.  When filling out this form on my laptop using Adobe Reader, it works fine.  As I type additional text, once the field is filled, it shrinks the text font size.  On my iPad, however, it won't let me type any more text in the field once I reach the end.  Does Adobe Reader for iPad not support the "auto" font size in form fields?  And I did check that my version of Adobe Reader is up to date on my iPad, so I do have the latest version.
    Thanks in advance for your help,
    Ashley

    Actually, nevermind.  It must be something wrong with the file.  I tried opening another file and auto resize worked perfectly on it.  Weird though that it works on one file and not another.
    Thanks!
    Ashley

  • Varying font size based on information entered in a field

    Please let me know if there is a way to adjust the font on a fillable field so that whatever is keyed in the field will fit. We can do this in Word with autofit and were hoping that there was a way to do this in Acrobat. We are using Acrobat Pro 7, but some of us have version 8.
    Thanks for the help!!
    Ken K.

    In version 9.0
    ******BUG******
    Concise problem statement:
    Auto font size in form text field doesn't work
    when rich text formatting is enabled
    Steps to reproduce bug:
    1.create a small form text field
    2. set the font size to auto under properties->appearance tab
    3.enable "allow rich text formatting" under options tab
    4. enter text into the form
    Results: the text is not scaled properly. rich formatted text has a different size than standard text.
    Expected results: The text should auto size if that is what the setting says it is going to do (rich formatting or not).

  • I have set text size to Auto but it starts too small

    I have created a form in Acrobat Pro 9, and set text size to Auto in all fields.
    I know it is limited to the height of the field, but  one of the fields is a block for multi-line paragraghs.  Size is set to Auto, font to Times Roman.  When I open the file in Reader to test it, it looks like it's starting at 12 points.  It goes down from there as the whole block is filled with text, but I'd like it to start at around 18. 
    Advice?

    as I mentioned, this one field is a block for multi-line paragraghs.  It's one, large text block, taking up the bottom half of the form, so that users can input multiple paragraphs of text (they're telling their story).  Some people will write a lot, some less.  That's why I set it to Auto, so that the shorter stories would be in larger text, but longer stories will still shrink to fit.
    It works, but I want to know if their is a way to get the text to start out at a larger font size before auto-sizing-to-fit.  I mean, Something is telling the font to start at 12 point...
    Should I attach the form to this discussion?  (How do I do that?)

  • [AA7+] [Windows] Set default text size for "auto" setting...

    Good morning:
    I was wondering if it is possible to set the default font size or specify a maximum font size
    for the auto setting of the font size on a text field when using the auto setting?
    Currently, if the font size is set to "auto" it defaults to 12 pt. text if multiline is checked on the Options tab.
    If multiline is not checked on the Options tab, the font size will adjust to the height of the box.
    I would like to have the multiline checked, specify "auto" for the font size, but have the auto font size be no larger than 8 pts.
    It can go smaller than 8 pts. if there is too much text in the field, but should not be larger than 8 pts. because the other form fields are in 8 pt.
    If someone has any suggestions on how to achieve this, I would be most appreciative.
    Thanks!
    Theresa

    Thanks Jongware!
    I'm aware of the many different forums and I thought I was posting it in the Acrobat Scripting forum.
    That'll teach me to look where I post. I guess I'm the one that needs the glasses.
    Take care!
    Theresa

  • How to disable automatic font embedding in CS5?

    I installed CS5 and opened an old .fla which did not embed the Arial font because everyone has it already. Mostly it is used for user-entered and dynamic content.  However, CS5 is auto-embedding the few characters I use in Arial, and all of the other characters are no longer showing up in the swf file.  The only fix seems to be embedding the entire Arial font in the movie, which is too large since I want to be able to support all kinds of characters.
    Is there a way to turn off auto-font embedding?  This feature seems well-intentioned but critically flawed if it can't be turned off.
    -Ben

    Hi,
    You can set the TextField's Anti-alias setting to "Use device fonts" if you don't want to embed the font.
    HTH,
    Nivesh

Maybe you are looking for

  • My HP photosmart 2610 all in one will print by not allow me to save or send a scan

    My HP Photosmart 2610 all in one will scan but will not allow me to save the scan or email the scan.  i assume it is a bug with maverick.....which i recently downloaded

  • Number range "change document" problem

    Hi Some body has changed the number range group in production server for specific order type.Can i trace the user id who has done this changes, is there any log generated for number range group changing as no transport request is generated. I have ch

  • WAS inlcusion in FrontEnd BI 4.0

    Hi, I would like to ask a question about the BI 4.0 sizing documentation - WAS inclusion in the total FrontEnd SAPS for BI applications. From the BI 4.0 sizing PowerPoint presentation u2013 it says that the WAS is included in the FrontEnd unless stat

  • Smart groups in iCloud not working!?

    smart groups are great but totally useless if they won't appear on your iphones / iPad , ... any hints / workarounds out there?

  • IPhoto on 10.4.3 server

    has anybody got this working? I ran the individual iphoto.mpkg onto my server, but it still doesn't seem to work right. Has problems loading photos and doesn't quit. I know iLife is not officially supported on server, but was just wondering if anybod