Why my script will not resize the font to size 13?

I have JavaScript code that is supposed to change the font size for all text boxes. I want the police to size 13. The range of size text boxes to size 10.49 4.76. Right now, the script changes of size 12 or 14 (or something that is not 13).

var myDocument = app.activeDocument;  
  
  
var tfs = myDocument.textFrames;  
var n = tfs.length;  
  
  
for ( i = 0 ; i < n ; i++ ) {  
          tfs[i].textRange.characterAttributes.textFont = app.textFonts.getByName("BebasNeue");   
          tfs[i].textRange.characterAttributes.size = 13; //nothing happens during this stage unless I change 13 to 14  
}  

Thanks in advance for any help.

Weird indeed! In addition, how you import XML files into your pie charts? Is there a chart by document or multiple ones?

Well, you can try set their font and it takes another font and only 13 and then return Bebas?

Tags: Illustrator

Similar Questions

  • Any ideas why weather script will not appear in the index created with DW

    For an example of what I want to do with DW, please see my page now created with CoffeeCup. It will cost $49.

    http://96.9.48.31/

    This did not require a moment of my time asking them for help. It is not perfect and there are a lot of code that could be cut out, but it gives me results. I need assistance in support of DW to do what I know, the software can do, but maybe not easy at the beginning.

    Why the weather script does not play when the page is created with DW, but when created with Publisher and cup of coffee?

    Any help would be greatly appreciated.

    I want to use Dreamweaver, really I do. I have a whole database downloaded with the software of connection Member, just waiting for me to install. I don't install it until I first get a handle on a bug of ugly time.

    atmydeskworking wrote:

    Why the weather script does not play when the page is created with DW, but when created with Publisher and cup of coffee?

    The reason that the weather-report is not working in the Dreamweaver version of the page is that you have a gap between the words 'white' and '&' in the link below. Delete the gap and it will work.
    
    http://weatherreports.com/jscript.html?width=234&height=60&theme=white &location=Fairfax%2C%20Minnesota%2055332&units=f"
    
  • Script will not apply the paragraph style

    Hello

    I'm new to scripting in InDesign (CS3), and I'm trying to understand why the scipt below does not apply a style in the following text file? :

    < ASCII-WIN >

    < ParaStyle: Heading 1 > who are we? < ParaStyle >:

    For ease of reading, I have shortend the text file to just two lines.

    The script that I use to open and to format the text file is:

    Create a new document.

    myDocument var = app.documents.add ();

    Set the units of measure and the origin of the rule.

    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    Get a reference to the first master spread.

    var myMasterSpread = myDocument.masterSpreads.item (0);

    Get a reference to preferences on the margins of the first page in the Master spread.

    var myMarginPreferences = myMasterSpread.pages.item (0) .marginPreferences;

    Now set up the page margins and columns.

    myMarginPreferences.left = 4;

    myMarginPreferences.top = 70;

    myMarginPreferences.right = 70;

    myMarginPreferences.bottom = 78;

    myMarginPreferences.columnCount = 2;

    myMarginPreferences.columnGutter = 14;

    The margins of page and columns for the right-hand page.

    var myMarginPreferences = myMasterSpread.pages.item (1) .marginPreferences;

    myMarginPreferences.left = 48;

    myMarginPreferences.top = 70;

    myMarginPreferences.right = 70;

    myMarginPreferences.bottom = 78;

    myMarginPreferences.columnCount = 3;

    myMarginPreferences.columnGutter = 14;

    Adding Master Page items

    var myMasterSpread = myDocument.masterSpreads.item (0);

    var myLeftPage = myMasterSpread.pages.item (0);

    var myRightPage = myMasterSpread.pages.item (1);

    var myLeftFooter = myLeftPage.textFrames.add ();

    myLeftFooter.geometricBounds = [70, 742, 728, 528];

    myLeftFooter.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myLeftFooter.contents = SpecialCharacters.autoPageNumber;

    myLeftFooter.parentStory.characters.item (0) .pointSize = 11;

    myLeftFooter.parentStory.characters.item (0) .leading = 14;

    var myRightFooter = myRightPage.textFrames.add ();

    myRightFooter.geometricBounds = [48, 742, 728, 542];

    myRightFooter.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myRightFooter.contents = SpecialCharacters.autoPageNumber;

    myRightFooter.parentStory.characters.item (0) .pointSize = 11;

    myRightFooter.parentStory.characters.item (0) .leading = 14;

    myRightFooter.parentStory.characters.item (0) .justification = Justification.rightAlign;

    Adding master text frames

    var myLeftPage = myMasterSpread.pages.item (0);

    var myRightPage = myMasterSpread.pages.item (1);

    var myLeftTextFrame = myLeftPage.textFrames.add ();

    myLeftTextFrame.geometricBounds = [70, 70, 714, 528];

    myLeftTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myLeftTextFrame.textFramePreferences.textColumnCount = 3;

    myLeftTextFrame.textFramePreferences.textColumnGutter = 14;

    Add a label to make the image easier to find later.

    myLeftTextFrame.label = "BodyTextFrame";

    var myRightTextFrame = myRightPage.textFrames.add ();

    myRightTextFrame.geometricBounds = [70, 48, 714, 542];

    myRightTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myRightTextFrame.textFramePreferences.textColumnCount = 3;

    myRightTextFrame.textFramePreferences.textColumnGutter = 14;

    Add a label to make the image easier to find later.

    myRightTextFrame.label = "BodyTextFrame";

    Link the two frames using the nextTextFrame property.

    myLeftTextFrame.nextTextFrame = myRightTextFrame;

    The substitution of Master Page points and adds text

    var myTextFrame = myDocument.masterSpreads.item (0).pages.item (1).textFrames.item (0) .override (myDocument.pag es.item (0));

    Add text by setting the contents of the insertion of a string.

    In JavaScript, "\r" is a return character.

    .silence myTextFrame.insertionPoints.item (0) = "dok\r";

    Adding and applying a paragraph Style

    var myParagraphStyle = myDocument.paragraphStyles.item ("title 1");

    try {}

    var myName = myParagraphStyle.name;

    }

    {} catch (MonErreur)

    //The style of paragraph don't have not exist, so create it.

    myParagraphStyle = myDocument.paragraphStyles.add ({name: 'Title 1'});

    }

    We need to create a color. Check if the color already exists.

    myColor var = myDocument.colors.item ("Green");

    try {}

    myName = myColor.name;

    }

    {} catch (MonErreur)

    //The color have not exist, so create it.

    myColor = myDocument.colors.add ({name: 'Green', model: ColorModel.process, colorValue:[100,0,100,0]});})

    }

    Now set the formatting of the paragraph style.

    myParagraphStyle.appliedFont = "Arial";

    myParagraphStyle.fontStyle = "Bold";

    myParagraphStyle.pointSize = 24;

    myParagraphStyle.spaceAfter = 24;

    myParagraphStyle.spaceBefore = 24;

    myParagraphStyle.fillColor = myDocument.colors.item ("Green");

    Apply the style to the paragraph.

    myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .applyParagraphStyle (myParag raphStyle, true);

    You can also use:

    myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .appliedParagraphStyle = //myParagraphStyle;

    Import a text file

    Display a standard dialog box open the file to select a text file.

    var monFichierTexte is File.openDialog ("choose a text file");.

    If you selected a text file, and if you didn't press Cancel,

    Place the file of text on the first insertion point after the title.

    If ((monFichierTexte! = "") & & (monFichierTexte!) (= null)) {}

    myTextFrame.insertionPoints.item(-1).place (myTextFile);

    }

    Place a graphic

    Display a standard dialog box open the file to select a graphic file.

    var myGraphicFile is File.openDialog ("choose a graphic file");.

    If you have selected a graphics file, and if you didn't press Cancel,

    Place the graphic file on the page.

    If ((myGraphicFile! = "") & & (myGraphicFile!) (= null)) {}

    var myGraphic = myDocument.pages.item (0) .place (myGraphicFile);

    //Since you can place multiple graphics at once, the place method

    //returns a table. For the graph you have placed, get the first

    //item in the table (beginning of JavaScript arrays with element 0).

    myGraphic = myGraphic [0];

    //Create a style object to apply to the graphic image.

    var myObjectStyle = myDocument.objectStyles.item("GraphicFrame");

    try {

    var myName = myObjectStyle.name;

    }

    catch (MonErreur) {}

    //The an object style have not exist, so create it.

    myObjectStyle = myDocument.objectStyles.add({name:"GraphicFrame"});)

    }

    myObjectStyle.enableStroke = true;

    myObjectStyle.strokeWeight = 3;

    myObjectStyle.strokeType = myDocument.strokeStyles.item("Solid");

    myObjectStyle.strokeColor = myDocument.colors.item("Green");

    //The frame containing the graphic is the parent of the graphic.

    myFrame var = myGraphic.parent;

    myFrame.applyObjectStyle (myObjectStyle, true);

    //Resize the frame to a specific size.

    myFrame.geometricBounds = [0,0,600,600];

    //Fit the graph in the image proportionally.

    myFrame.fit (FitOptions.proportionally);

    / / Next, mount the frame to the resized image.

    myFrame.fit (FitOptions.frameToContent);

    var myBounds = myFrame.geometricBounds;

    var myGraphicWidth = myBounds [3] - myBounds [1];

    //Move the graphic frame.

    var myPageWidth = myDocument.documentPreferences.pageWidth;

    var myTopMargin = myDocument.pages.item (0).marginPreferences.top;

    myFrame.move ([myPageWidth-myGraphicWidth, myTopMargin]);

    //Apply a wrap to the graphic frame.

    myFrame.textWrapPreferences.textWrapType = TextWrapTypes.boundingBoxTextWrap;

    myFrame.textWrapPreferences.textWrapOffset = [12, 24, 12, 24].

    }

    I hope someone can point me in the right direction.
    Thanks in advance.
    Ron

    Hey, Ron.

    The problem has nothing to do with your script. You can see if you attempt to place the file from indesign tagged text by hand.

    Your instinct for divide and conquer for debugging is a good - have a short text file to work with is very useful - of course this is also true for the script.

    During the validation of the scripts on the forum, please do not use the syntax insert > feature Java which lies behind the > arrow in the toolbar. Otherwise, cut and paste your script are difficult requiring manual corrections.

    Anyway, your problem is that each paragraph can have only a single paragraph style, and it's the last one that you define.

    So in your IDTT file, you set the heading 1 paragraph style, enter the content of the paragraph and then set the style of paragraph votes to zero.

    If you have included a line break before setting the style of paragraph votes to zero, you must set the None style for the following paragraph. But since you have not, it resets just the style to the current paragraph.

    In short: success back before .

  • I will not allow the font to change name

    A colleague gave me a document by using a font, I do not have: UniversLTStd * I universe... the real family

    Illustrator allow me to change the name of universe; He wants to keep this UniversLTStd *.

    I can type a couple another letter like A___ and this will change the font.

    How can I myself Illustrator to bend to my will and accept the universe change without scrolling down the menu type?

    Thank you!

    w

    Put an instance of the font you want to use in the document, then:

    But instead of Rockwell and myriad, it looks like universeB universeA

  • Why 5 Lightroom will not open the files of my Lumix dmc of the G7.

    I have a number of digital cameras. However I just added Panasonic DMC G7 to my kit.

    I use Lightroom 5 and it is updated but it does not open the files from this camera. Help...

    Unfortunately, your camera model is too new to be supported in LR5.

    Upgrade to LR6 or use the free DNG Converter to continue using the LR5

  • Why my printer does not print the images in sizes that I have to say in PSE10?

    My printer prints correctly in other programs (for example. The printing press 2). I have a Mac 10.5.8 and a HP Deskjet 4480 printer. Support staff Adobe uninstalled and reinstalled my printer software and drivers (twice) with no effect. They also reset my settings in PSE10. When I say PSE10 to print a 8 "x 6" custom size image, it regularly produces an image 2.25 x 3 ". I contacted Adobe Support several times and I am both incredulous that Adobe is still in business, and I'm terribly frustrated. Can anyone help (with the printing problem)?

    Exit the editor first and then relaunch it all by pressing command-shift-option. Keep the key down until you see a window asking if you want to delete the settings file. You do.

    Now, what about resizing: you need to do better in the editor. Don't let not the tool culture pace your image. Open the window to the size of the Image, then set it to the 300 PPI, with resample disabled image. Now use the Rectangle tool > size fixed, enter your number of thumb and highlight the text scrolling. Place it where you want and then Image > Crop.

    Now, enter the PSE print window. First go to layout and choose the HP, not any printer. Try now choose actual size in step 3. What is going on? (You are not trying to make an impression without border, are you?)

  • Why Illustrator CS4 will not allow the effects of fonts?

    Hello world!

    I am a very new Designer self-taught Illustrator, using the forums and articles online. I find that sometimes I can not apply 'Effects' for my fonts. In this case, I use the police Charlegmane, and when I highlight the text I want to apply an effect to, the options are that all out - shaded each of them. This happens with every text box on the project. Symbols, on the other hand, to apply effects. Any help would be much appreciated.

    Thank you!

    Angela

    As already mentioned, the effects are applied by object, not by character. You must select the text object in its entirety with the move / select the tool. If you need to apply different effects to different characters / lines of text, the text must be split or converted to outlines, giving you separate objects to work with.

    Mylenium

  • Why Firefox 5 will not see the Windows Media Player Plugin?

    Hello useful Mozilla expert,

    When I click on a link to play a standard WMV video in Firefox 5, in the movie player window it is said 'Click here to download the'.

    When I click on 'Click here to download the plugin' in Firefox 5, I get a panel of Firefox that says I need to Windows Media Player 11, but I already Windows Media Player 12 and the browser Firefox WMP plugin installed on this computer... it worked fine in Firefox 3.6.

    If I then click to install the Windows Media Player 11 plugin, it goes to another Firefox sign that says: ' no plug-ins have been installed, Windows Media Player 11 - no available '. Then, there is a "manual install" button, and when I click, it takes me to a third party plugin site called 'InteroperabilityBridges.com' which has a plugin Firefox WMP dated April 2007 available.

    Here is the link he gives... http://www.interoperabilitybridges.com/Windows-Media-Player-Firefox-plugin-download

    When I check my Panel "programs and features" in Windows 7 on my control panel, I can see that I have already installed something called, "Windows Media Player Firefox Plugin" installed and it is dated 10/24/2010 and it is version 1.0.0.8

    Despite having already the required plugin installed and showing in my control panel, programs and features, this WMP plugin does not appear on my plugins Firefox 5 Panel. So I tried to re - install with the installer of origin and available to the above URL Setup (they seem to be the same, except my installer of origin has a date of 2010).

    I also tried the 'fix' option in the setup of the plugin... it still does not appear in Firefox 5, nor this browser will play a WMV file in the integrated test related troubleshooting page plugin Mozilla WMP player, or other pages that embedded the WMV players.

    So the question is, why is Firefox 5 demanding I install a Windows Media Player plug-in older, version 1.0.0.8 of 2007 when I have already installed...? and why it won't work?

    I went through all the troubleshooting information in Mozilla and go to the page dedicated to this subject and nothing works...
    https://support.Mozilla.com/en-us/KB/using%20The%20Windows%20Media%20Player%20plugin%20with%20firefox

    http://KB.mozillazine.org/Windows_Media_Player#Missing_plugin

    http://blogs.technet.com/b/Port25/archive/2007/04/16/Windows-Media-Player-plug-in-for-Firefox.aspx

    What is the solution? The upgrade again for the 3rd time in the last 2 months, this is not an option... I'm tired of going through all the difficult steps of the upgrade and find what has changed and rejected another upgrade of the browser Mozilla and re - install plugins, extensions, modules and customizations and repair everything that does not work, as I always do now with Firefox 5.

    It seems that as soon as I get most things squared away in a new browser from Mozilla, then they came out with three new releases, so when I'm still struggling with the FF5 version (as I am now) there will be version 9 I get annoying constant 'reminders' upgrade to.

    Thank you

    Digi

    You carefully read and follow the instructions in the 2nd and 3rd paragraphs in the article on the creation of a folder \plugins folder installer of Firefox and copy the C:\PFiles\Plugins file in the newly created folder?

    Worked for me.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • Why my pc will not allow the download?

    I downloaded it, but when I hit run this appears:

    C:\Documents and Settings\Brilliance Academy\My Documents\Downloads\SkydriveSetup.exe is not a valid Win32 Application

    What does that mean?

    To know if your system can run Windows 7 or 8, you can run the Upgrade Advisor.

    Windows 7 Upgrade advisor.

    http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor

    Windows 7 upgrade FAQ.

    http://Windows.Microsoft.com/en-us/Windows7/upgrading-to-Windows-7-frequently-asked-questions

    Windows 8 Upgrade Wizard.

    http://Windows.Microsoft.com/en-us/Windows-8/Upgrade-Assistant-Advisor

  • Why I can't change my script if I resize the application - ADOBE STORY - to fit all of the space on my screen, by clicking on the icon full screen? What did I miss? Thank you

    Why I can't change my script if I resize the application - ADOBE STORY - to fit all of the space on my screen, by clicking on the icon full screen? What did I miss? Thank you

    Sorry, but the web application from Adobe Story doesn't support editing mode full screen.

  • Why Lightroom CC will not download Nikon D610 photos, the same problem, I got with lightroom 3 and told me that I had to upgrade.

    Why Lightroom CC will not download Nikon D610 photos, the same problem, I got with lightroom 3 and said to upgrade?

    Make sure you sort the display you are looking at instead of file name recording time. It is in the context menu with a small sign of a to z just below images. Make sure also that you have no active filters.

  • Am not able to resize the fonts, images, or anything that is related to the use of numbers.  How can this be corrected?

    Am not able to resize the fonts, images, or anything that is related to the use of numbers.  How can this be corrected?

    Hello

    Is this a problem of input in any number?

    All applications (such as Notepad) do have the same problem?

    Is your Num Lock?

    Brian

  • Why first will not play the timeline

    First suddenly stopped play my video in the timeline and source monitors. It will rub and even render and export, but will not play the video within the first. It was working fine 2 weeks ago. I tried uninstalling and reinstalling the program, the removal of all preference files, turning off all but the necessary fonts and it still won't play. When I created a new user account, it works fine. I work with an old MacPro Tower (1,1), Mac OS 10.7, with 20 GB or Ram and files are accessible from an internal 2 TB raid array.

    Hi mperriguey.

    This may be the problem with hardware Audio from Premiere pro preferences. Please launch the product and go to Premiere pro > Audio hardware and changes that he built in output and check if it works or not.

    Kind regards

    Vinay

  • loadClip onLoadInit will not resize image

    Hi all

    I'm trying to tweak an application that helps the user to create business cards using Flash.
    Workplaces used for the Web of business cards are generally 72 dpi, but my client wants to use images 300 dpi.

    So I try to load a 300 dpi image and resize it down to fit into the canvas. Everything seems easy?

    Watch: http://www.pickleprint.com/tabid/77/default.aspx?ciID=0 & ProdCode = BC & tf = 54_F & tb = 54_B & rx = 128 0 & uID = & txID = 54

    If you click zoom out, you can see the background is larger than the intended area. Alerts show the dimensions of the image before and after the attempt to resize, but the image is not resized on the screen.

    Here is the code snippet: (for the record, was to publish in Flash Player 7 issue 9 had no effect.)

    myListener.onLoadInit = function (target_mc)
    {

    w = _root. MasterWidth; the height of the desired model
    h = _root. MasterHeight; the width of the desired model

    _root.command ('alert', target_mc._width); trace the origin of background 300 dpi width
    _root.command ('alert', target_mc._height); trace the original height of the background 300 dpi

    target_mc._width = w; resize the attempt
    target_mc._height = h; resize the attempt

    _root.command ('alert', target_mc._width); dimensions of the track after resizing
    _root.command ('alert', target_mc._height);
    }

    my_mcl. AddListener (MyListener);

    my_mcl.loadClip (_root. ServerPath + "Images/LowRes_Front /" + _root. FrontTemplateName + "_LR.jpg", _root. FTL);

    The image of the charges, but will not resize itself to the bottom. I tried several variations and functions outside to force a resize, and she ignores me. _root. FTL is the name of the target movieclip.

    You know of any bugs in this regard?

    EU: had to put an empty movieclip inside the movieclip FTL.

    thumbHolder = _root. FTL.createEmptyMovieClip ("Front", 0);

    my_mcl.loadClip (_root. ServerPath + "Images/LowRes_Front /" + _root. FrontTemplateName + "_LR.jpg", thumbHolder);

    Don't know why it works, but it works.

  • Preview will not open the hyperlink to the specific DOI PDF format

    Hi all

    I generated a PDF of markdown by Pandoc (with xelatex as the tex engine); the PDF document contains hyperlinks URLS. One of hyperlinks is a specific address of DOI: doi:10.2307 / 488160. In Adobe Acrobat Reader, this link accurately opens in Firefox (my default browser) and is then solved using a DOI Manager that I have in firefox. Overview, however, will not open the link. When you click, you get just that boing sound error.

    I believe this may have to do with the security aspects of preview that are cooked in the program - what kind of overview is able to open external files. There was a discussion on this here, but it is not exactly answered my question: https://apple.stackexchange.com/questions/119299/why-preview-app-refuse-to-open-local-lien-dans-un PDF file.

    If this isn't a connected safety side overview, is it possible to adjust preferences overview way treats the links that start by "doi:"? Other ideas.

    Note: I know there is a better way to include the Doi in Tex docs (with the DOI package) as the starting URL by "doi:" but I like to keep my Markdown as clearly readable as possible and does not markup inside latex. I might add a Pandoc filter for this - but I would rather understand the problem of this end if possible.

    Thank you!

    ... One of hyperlinks is a specific address of DOI: doi:10.2307 / 488160.

    This address SHOULD you present is only the persistent identifier. To make a connection, precede the string with the http://dx.doi.org/ url so that your example is http://dx.doi.org/10.2307/488160

    Basically, the url is a program of resolution. By including a DOI link, there is no need for the Manager/addon Firefox DOI. You can have the text that is displayed differs from the URL. In other words, the manuscript shows doi:10.2307/488160 but the underlying url link is http://dx.doi.org/10.2307/488160

    You can see the particular style guide that you must follow to display format specifications. For example, see details for APA style.

Maybe you are looking for

  • HP 15 ENERGY STAR: LOCKUP

    My 15 HP seems to be locked up. I can move on to the part "Connect" where you put the password but it won't let me put my password. The computer turns on and moves the cursor, but I can't get into my computer.

  • access key does not work

    When I press the firefox on my keyboard shortcut key, that it does not start. It just display the file firefox with all its extrentions. I could show you, but this does not allow to send me a screen shot is

  • Satellite Pro A60: Slow start

    I just did a clean install from the recovery disk hoping this may cure the problem of him take 10 minutes so that it starts on the desktop, but it always takes some time. I can now assume that I have a clean update, I only have the bare minimum insta

  • Extension of the memory for S1800-514

    Modules that I can use to upgrade (now 2 * 128MB)?My s1800 is very slow and I want to buy second hand models event. but don't know which ones I can use if they are not (too expensive) ToshibaThank you

  • Download previous to the new phone purchased ringtones

    How can I re download ringtones that I already bought. I got a new phone